org.osm2world.core.target.jogl
public class JOGLRendererVBOShadowVolume extends Object
PrimitiveBuffer
using JOGL.
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 VectorXYZW |
lightPos |
protected AbstractPrimitiveShader |
shader |
protected List<VBODataShadowVolume<?>> |
vbos
VBOs with static, non-alphablended geometry for each material
|
Modifier and Type | Method and Description |
---|---|
void |
freeResources()
frees all OpenGL resources associated with this object.
|
protected void |
init(PrimitiveBuffer primitiveBuffer) |
void |
render()
Render all shadow volume VBOs
|
void |
setShader(AbstractPrimitiveShader shader)
Set the shader used for rendering.
|
protected GL3 gl
protected AbstractPrimitiveShader shader
protected VectorXYZW lightPos
protected static final boolean DOUBLE_PRECISION_RENDERING
protected List<VBODataShadowVolume<?>> vbos
protected void init(PrimitiveBuffer primitiveBuffer)
public void render()
public void freeResources()
public void setShader(AbstractPrimitiveShader shader)