JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.test.junit.jogl.demos.es2.GearsObjectES2 Class Reference

GearsObjectES2.java
More...

Inheritance diagram for com.jogamp.opengl.test.junit.jogl.demos.es2.GearsObjectES2:
Collaboration diagram for com.jogamp.opengl.test.junit.jogl.demos.es2.GearsObjectES2:

Public Member Functions

 GearsObjectES2 (final GL gl, final boolean useMappedBuffers, final ShaderState st, final FloatBuffer gearColor, final float inner_radius, final float outer_radius, final float width, final int teeth, final float tooth_depth, final PMVMatrix pmvMatrix, final GLUniformData pmvMatrixUniform, final GLUniformData colorUniform, final boolean validateBuffers)
 
 GearsObjectES2 (final GearsObjectES2 shared, final ShaderState st, final PMVMatrix pmvMatrix, final GLUniformData pmvMatrixUniform, final GLUniformData colorUniform)
 
GLArrayDataServer createInterleaved (final boolean useMappedBuffers, final int comps, final int dataType, final boolean normalized, final int initialSize, final int vboUsage)
 
void addInterleavedVertexAndNormalArrays (final GLArrayDataServer array, final int components)
 
void draw (final GL _gl, final float x, final float y, final float angle)
 
- Public Member Functions inherited from com.jogamp.opengl.test.junit.jogl.demos.GearsObject
abstract GLArrayDataServer createInterleaved (boolean useMappedBuffers, int comps, int dataType, boolean normalized, int initialSize, int vboUsage)
 
abstract void addInterleavedVertexAndNormalArrays (GLArrayDataServer array, int components)
 
abstract void draw (GL gl, float x, float y, float angle)
 
void destroy (final GL gl)
 
 GearsObject (final GearsObject shared)
 
 GearsObject (final GL gl, final boolean useMappedBuffers, final FloatBuffer gearColor, final float inner_radius, final float outer_radius, final float width, final int teeth, final float tooth_depth, final boolean validateBuffers)
 
String toString ()
 

Additional Inherited Members

- Public Attributes inherited from com.jogamp.opengl.test.junit.jogl.demos.GearsObject
final FloatBuffer gearColor
 
GLArrayDataServer frontFace
 
GLArrayDataServer frontSide
 
GLArrayDataServer backFace
 
GLArrayDataServer backSide
 
GLArrayDataServer outwardFace
 
GLArrayDataServer insideRadiusCyl
 
boolean isShared
 
- Static Public Attributes inherited from com.jogamp.opengl.test.junit.jogl.demos.GearsObject
static final FloatBuffer red = Buffers.newDirectFloatBuffer( new float[] { 0.8f, 0.1f, 0.0f, 0.7f } )
 
static final FloatBuffer green = Buffers.newDirectFloatBuffer( new float[] { 0.0f, 0.8f, 0.2f, 0.7f } )
 
static final FloatBuffer blue = Buffers.newDirectFloatBuffer( new float[] { 0.2f, 0.2f, 1.0f, 0.7f } )
 
static final float M_PI = (float)Math.PI
 
- Protected Attributes inherited from com.jogamp.opengl.test.junit.jogl.demos.GearsObject
boolean validateBuffers = false
 

Detailed Description

GearsObjectES2.java

Author
Brian Paul (converted to Java by Ron Cemer and Sven Gothel)

Definition at line 40 of file GearsObjectES2.java.

Constructor & Destructor Documentation

◆ GearsObjectES2() [1/2]

com.jogamp.opengl.test.junit.jogl.demos.es2.GearsObjectES2.GearsObjectES2 ( final GL  gl,
final boolean  useMappedBuffers,
final ShaderState  st,
final FloatBuffer  gearColor,
final float  inner_radius,
final float  outer_radius,
final float  width,
final int  teeth,
final float  tooth_depth,
final PMVMatrix  pmvMatrix,
final GLUniformData  pmvMatrixUniform,
final GLUniformData  colorUniform,
final boolean  validateBuffers 
)

Definition at line 46 of file GearsObjectES2.java.

◆ GearsObjectES2() [2/2]

com.jogamp.opengl.test.junit.jogl.demos.es2.GearsObjectES2.GearsObjectES2 ( final GearsObjectES2  shared,
final ShaderState  st,
final PMVMatrix  pmvMatrix,
final GLUniformData  pmvMatrixUniform,
final GLUniformData  colorUniform 
)

Definition at line 60 of file GearsObjectES2.java.

Member Function Documentation

◆ addInterleavedVertexAndNormalArrays()

void com.jogamp.opengl.test.junit.jogl.demos.es2.GearsObjectES2.addInterleavedVertexAndNormalArrays ( final GLArrayDataServer  array,
final int  components 
)

Reimplemented from com.jogamp.opengl.test.junit.jogl.demos.GearsObject.

Definition at line 92 of file GearsObjectES2.java.

Here is the call graph for this function:

◆ createInterleaved()

GLArrayDataServer com.jogamp.opengl.test.junit.jogl.demos.es2.GearsObjectES2.createInterleaved ( final boolean  useMappedBuffers,
final int  comps,
final int  dataType,
final boolean  normalized,
final int  initialSize,
final int  vboUsage 
)

Reimplemented from com.jogamp.opengl.test.junit.jogl.demos.GearsObject.

Definition at line 83 of file GearsObjectES2.java.

Here is the call graph for this function:

◆ draw()

void com.jogamp.opengl.test.junit.jogl.demos.es2.GearsObjectES2.draw ( final GL  _gl,
final float  x,
final float  y,
final float  angle 
)

Reimplemented from com.jogamp.opengl.test.junit.jogl.demos.GearsObject.

Definition at line 122 of file GearsObjectES2.java.

Here is the call graph for this function:

The documentation for this class was generated from the following file: