Class QuadPipelineGL10
- java.lang.Object
-
- com.metsci.glimpse.jogamp.opengl.util.awt.text.QuadPipelineGL10
-
- All Implemented Interfaces:
QuadPipeline
public final class QuadPipelineGL10 extends Object
QuadPipelinefor use with OpenGL 1.0.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.metsci.glimpse.jogamp.opengl.util.awt.text.QuadPipeline
QuadPipeline.EventListener, QuadPipeline.EventType
-
-
Constructor Summary
Constructors Constructor Description QuadPipelineGL10()Constructs aQuadPipelineGL10.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(QuadPipeline.EventListener listener)Registers anQuadPipeline.EventListenerwith thisQuadPipeline.voidaddQuad(com.jogamp.opengl.GL gl, Quad quad)Adds a quad to thisQuadPipeline.voidbeginRendering(com.jogamp.opengl.GL gl)Starts a render cycle with thisQuadPipeline.voiddispose(com.jogamp.opengl.GL gl)Frees resources used by thisQuadPipeline.voidendRendering(com.jogamp.opengl.GL gl)Finishes a render cycle with thisQuadPipeline.voidflush(com.jogamp.opengl.GL gl)Draws all vertices in thisQuadPipeline.intgetSize()Returns number of quads in thisQuadPipeline.intgetSizeInBytes()Returns size of vertices in the pipeline in bytes.intgetSizeInPrimitives()Returns number of primitives in the pipeline.intgetSizeInVertices()Returns number of vertices in the pipeline.booleanisEmpty()Checks if there aren't any quads in thisQuadPipeline.voidremoveListener(QuadPipeline.EventListener listener)Deregisters anQuadPipeline.EventListenerfrom thisQuadPipeline.
-
-
-
Constructor Detail
-
QuadPipelineGL10
public QuadPipelineGL10()
Constructs aQuadPipelineGL10.
-
-
Method Detail
-
addListener
public final void addListener(QuadPipeline.EventListener listener)
Description copied from interface:QuadPipelineRegisters anQuadPipeline.EventListenerwith thisQuadPipeline.- Specified by:
addListenerin interfaceQuadPipeline- Parameters:
listener- Listener to register
-
addQuad
public final void addQuad(com.jogamp.opengl.GL gl, Quad quad)Description copied from interface:QuadPipelineAdds a quad to thisQuadPipeline.- Specified by:
addQuadin interfaceQuadPipeline- Parameters:
gl- Current OpenGL contextquad- Quad to add to pipeline
-
beginRendering
public void beginRendering(com.jogamp.opengl.GL gl)
Description copied from interface:QuadPipelineStarts a render cycle with thisQuadPipeline.- Specified by:
beginRenderingin interfaceQuadPipeline- Parameters:
gl- Current OpenGL context
-
dispose
public void dispose(com.jogamp.opengl.GL gl)
Description copied from interface:QuadPipelineFrees resources used by thisQuadPipeline.- Specified by:
disposein interfaceQuadPipeline- Parameters:
gl- Current OpenGL context
-
endRendering
public void endRendering(com.jogamp.opengl.GL gl)
Description copied from interface:QuadPipelineFinishes a render cycle with thisQuadPipeline.- Specified by:
endRenderingin interfaceQuadPipeline- Parameters:
gl- Current OpenGL context
-
flush
public final void flush(com.jogamp.opengl.GL gl)
Description copied from interface:QuadPipelineDraws all vertices in thisQuadPipeline.- Specified by:
flushin interfaceQuadPipeline- Parameters:
gl- Current OpenGL context
-
getSize
public final int getSize()
Description copied from interface:QuadPipelineReturns number of quads in thisQuadPipeline.- Specified by:
getSizein interfaceQuadPipeline- Returns:
- Number of quads in this pipeline, not negative
-
isEmpty
public final boolean isEmpty()
Description copied from interface:QuadPipelineChecks if there aren't any quads in thisQuadPipeline.- Specified by:
isEmptyin interfaceQuadPipeline- Returns:
- True if there aren't any quads in this pipeline
-
getSizeInBytes
public final int getSizeInBytes()
Returns size of vertices in the pipeline in bytes.
-
getSizeInPrimitives
public final int getSizeInPrimitives()
Returns number of primitives in the pipeline.
-
getSizeInVertices
public final int getSizeInVertices()
Returns number of vertices in the pipeline.
-
removeListener
public final void removeListener(QuadPipeline.EventListener listener)
Description copied from interface:QuadPipelineDeregisters anQuadPipeline.EventListenerfrom thisQuadPipeline.- Specified by:
removeListenerin interfaceQuadPipeline- Parameters:
listener- Listener to deregister, ignored if null or unregistered
-
-