class D3DMeshView extends BaseMeshView
Modifier and Type | Class and Description |
---|---|
(package private) static class |
D3DMeshView.D3DMeshViewDisposerRecord |
Modifier and Type | Field and Description |
---|---|
private D3DContext |
context |
(package private) static int |
count |
private D3DPhongMaterial |
material |
private D3DMesh |
mesh |
private long |
nativeHandle |
disposerRecord
CULL_BACK, CULL_FRONT, CULL_NONE
Modifier | Constructor and Description |
---|---|
private |
D3DMeshView(D3DContext context,
long nativeHandle,
D3DMesh mesh,
Disposer.Record disposerRecord) |
Modifier and Type | Method and Description |
---|---|
(package private) static D3DMeshView |
create(D3DContext context,
D3DMesh mesh) |
void |
dispose() |
int |
getCount() |
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 D3DContext context
private final long nativeHandle
private final D3DMesh mesh
private D3DPhongMaterial material
private D3DMeshView(D3DContext context, long nativeHandle, D3DMesh mesh, Disposer.Record disposerRecord)
static D3DMeshView create(D3DContext context, D3DMesh 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)
public void setPointLight(int index, float x, float y, float z, float r, float g, float b, float w)
public void render(Graphics g)
public void dispose()
dispose
in interface GraphicsResource
dispose
in class BaseGraphicsResource
public int getCount()