Search in sources :

Example 1 with IAnnotationsRenderable

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

the class FontRenderSystem method renderStud.

@Override
public void renderStud(Array<IRenderable> renderables, ICamera camera, double t) {
    renderables.sort(comp);
    batch.begin();
    int size = renderables.size;
    ExtShaderProgram program = programs[0];
    if (program == null) {
        for (int i = 0; i < size; i++) {
            IAnnotationsRenderable s = (IAnnotationsRenderable) renderables.get(i);
            // Render sprite
            s.render(batch, camera, font2d, getAlpha(s));
        }
    } else {
        renderFont3D(renderables, program, camera, alphas[ComponentType.Labels.ordinal()]);
    }
    batch.end();
}
Also used : ExtShaderProgram(gaiasky.util.gdx.shader.ExtShaderProgram) IAnnotationsRenderable(gaiasky.render.IAnnotationsRenderable)

Aggregations

IAnnotationsRenderable (gaiasky.render.IAnnotationsRenderable)1 ExtShaderProgram (gaiasky.util.gdx.shader.ExtShaderProgram)1