org.osm2world.core.target.jogl
public class JOGLRendererVBOShader extends JOGLRendererVBO
PrimitiveBuffer
using JOGL and the new shader based OpenGL 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.JOGLRendererVBO.PrimitiveWithMaterial
Modifier and Type | Field and Description |
---|---|
protected AxisAlignedBoundingBoxXYZ |
boundingBox |
protected GL3 |
gl |
protected AbstractPrimitiveShader |
shader |
protected JOGLTextureManager |
textureManager |
DOUBLE_PRECISION_RENDERING, transparentPrimitives, vbos
Modifier and Type | Method and Description |
---|---|
protected void |
finalize() |
void |
freeResources()
frees all OpenGL resources associated with this object.
|
AxisAlignedBoundingBoxXYZ |
getBoundingBox()
Get the bounding box around all relevant primitives computed at
JOGLRendererVBOShader(GL3, JOGLTextureManager, PrimitiveBuffer, AxisAlignedBoundingBoxXZ) |
void |
render()
Render the stored VBOS.
|
void |
render(Camera camera,
Projection projection)
Render the stored VBOs.
|
void |
setShader(AbstractPrimitiveShader shader)
Change the shader used to render the VBOs
|
getValuesPerVertex, init, sortPrimitivesBackToFront
protected GL3 gl
protected AbstractPrimitiveShader shader
protected AxisAlignedBoundingBoxXYZ boundingBox
protected JOGLTextureManager textureManager
public void render()
render(Camera, Projection)
.public void render(Camera camera, Projection projection)
public void freeResources()
freeResources
in class JOGLRendererVBO
public void setShader(AbstractPrimitiveShader shader)
public AxisAlignedBoundingBoxXYZ getBoundingBox()
JOGLRendererVBOShader(GL3, JOGLTextureManager, PrimitiveBuffer, AxisAlignedBoundingBoxXZ)
protected void finalize()
finalize
in class Object