Auxiliary geometry render interface.
struct IRenderAuxGeom { };
IRenderAuxGeom.h
Used mostly for debugging, editor purposes, the Auxiliary geometry render interface provide functions to render 2d geometry and also text.
virtual ~IRenderAuxGeom();
virtual void DrawAABB(const AABB& aabb, const Matrix34& matWorld, bool bSolid, const ColorB& col, const EBoundingBoxDrawStyle& bbDrawStyle) = 0;
Draws a Axis-aligned Bounding Boxes (AABB).
virtual void DrawAABB(const AABB& aabb, bool bSolid, const ColorB& col, const EBoundingBoxDrawStyle& bbDrawStyle) = 0;
virtual void DrawAABBs(const AABB* aabbs, uint32 aabbCount, bool bSolid, const ColorB& col, const EBoundingBoxDrawStyle& bbDrawStyle) = 0;
Draws bones.
virtual void DrawBone(const Vec3& rParent, const Vec3& rBone, ColorB col) = 0;
Draws a cone.
virtual void DrawCone(const Vec3& pos, const Vec3& dir, float radius, float height, const ColorB& col, bool drawShaded = true) = 0;
Parameters |
Description |
const Vec3& pos |
Center of the base of the cone. |
const Vec3& dir |
Direction of the cone. |
float radius |
Radius of the base of the cone. |
float height |
Height of the cone. |
const ColorB& col |
Color of the cone. |
bool drawShaded = true |
True if you want to draw the cone shaded, false otherwise. |
Draws a cylinder.
virtual void DrawCylinder(const Vec3& pos, const Vec3& dir, float radius, float height, const ColorB& col, bool drawShaded = true) = 0;
Parameters |
Description |
const Vec3& pos |
Center of the base of the cylinder. |
const Vec3& dir |
Direction of the cylinder. |
float radius |
Radius of the base of the cylinder. |
float height |
Height of the cylinder. |
const ColorB& col |
Color of the cylinder. |
bool drawShaded = true |
True if you want to draw the cylinder shaded, false otherwise. |
Draws a line.
Parameters |
Description |
const Vec3& v0 |
Starting vertex of the line. |
const ColorB& colV0 |
Color of the first vertex. |
const Vec3& v1 |
Ending vertex of the line. |
const ColorB& colV1 |
Color of the second vertex. |
float thickness = 1.0f |
Thickness of the line. |
Draws n lines.
virtual void DrawLines(const Vec3* v, uint32 numPoints, const ColorB& col, float thickness = 1.0f) = 0;
Parameters |
Description |
const Vec3* v |
List of vertexes belonging to the lines we want to draw. |
uint32 numPoints |
Number of the points we will find starting from the area memory defined by v. |
const ColorB& col |
Color of the vertexes. |
float thickness = 1.0f |
Thickness of the line. |
virtual void DrawLines(const Vec3* v, uint32 numPoints, const ColorB* col, float thickness = 1.0f) = 0;
Draws n lines.
virtual void DrawLines(const Vec3* v, uint32 numPoints, const vtx_idx* ind, uint32 numIndices, const ColorB& col, float thickness = 1.0f) = 0;
Parameters |
Description |
const Vec3* v |
List of vertexes belonging to the lines we want to draw. |
uint32 numPoints |
Number of the points we will find starting from the area memory defined by v. |
const vtx_idx* ind |
numIndices - |
const ColorB& col |
Color of the vertexes. |
float thickness = 1.0f |
Thickness of the line. |
virtual void DrawLines(const Vec3* v, uint32 numPoints, const vtx_idx* ind, uint32 numIndices, const ColorB* col, float thickness = 1.0f) = 0;
virtual void DrawOBB(const OBB& obb, const Matrix34& matWorld, bool bSolid, const ColorB& col, const EBoundingBoxDrawStyle& bbDrawStyle) = 0;
Draws a Oriented Bounding Boxes (AABB).
virtual void DrawOBB(const OBB& obb, const Vec3& pos, bool bSolid, const ColorB& col, const EBoundingBoxDrawStyle& bbDrawStyle) = 0;
Draws a point.
virtual void DrawPoint(const Vec3& v, const ColorB& col, uint8 size = 1) = 0;
Parameters |
Description |
const Vec3& v |
Vector storing the position of the point. |
const ColorB& col |
Color used to draw the point. |
uint8 size = 1 |
Size of the point drawn. |
Draws n points.
virtual void DrawPoints(const Vec3* v, uint32 numPoints, const ColorB& col, uint8 size = 1) = 0;
Parameters |
Description |
const Vec3* v |
Pointer to a list of vector storing the position of the points. |
uint32 numPoints |
Number of point we will find starting from the area memory defined by v. |
const ColorB& col |
Color used to draw the points. |
uint8 size = 1 |
Size of the points drawn. |
virtual void DrawPoints(const Vec3* v, uint32 numPoints, const ColorB* col, uint8 size = 1) = 0;
Draws a polyline.
virtual void DrawPolyline(const Vec3* v, uint32 numPoints, bool closed, const ColorB& col, float thickness = 1.0f) = 0;
Parameters |
Description |
const Vec3* v |
List of vertexes belonging to the polyline we want to draw. |
uint32 numPoints |
Number of the points we will find starting from the area memory defined by v. |
bool closed |
If true a line between the last vertex and the first one is drawn. |
const ColorB& col |
Color of the vertexes. |
float thickness = 1.0f |
Thickness of the line. |
virtual void DrawPolyline(const Vec3* v, uint32 numPoints, bool closed, const ColorB* col, float thickness = 1.0f) = 0;
Draws a sphere.
virtual void DrawSphere(const Vec3& pos, float radius, const ColorB& col, bool drawShaded = true) = 0;
Parameters |
Description |
const Vec3& pos |
Center of the sphere. |
float radius |
Radius of the sphere. |
const ColorB& col |
Color of the sphere. |
bool drawShaded = true |
True if you want to draw the sphere shaded, false otherwise. |
Draws a triangle.
Parameters |
Description |
const Vec3& v0 |
First vertex of the triangle. |
const ColorB& colV0 |
Color of the first vertex of the triangle. |
const Vec3& v1 |
Second vertex of the triangle. |
const ColorB& colV1 |
Color of the second vertex of the triangle. |
const Vec3& v2 |
Third vertex of the triangle. |
const ColorB& colV2 |
Color of the third vertex of the triangle. |
Draws n triangles.
virtual void DrawTriangles(const Vec3* v, uint32 numPoints, const ColorB& col) = 0;
Parameters |
Description |
const Vec3* v |
List of vertexes belonging to the sequence of triangles we have to draw. |
uint32 numPoints |
Number of the points we will find starting from the area memory defined by v. |
const ColorB& col |
Color of the vertexes. |
virtual void DrawTriangles(const Vec3* v, uint32 numPoints, const ColorB* col) = 0;
Draws n triangles.
virtual void DrawTriangles(const Vec3* v, uint32 numPoints, const vtx_idx* ind, uint32 numIndices, const ColorB& col) = 0;
Parameters |
Description |
const Vec3* v |
List of vertexes belonging to the sequence of triangles we have to draw. |
uint32 numPoints |
Number of the points we will find starting from the area memory defined by v. |
const vtx_idx* ind |
numIndices - |
const ColorB& col |
Color of the vertexes. |
virtual void DrawTriangles(const Vec3* v, uint32 numPoints, const vtx_idx* ind, uint32 numIndices, const ColorB* col) = 0;
Flushes elements stored on the buffer to the screen.
virtual void Flush() = 0;
Gets render flags.
virtual SAuxGeomRenderFlags GetRenderFlags() = 0;
Sets render flags.
virtual void SetRenderFlags(const SAuxGeomRenderFlags& renderFlags) = 0;