|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme.scene.VBOInfo
public class VBOInfo
VBOInfo
provides a single class for dealing with the VBO
characteristics of a Geometry object(s)
Constructor Summary | |
---|---|
VBOInfo()
|
|
VBOInfo(boolean defaultVBO)
Create a VBOInfo object that sets VBO to enabled or disabled for all types except Index, which is always disabled unless set with setVBOIndexEnabled(true) |
Method Summary | |
---|---|
VBOInfo |
copy()
Creates a copy of this VBOInfo. |
java.lang.Class<? extends VBOInfo> |
getClassTag()
|
int |
getVBOColorID()
|
int |
getVBOFogCoordsID()
|
int |
getVBOIndexID()
|
int |
getVBONormalID()
|
int |
getVBOTextureID(int index)
|
int |
getVBOVertexID()
|
boolean |
isVBOColorEnabled()
Returns true if VBO (Vertex Buffer) is enabled for color information. |
boolean |
isVBOFogCoordsEnabled()
Returns true if VBO (Vertex Buffer) is enabled for fog coords information. |
boolean |
isVBOIndexEnabled()
Returns true if VBO (Vertex Buffer) is enabled for indices information. |
boolean |
isVBONormalEnabled()
Returns true if VBO (Vertex Buffer) is enabled for normal information. |
boolean |
isVBOTextureEnabled()
Returns true if VBO (Vertex Buffer) is enabled for texture information. |
boolean |
isVBOVertexEnabled()
Returns true if VBO (Vertex Buffer) is enabled for vertex information. |
void |
read(JMEImporter e)
|
void |
resizeTextureIds(int size)
resizeTextureIds forces the texid array to be the given
size, maintaining any old id values that can fit in the new sized array. |
void |
setVBOColorEnabled(boolean enabled)
Enables or disables Vertex Buffer Objects for color information. |
void |
setVBOColorID(int id)
|
void |
setVBOFogCoordsEnabled(boolean enabled)
Enables or disables Vertex Buffer Objects for fog coords information. |
void |
setVBOFogCoordsID(int id)
|
void |
setVBOIndexEnabled(boolean enabled)
Enables or disables Vertex Buffer Objects for indices information. |
void |
setVBOIndexID(int id)
|
void |
setVBONormalEnabled(boolean enabled)
Enables or disables Vertex Buffer Objects for normal information. |
void |
setVBONormalID(int id)
|
void |
setVBOTextureEnabled(boolean enabled)
Enables or disables Vertex Buffer Objects for texture coordinate information. |
void |
setVBOTextureID(int index,
int id)
|
void |
setVBOVertexEnabled(boolean enabled)
Enables or disables Vertex Buffer Objects for vertex information. |
void |
setVBOVertexID(int id)
|
void |
write(JMEExporter e)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VBOInfo()
public VBOInfo(boolean defaultVBO)
defaultVBO
- true for enabled, false for disabled.Method Detail |
---|
public VBOInfo copy()
public void resizeTextureIds(int size)
resizeTextureIds
forces the texid array to be the given
size, maintaining any old id values that can fit in the new sized array.
size of 0 is ignored.
size
- new size of texcoord id arraypublic boolean isVBOVertexEnabled()
public boolean isVBOFogCoordsEnabled()
public boolean isVBOIndexEnabled()
public boolean isVBOTextureEnabled()
public boolean isVBONormalEnabled()
public boolean isVBOColorEnabled()
public void setVBOVertexEnabled(boolean enabled)
enabled
- If true, VBO enabled for vertexes.public void setVBOFogCoordsEnabled(boolean enabled)
enabled
- If true, VBO enabled for fog coords.public void setVBOIndexEnabled(boolean enabled)
enabled
- If true, VBO enabled for indices.public void setVBOTextureEnabled(boolean enabled)
enabled
- If true, VBO enabled for texture coordinates.public void setVBONormalEnabled(boolean enabled)
enabled
- If true, VBO enabled for normalspublic void setVBOColorEnabled(boolean enabled)
enabled
- If true, VBO enabled for colorspublic int getVBOVertexID()
public int getVBOTextureID(int index)
public int getVBONormalID()
public int getVBOFogCoordsID()
public int getVBOColorID()
public void setVBOVertexID(int id)
public void setVBOTextureID(int index, int id)
public void setVBONormalID(int id)
public void setVBOFogCoordsID(int id)
public void setVBOColorID(int id)
public int getVBOIndexID()
public void setVBOIndexID(int id)
public void write(JMEExporter e) throws java.io.IOException
write
in interface Savable
java.io.IOException
public void read(JMEImporter e) throws java.io.IOException
read
in interface Savable
java.io.IOException
public java.lang.Class<? extends VBOInfo> getClassTag()
getClassTag
in interface Savable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |