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();
}
Aggregations