Search in sources :

Example 6 with IRenderable

use of gaiasky.render.IRenderable in project gaiasky by langurmonkey.

the class VertGPURenderSystem method notify.

@Override
public void notify(Event event, Object source, Object... data) {
    if (event == Event.GPU_DISPOSE_VERTS_OBJECT) {
        IRenderable renderable = (IRenderable) source;
        RenderGroup rg = (RenderGroup) data[0];
        if (rg == RenderGroup.LINE_GPU || rg == RenderGroup.POINT_GPU) {
            setInGpu(renderable, false);
        }
    }
}
Also used : IRenderable(gaiasky.render.IRenderable) RenderGroup(gaiasky.render.SceneGraphRenderer.RenderGroup)

Aggregations

IRenderable (gaiasky.render.IRenderable)6 Vector3 (com.badlogic.gdx.math.Vector3)1 RenderGroup (gaiasky.render.SceneGraphRenderer.RenderGroup)1 Orbit (gaiasky.scenegraph.Orbit)1 OrbitalElementsGroup (gaiasky.scenegraph.OrbitalElementsGroup)1 SceneGraphNode (gaiasky.scenegraph.SceneGraphNode)1 Star (gaiasky.scenegraph.Star)1 OrbitComponent (gaiasky.scenegraph.component.OrbitComponent)1 CatalogInfo (gaiasky.util.CatalogInfo)1 Settings (gaiasky.util.Settings)1 ExtShaderProgram (gaiasky.util.gdx.shader.ExtShaderProgram)1 Vector3d (gaiasky.util.math.Vector3d)1 AtomicInteger (java.util.concurrent.atomic.AtomicInteger)1