|
Drag[en]gine Script Module DragonScript 1.32.1
|
Debug drawer. More...
Public Member Functions | |
Constructors | |
| DebugDrawer | new () |
| Create debug drawer. | |
Management | |
| DVector | getPosition () |
| Pposition. | |
| void | setPosition (DVector position) |
| Set position. | |
| Quaternion | getOrientation () |
| Orientation. | |
| void | setOrientation (Quaternion orientation) |
| Set orientation. | |
| Vector | getScale () |
| Scaling. | |
| void | setScale (Vector scale) |
| Set scaling. | |
| World | getParentWorld () |
| Parent world or null if not added to a world. | |
| bool | getVisible () |
| Debug drawer is visible. | |
| void | setVisible (bool visible) |
| Set if debug drawer is visible. | |
| bool | getXRay () |
| Debug drawer is rendered in x-ray mode. | |
| void | setXRay (bool xray) |
| Set if debug drawer is rendered in x-ray mode. | |
Shapes | |
| int | getShapeCount () |
| Number of shapes. | |
| void | setShapeCount (int count) |
| Set number of shapes. | |
| void | shapeSetPosition (int shape, Vector position) |
| Set shae position. | |
| void | shapeSetOrientation (int shape, Quaternion orientation) |
| Set shape orientation. | |
| void | shapeSetScale (int shape, Vector scale) |
| Set shape scaling. | |
| void | shapeSetShapes (int shape, ShapeList shapes) |
| Set shape shape list. | |
| void | shapeRemoveAllShapes (int shape) |
| Remove all shapes from shape. | |
| void | shapeSetEdgeColor (int shape, Color color) |
| Set shape edge color. | |
| void | shapeSetFillColor (int shape, Color color) |
| Set shape fill color. | |
| void | shapeAddFace (int shape) |
| Add empty face to shape. | |
| void | shapeFaceAddVertex (int shape, int face, Vector vertex) |
| Add vertex to face in shape. | |
| void | shapeFaceCalculateNormal (int shape, int face) |
| Calculate shape face normal. | |
| void | shapeRemoveAllFaces (int shape) |
| Remove all faces from shape. | |
| void | shapeFinishedFaces (int shape) |
| Finished adding faces. | |
| void | shapeSetFacesFromModel (int shape, Model model, Matrix matrix) |
| Set shape faces from model. | |
| void | shapeSetFacesFromModel (int shape, Model model, String texture, Matrix matrix) |
| Set shape faces from model for faces matching texture. | |
Debug drawer.
This is a native class.
| Quaternion Dragengine.Scenery.DebugDrawer.getOrientation | ( | ) |
Orientation.
| World Dragengine.Scenery.DebugDrawer.getParentWorld | ( | ) |
Parent world or null if not added to a world.
| 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(). |