Drag[en]gine Script Module DragonScript
1.23
|
Debug drawer. More...
Public Member Functions | |
Constructors | |
DebugDrawer | new () |
Create debug drawer. More... | |
Management | |
DVector | getPosition () |
Pposition. More... | |
void | setPosition (DVector position) |
Set position. More... | |
Quaternion | getOrientation () |
Orientation. More... | |
void | setOrientation (Quaternion orientation) |
Set orientation. More... | |
Vector | getScale () |
Scaling. More... | |
void | setScale (Vector scale) |
Set scaling. More... | |
bool | getVisible () |
Debug drawer is visible. More... | |
void | setVisible (bool visible) |
Set if debug drawer is visible. More... | |
bool | getXRay () |
Debug drawer is rendered in x-ray mode. More... | |
void | setXRay (bool xray) |
Set if debug drawer is rendered in x-ray mode. More... | |
Shapes | |
int | getShapeCount () |
Number of shapes. More... | |
void | setShapeCount (int count) |
Set number of shapes. More... | |
void | shapeSetPosition (int shape, Vector position) |
Set shae position. More... | |
void | shapeSetOrientation (int shape, Quaternion orientation) |
Set shape orientation. More... | |
void | shapeSetScale (int shape, Vector scale) |
Set shape scaling. More... | |
void | shapeSetShapes (int shape, ShapeList shapes) |
Set shape shape list. More... | |
void | shapeRemoveAllShapes (int shape) |
Remove all shapes from shape. More... | |
void | shapeSetEdgeColor (int shape, Color color) |
Set shape edge color. More... | |
void | shapeSetFillColor (int shape, Color color) |
Set shape fill color. More... | |
void | shapeAddFace (int shape) |
Add empty face to shape. More... | |
void | shapeFaceAddVertex (int shape, int face, Vector vertex) |
Add vertex to face in shape. More... | |
void | shapeFaceCalculateNormal (int shape, int face) |
Calculate shape face normal. More... | |
void | shapeRemoveAllFaces (int shape) |
Remove all faces from shape. More... | |
void | shapeFinishedFaces (int shape) |
Finished adding faces. More... | |
void | shapeSetFacesFromModel (int shape, Model model, Matrix matrix) |
Set shape faces from model. More... | |
void | shapeSetFacesFromModel (int shape, Model model, String texture, Matrix matrix) |
Set shape faces from model for faces matching texture. More... | |
Debug drawer.
This is a native class.
Quaternion Dragengine.Scenery.DebugDrawer.getOrientation | ( | ) |
Orientation.
DVector Dragengine.Scenery.DebugDrawer.getPosition | ( | ) |
Pposition.
Vector Dragengine.Scenery.DebugDrawer.getScale | ( | ) |
Scaling.
int Dragengine.Scenery.DebugDrawer.getShapeCount | ( | ) |
Number of shapes.
bool Dragengine.Scenery.DebugDrawer.getVisible | ( | ) |
Debug drawer is visible.
bool Dragengine.Scenery.DebugDrawer.getXRay | ( | ) |
Debug drawer is rendered in x-ray mode.
DebugDrawer Dragengine.Scenery.DebugDrawer.new | ( | ) |
Create debug drawer.
void Dragengine.Scenery.DebugDrawer.setOrientation | ( | Quaternion | orientation | ) |
Set orientation.
void Dragengine.Scenery.DebugDrawer.setPosition | ( | DVector | position | ) |
Set position.
void Dragengine.Scenery.DebugDrawer.setScale | ( | Vector | scale | ) |
Set scaling.
void Dragengine.Scenery.DebugDrawer.setShapeCount | ( | int | count | ) |
Set number of shapes.
void Dragengine.Scenery.DebugDrawer.setVisible | ( | bool | visible | ) |
Set if debug drawer is visible.
void Dragengine.Scenery.DebugDrawer.setXRay | ( | bool | xray | ) |
Set if debug drawer is rendered in x-ray mode.
void Dragengine.Scenery.DebugDrawer.shapeAddFace | ( | int | shape | ) |
Add empty face to shape.
Call shapeFinishedFaces once finished changing faces.
void Dragengine.Scenery.DebugDrawer.shapeFaceAddVertex | ( | int | shape, |
int | face, | ||
Vector | vertex | ||
) |
Add vertex to face in shape.
Call shapeFinishedFaces once finished changing faces.
void Dragengine.Scenery.DebugDrawer.shapeFaceCalculateNormal | ( | int | shape, |
int | face | ||
) |
Calculate shape face normal.
Call shapeFinishedFaces once finished changing faces.
void Dragengine.Scenery.DebugDrawer.shapeFinishedFaces | ( | int | shape | ) |
Finished adding faces.
Notifies modules shape faces changed.
void Dragengine.Scenery.DebugDrawer.shapeRemoveAllFaces | ( | int | shape | ) |
Remove all faces from shape.
Automatically calls shapeFinishedFaces.
void Dragengine.Scenery.DebugDrawer.shapeRemoveAllShapes | ( | int | shape | ) |
Remove all shapes from shape.
EOutOfBoundary | shape is less than 0 or larger than or equal to getShapeCount(). |
void Dragengine.Scenery.DebugDrawer.shapeSetEdgeColor | ( | int | shape, |
Color | color | ||
) |
Set shape edge color.
EOutOfBoundary | shape is less than 0 or larger than or equal to getShapeCount(). |
void Dragengine.Scenery.DebugDrawer.shapeSetFacesFromModel | ( | int | shape, |
Model | model, | ||
Matrix | matrix | ||
) |
Set shape faces from model.
Vertices are transformed by matrix. Automatically calls shapeFinishedFaces.
void Dragengine.Scenery.DebugDrawer.shapeSetFacesFromModel | ( | int | shape, |
Model | model, | ||
String | texture, | ||
Matrix | matrix | ||
) |
Set shape faces from model for faces matching texture.
Vertices are transformed by matrix. Automatically calls shapeFinishedFaces.
void Dragengine.Scenery.DebugDrawer.shapeSetFillColor | ( | int | shape, |
Color | color | ||
) |
Set shape fill color.
EOutOfBoundary | shape is less than 0 or larger than or equal to getShapeCount(). |
void Dragengine.Scenery.DebugDrawer.shapeSetOrientation | ( | int | shape, |
Quaternion | orientation | ||
) |
Set shape orientation.
EOutOfBoundary | shape is less than 0 or larger than or equal to getShapeCount(). |
void Dragengine.Scenery.DebugDrawer.shapeSetPosition | ( | int | shape, |
Vector | position | ||
) |
Set shae position.
EOutOfBoundary | shape is less than 0 or larger than or equal to getShapeCount(). |
void Dragengine.Scenery.DebugDrawer.shapeSetScale | ( | int | shape, |
Vector | scale | ||
) |
Set shape scaling.
EOutOfBoundary | shape is less than 0 or larger than or equal to getShapeCount(). |
void Dragengine.Scenery.DebugDrawer.shapeSetShapes | ( | int | shape, |
ShapeList | shapes | ||
) |
Set shape shape list.
EOutOfBoundary | shape is less than 0 or larger than or equal to getShapeCount(). |