aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/ToolkitThreadingPlugin.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-10-10 16:36:46 +0200
committerSven Gothel <[email protected]>2012-10-10 16:36:46 +0200
commit34d7e1f13a107e63bd234e4b31782cfb46feb4c0 (patch)
tree43e454156a098b1d17ac9717b115dd12227b8d9d /src/jogl/classes/jogamp/opengl/ToolkitThreadingPlugin.java
parent13402255253dcfc64aa773f0756201ec805ec063 (diff)
ImmModeSink: Fix bugs (use glBufferUsage, vboUsage, GL_POLYGON, GL_QUADS) and add API docs. (API Change)
- Changed create*(..) factory methods (API Change) - Drop passing GL instance, not needed - allows creation of ImmModeSink as final field w/o GL context - Use 'glBufferUsage' to determine whether to use VBO or not ( 0 == glBufferUsage ) - Use glBufferUsage in glBufferData(..) call (oops) - Toggle vboUsage per object ( 0 == glBufferUsage ? nonVBO : VBO ) remove static VBO usage flag - Fix render mode - GL_POLYGON -> GL_TRIANGLE_FAN (not GL_LINES) - GL_QUADS -> Looped GL_TRIANGLE_FAN (is !GL2) in draw(..) w/ and w/o indices - Buffer usage - documented - allow creating sink w/ all components (vertices, color, normal and texCoords) bit render and grow only used parts. This allows proper usage of sink where it is not known which types are being used. - Added test case - Manually tested w/ Jake2 ES1 Jake2 uses the FFP immediate mode rendering, where we utilize this sink w/o rendering artifacts.
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/ToolkitThreadingPlugin.java')
0 files changed, 0 insertions, 0 deletions