|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SimpleRenderer
Interface for a simple renderer. Hence the name...
Field Summary | |
---|---|
static int |
CL_CGL_SHAREGROUP_KHR
OpenCL constant for getCLContextProperties() |
static int |
CL_EGL_DISPLAY_KHR
OpenCL constant for getCLContextProperties() |
static int |
CL_GL_CONTEXT_KHR
OpenCL constant for getCLContextProperties() |
static int |
CL_GLX_DISPLAY_KHR
OpenCL constant for getCLContextProperties() |
static int |
CL_WGL_HDC_KHR
OpenCL constant for getCLContextProperties() |
Method Summary | |
---|---|
java.nio.FloatBuffer |
acquireBuffer(int vbo)
Map the buffer for the specified vertex buffer object |
void |
addPostRenderCallback(java.lang.Runnable runnable)
Add the given runnable to the rendering callbacks that will be called after each rendering pass. |
void |
addPreRenderCallback(java.lang.Runnable runnable)
Add the given runnable to the rendering callbacks that will be called before each rendering pass. |
void |
addSimpleObject(SimpleObject simpleObject)
Add a task to add the given object to this renderer. |
void |
clearSimpleObjects()
Add a task to remove all objects before the next rendering pass. |
long[] |
getCLContextProperties()
Return the OpenCL context properties for the OpenGL context that is backing this renderer. |
java.awt.Component |
getRenderComponent()
Returns the component that is used for rendering |
java.util.concurrent.Semaphore |
getRenderingSemaphore()
Returns the Semaphore that will be acquired before the rendering, and released after the rendering. |
SimpleObjectGL |
getSimpleObjectGL(SimpleObject simpleObject)
Returns the internal representation of the given object. |
java.util.List<SimpleObject> |
getSimpleObjects()
Returns an immutable list of all SimpleObjects. |
void |
invokeLater(java.lang.Runnable runnable)
Add the given runnable to be executed on the rendering thread before the next rendering pass. |
void |
releaseBuffer(int vbo)
Unmap the buffer for the specified vertex buffer object |
void |
removePostRenderCallback(java.lang.Runnable runnable)
Remove the given runnable from the rendering callbacks. |
void |
removePreRenderCallback(java.lang.Runnable runnable)
Remove the given runnable from the rendering callbacks. |
void |
removeSimpleObject(SimpleObject simpleObject)
Add a task to remove the given object. |
Field Detail |
---|
static final int CL_GL_CONTEXT_KHR
getCLContextProperties()
static final int CL_EGL_DISPLAY_KHR
getCLContextProperties()
static final int CL_GLX_DISPLAY_KHR
getCLContextProperties()
static final int CL_WGL_HDC_KHR
getCLContextProperties()
static final int CL_CGL_SHAREGROUP_KHR
getCLContextProperties()
Method Detail |
---|
java.awt.Component getRenderComponent()
void addSimpleObject(SimpleObject simpleObject)
simpleObject
- The object to addvoid removeSimpleObject(SimpleObject simpleObject)
simpleObject
- The object to remove.void clearSimpleObjects()
java.util.List<SimpleObject> getSimpleObjects()
SimpleObjectGL getSimpleObjectGL(SimpleObject simpleObject)
simpleObject
- The object whose internal representation
should be obtained.
null
if the given object is not handled
by this renderer.void addPreRenderCallback(java.lang.Runnable runnable)
runnable
- The runnable to add.void removePreRenderCallback(java.lang.Runnable runnable)
runnable
- The runnable to remove.void addPostRenderCallback(java.lang.Runnable runnable)
runnable
- The runnable to add.void removePostRenderCallback(java.lang.Runnable runnable)
runnable
- The runnable to remove.void invokeLater(java.lang.Runnable runnable)
runnable
- The runnable to addlong[] getCLContextProperties()
java.util.concurrent.Semaphore getRenderingSemaphore()
java.nio.FloatBuffer acquireBuffer(int vbo)
vbo
- The VBO identifier
void releaseBuffer(int vbo)
vbo
- The VBO identifier
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |