org.osm2world.core.target.jogl
public class JOGLRendererVBONonAreaShader extends Object
NonAreaPrimitive
objects using JOGL and the new shader based OpengGL pipeline.
Uses vertex buffer objects (VBO) to speed up the process.
If you don't need the renderer anymore, it's recommended to manually call
#freeResources()
to delete the VBOs and other resources.Modifier and Type | Field and Description |
---|---|
protected static boolean |
DOUBLE_PRECISION_RENDERING |
protected GL3 |
gl |
protected List<VBODataNonAreaShader<?>> |
vbos |
Constructor and Description |
---|
JOGLRendererVBONonAreaShader(GL3 gl,
NonAreaShader shader,
Collection<NonAreaPrimitive> primitives)
Creates vertex buffer objects for all primitives.
|
Modifier and Type | Method and Description |
---|---|
void |
render()
Renders all VBOs for the
NonAreaPrimitive objects. |
protected static final boolean DOUBLE_PRECISION_RENDERING
protected GL3 gl
protected List<VBODataNonAreaShader<?>> vbos
public JOGLRendererVBONonAreaShader(GL3 gl, NonAreaShader shader, Collection<NonAreaPrimitive> primitives)
shader
- the shader used for renderingprimitives
- the primitives to render