class ES2MeshView extends BaseMeshView
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ES2MeshView.ES2MeshViewDisposerRecord |
Modifier and Type | Field and Description |
---|---|
private float |
ambientLightBlue |
private float |
ambientLightGreen |
private float |
ambientLightRed |
private ES2Context |
context |
(package private) static int |
count |
private ES2Light[] |
lights |
private ES2PhongMaterial |
material |
private ES2Mesh |
mesh |
private long |
nativeHandle |
disposerRecord
CULL_BACK, CULL_FRONT, CULL_NONE
Modifier | Constructor and Description |
---|---|
private |
ES2MeshView(ES2Context context,
long nativeHandle,
ES2Mesh mesh,
Disposer.Record disposerRecord) |
Modifier and Type | Method and Description |
---|---|
(package private) static ES2MeshView |
create(ES2Context context,
ES2Mesh mesh) |
void |
dispose() |
(package private) float |
getAmbientLightBlue() |
(package private) float |
getAmbientLightGreen() |
(package private) float |
getAmbientLightRed() |
int |
getCount() |
(package private) ES2PhongMaterial |
getMaterial() |
(package private) ES2Light[] |
getPointLights() |
void |
render(Graphics g) |
void |
setAmbientLight(float r,
float g,
float b) |
void |
setCullingMode(int cullingMode) |
void |
setMaterial(Material material) |
void |
setPointLight(int index,
float x,
float y,
float z,
float r,
float g,
float b,
float w) |
void |
setWireframe(boolean wireframe) |
static int count
private final ES2Context context
private final long nativeHandle
private float ambientLightRed
private float ambientLightBlue
private float ambientLightGreen
private ES2Light[] lights
private final ES2Mesh mesh
private ES2PhongMaterial material
private ES2MeshView(ES2Context context, long nativeHandle, ES2Mesh mesh, Disposer.Record disposerRecord)
static ES2MeshView create(ES2Context context, ES2Mesh mesh)
public void setCullingMode(int cullingMode)
public void setMaterial(Material material)
public void setWireframe(boolean wireframe)
public void setAmbientLight(float r, float g, float b)
float getAmbientLightRed()
float getAmbientLightGreen()
float getAmbientLightBlue()
public void setPointLight(int index, float x, float y, float z, float r, float g, float b, float w)
ES2Light[] getPointLights()
public void render(Graphics g)
ES2PhongMaterial getMaterial()
public void dispose()
dispose
in interface GraphicsResource
dispose
in class BaseGraphicsResource
public int getCount()