|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.badlogic.gdx.graphics.g3d.Material
public class Material
Holds material data. The data contains texture/shader information and material properties for lighting. Currently the material
also supports partial serialization of its data.
Field Summary | |
---|---|
Color |
Ambient
|
int |
BlendDestFactor
|
int |
BlendSourceFactor
|
Color |
Diffuse
|
Color |
Emissive
|
java.lang.String |
Name
|
ShaderProgram |
Shader
|
Color |
Specular
|
TextureRef |
Texture
|
java.lang.String |
TexturePath
|
Constructor Summary | |
---|---|
Material(java.lang.String name)
Constructs a new material. |
Method Summary | |
---|---|
boolean |
read(java.io.DataInputStream i)
Serialization. |
void |
set(int face)
Sends the material properties to the OpenGL state. |
boolean |
write(java.io.DataOutputStream o)
Serialization. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String Name
public ShaderProgram Shader
public TextureRef Texture
public java.lang.String TexturePath
public Color Ambient
public Color Diffuse
public Color Specular
public Color Emissive
public int BlendSourceFactor
public int BlendDestFactor
Constructor Detail |
---|
public Material(java.lang.String name)
name
- The material's name.Method Detail |
---|
public void set(int face)
face
- Which faces this applies to (e.g. GL10.GL_FRONT).public boolean read(java.io.DataInputStream i) throws java.io.IOException
i
- The DataInputStream to serialize from.
java.io.IOException
public boolean write(java.io.DataOutputStream o) throws java.io.IOException
o
- The DataOutputStream to serialize to.
java.io.IOException
|
libgdx API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |