org.osm2world.core.target.jogl
public abstract class JOGLRendererVBO extends Object
freeResources()
to delete the VBOs and other resources.Modifier and Type | Class and Description |
---|---|
protected static class |
JOGLRendererVBO.PrimitiveWithMaterial |
Modifier and Type | Field and Description |
---|---|
protected static boolean |
DOUBLE_PRECISION_RENDERING |
protected JOGLTextureManager |
textureManager |
protected List<JOGLRendererVBO.PrimitiveWithMaterial> |
transparentPrimitives
alphablended primitives, need to be sorted by distance from camera
|
protected List<VBOData<?>> |
vbos
VBOs with static, non-alphablended geometry for each material
|
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
void |
freeResources()
frees all OpenGL resources associated with this object.
|
static int |
getValuesPerVertex(Material material)
returns the number of values for each vertex
in the vertex buffer layout appropriate for a given material.
|
protected void |
init(PrimitiveBuffer primitiveBuffer)
Create the VBOs from a
PrimitiveBuffer . |
abstract void |
render(Camera camera,
Projection projection)
Render all primitives.
|
protected void |
sortPrimitivesBackToFront(Camera camera,
Projection projection)
Sort all transparent primitives back to front relative to the camera.
|
protected static final boolean DOUBLE_PRECISION_RENDERING
protected List<VBOData<?>> vbos
protected List<JOGLRendererVBO.PrimitiveWithMaterial> transparentPrimitives
protected JOGLTextureManager textureManager
public static int getValuesPerVertex(Material material)
protected void init(PrimitiveBuffer primitiveBuffer)
PrimitiveBuffer
.primitiveBuffer
- the source for the VBOsprotected void sortPrimitivesBackToFront(Camera camera, Projection projection)
public void freeResources()
public abstract void render(Camera camera, Projection projection)
protected void finalize()
finalize
in class Object