jjdh.opengl.meshes.core
Interface Mesh
- All Superinterfaces:
- Renderable
- All Known Implementing Classes:
- AbstractBox, AbstractMesh, AbstractTexturedBox, BlendingContainer, Box, Container, DirectMesh, DisplayListMesh, DividedBox, Flag, FractalForrest, FractalTree, HeightMapMesh, MD2Mesh, MirrorSphere, MultiTextureBox, NewSkyBox, PathIteratorMesh, SingleTexturedBox, SkyBox, Sphere, TextMesh, TrianglePillar, VertexArrayMesh
public interface Mesh
- extends Renderable
This interface models a object which can be drawn by OpenGL.
- Author:
- Jonas Jacobi, Dennis Heidsiek
Method Summary |
void |
dispose(javax.media.opengl.GL gl)
|
Material |
getMaterial()
|
float[] |
getPosition()
|
void |
move(float x,
float y,
float z)
|
void |
render(javax.media.opengl.GL gl)
|
void |
rotate(float degree,
float x,
float y,
float z)
This rotates the mesh (relative) |
void |
setMaterial(Material m)
|
void |
setPosition(float x,
float y,
float z)
|
void |
setRotation(float degree,
float x,
float y,
float z)
|
void |
setScale(float x,
float y,
float z)
|
rotate
void rotate(float degree,
float x,
float y,
float z)
- This rotates the mesh (relative)
- Parameters:
degree
- x
- y
- z
-
move
void move(float x,
float y,
float z)
setPosition
void setPosition(float x,
float y,
float z)
getPosition
float[] getPosition()
setRotation
void setRotation(float degree,
float x,
float y,
float z)
render
void render(javax.media.opengl.GL gl)
- Specified by:
render
in interface Renderable
dispose
void dispose(javax.media.opengl.GL gl)
setScale
void setScale(float x,
float y,
float z)
setMaterial
void setMaterial(Material m)
getMaterial
Material getMaterial()
Copyright © 2006 Jonas Jacobi and Dennis Heidsiek. All Rights Reserved.