Class SphereVBO.VBOSphereMeshBuilder
- java.lang.Object
-
- org.jzy3d.plot3d.primitives.vbo.drawable.SphereVBO.VBOSphereMeshBuilder
-
- All Implemented Interfaces:
IGLLoader<DrawableVBO>
- Enclosing class:
- SphereVBO
public static class SphereVBO.VBOSphereMeshBuilder extends Object implements IGLLoader<DrawableVBO>
This load the definition of a VBO sphere object and set arrays for later rendering.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
hasMountedOnce
protected int
normalVboId
protected FloatBuffer
sphereNormalBuffer
protected float[]
sphereVertexArray
protected FloatBuffer
sphereVertexBuffer
protected int
vertexVboId
-
Constructor Summary
Constructors Constructor Description VBOSphereMeshBuilder(double radius, int stacks, int slices)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasMountedOnce()
void
load(IPainter painter, DrawableVBO drawable)
-
-
-
Field Detail
-
sphereVertexBuffer
protected FloatBuffer sphereVertexBuffer
-
sphereNormalBuffer
protected FloatBuffer sphereNormalBuffer
-
sphereVertexArray
protected float[] sphereVertexArray
-
vertexVboId
protected int vertexVboId
-
normalVboId
protected int normalVboId
-
hasMountedOnce
protected boolean hasMountedOnce
-
-
Method Detail
-
load
public void load(IPainter painter, DrawableVBO drawable) throws Exception
- Specified by:
load
in interfaceIGLLoader<DrawableVBO>
- Throws:
Exception
-
hasMountedOnce
public boolean hasMountedOnce()
-
-