#include
Public Member Functions | |
virtual SAuxGeomRenderFlags | SetRenderFlags (const SAuxGeomRenderFlags &renderFlags)=0 |
virtual SAuxGeomRenderFlags | GetRenderFlags ()=0 |
Gets render flags. | |
virtual const CCamera & | GetCamera () const =0 |
Assign current rendering camera to the Aux renderer, used for correctly projecting 3D elements. | |
virtual void | SetCurrentDisplayContext (CryDisplayContextHandle context)=0 |
Set current display context for the following auxiliary rendering. | |
virtual void | DrawPoint (const Vec3 &v, const ColorB &col, uint8 size=1)=0 |
virtual void | DrawLine (const Vec3 &v0, const ColorB &colV0, const Vec3 &v1, const ColorB &colV1, float thickness=1.0f)=0 |
virtual void | DrawTriangle (const Vec3 &v0, const ColorB &colV0, const Vec3 &v1, const ColorB &colV1, const Vec3 &v2, const ColorB &colV2)=0 |
virtual void | DrawSphere (const Vec3 &pos, float radius, const ColorB &col, bool drawShaded=true)=0 |
virtual void | DrawCone (const Vec3 &pos, const Vec3 &dir, float radius, float height, const ColorB &col, bool drawShaded=true)=0 |
virtual void | DrawCylinder (const Vec3 &pos, const Vec3 &dir, float radius, float height, const ColorB &col, bool drawShaded=true)=0 |
virtual void | DrawBone (const Vec3 &rParent, const Vec3 &rBone, ColorB col)=0 |
Draw a bone. | |
virtual int | PushMatrix (const Matrix34 &mat)=0 |
virtual void | PushImage (const SRender2DImageDescription &image)=0 |
virtual int | SetTexture (int idTexture) |
virtual Matrix34 * | GetMatrix ()=0 |
virtual void | SetMatrixIndex (int matID)=0 |
virtual void | Submit (uint frames=0)=0 |
virtual void | SetOrthographicProjection (bool enable, float l=0, float r=1, float b=0, float t=1, float n=-1e10, float f=1e10)=0 |
Create and set the projection matrix to orthographic projection. The orthographics projection will be used until it is set to off. | |
virtual void | DrawPoints (const Vec3 *v, uint32 numPoints, const ColorB &col, uint8 size=1)=0 |
virtual void | DrawPoints (const Vec3 *v, uint32 numPoints, const ColorB *col, uint8 size=1)=0 |
virtual void | DrawLines (const Vec3 *v, uint32 numPoints, const ColorB &col, float thickness=1.0f)=0 |
virtual void | DrawLines (const Vec3 *v, uint32 numPoints, const ColorB *col, float thickness=1.0f)=0 |
virtual void | DrawLines (const Vec3 *v, const uint32 *packedColorARGB8888, uint32 numPoints, float thickness=1.0f, bool alphaFlag=true)=0 |
virtual void | DrawLines (const Vec3 *v, uint32 numPoints, const vtx_idx *ind, uint32 numIndices, const ColorB &col, float thickness=1.0f)=0 |
virtual void | DrawLines (const Vec3 *v, uint32 numPoints, const vtx_idx *ind, uint32 numIndices, const ColorB *col, float thickness=1.0f)=0 |
virtual void | DrawLineStrip (const Vec3 *v, uint32 numPoints, const ColorB *col, float thickness=1.0f)=0 |
virtual void | DrawPolyline (const Vec3 *v, uint32 numPoints, bool closed, const ColorB &col, float thickness=1.0f)=0 |
virtual void | DrawPolyline (const Vec3 *v, uint32 numPoints, bool closed, const ColorB *col, float thickness=1.0f)=0 |
virtual void | DrawTriangles (const Vec3 *v, uint32 numPoints, const ColorB &col)=0 |
virtual void | DrawTriangles (const Vec3 *v, uint32 numPoints, const ColorB *col)=0 |
virtual void | DrawTriangles (const Vec3 *v, uint32 numPoints, const vtx_idx *ind, uint32 numIndices, const ColorB &col)=0 |
virtual void | DrawTriangles (const Vec3 *v, uint32 numPoints, const vtx_idx *ind, uint32 numIndices, const ColorB *col)=0 |
virtual void | DrawBuffer (const SAuxVertex *inVertices, uint32 numVertices, bool textured)=0 |
virtual SAuxVertex * | BeginDrawBuffer (uint32 maxVertices, bool textured)=0 |
virtual void | EndDrawBuffer (uint32 numVertices)=0 |
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 |
virtual void | DrawAABB (const AABB &aabb, const Matrix34 &matWorld, bool bSolid, const ColorB &col, const EBoundingBoxDrawStyle &bbDrawStyle)=0 |
virtual void | DrawOBB (const OBB &obb, const Vec3 &pos, bool bSolid, const ColorB &col, const EBoundingBoxDrawStyle &bbDrawStyle)=0 |
virtual void | DrawOBB (const OBB &obb, const Matrix34 &matWorld, bool bSolid, const ColorB &col, const EBoundingBoxDrawStyle &bbDrawStyle)=0 |
virtual void | RenderTextQueued (Vec3 pos, const SDrawTextInfo &ti, const char *text)=0 |
void | DrawQuad (const Vec3 &v0, const ColorB &colV0, const Vec3 &v1, const ColorB &colV1, const Vec3 &v2, const ColorB &colV2, const Vec3 &v3, const ColorB &colV3) |
void | RenderText (Vec3 pos, const SDrawTextInfo &ti, const char *format, va_list args) |
void | Draw2dLabel (float x, float y, float font_size, const ColorF &fColor, bool bCenter, const char *format, va_list args) |
void | Draw2dLabel (float x, float y, float font_size, const ColorF &fColor, bool bCenter, const char *label_text,...) PRINTF_PARAMS(7 |
void | va_start (args, label_text) |
Draw2dLabel (x, y, font_size, fColor, bCenter, label_text, args) | |
va_end (args) | |
void | Draw2dLabel (float x, float y, float font_size, const float pfColor[4], bool bCenter, const char *label_text,...) PRINTF_PARAMS(7 |
void | va_start (args, label_text) |
Draw2dLabel (x, y, font_size, *(ColorF *) pfColor, bCenter, label_text, args) | |
va_end (args) | |
Static Public Member Functions | |
static IRenderAuxGeom * | GetAux () |
Auxiliary geometry render interface. Used mostly for debugging, editor purposes, the Auxiliary geometry render interface provide functions to render 2d geometry and also text.
|
pure virtual |
passes a pointer to buffer of vertices for drawing n triangles.
numVertices | Maximum number of points we want to fill. |
textured | Whether the triangles are textured or not. |
Draw a Axis-aligned Bounding Boxes (AABB).
|
pure virtual |
Draw n triangles.
inVertices | List of vertices belonging to the sequence of triangles we have to draw. |
numVertices | Number of the points we will find starting from the area memory defined by v. |
textured | Whether the triangles are textured or not. |
Draw a cone.
pos | Center of the base of the cone. |
dir | Direction of the cone. |
radius | Radius of the base of the cone. |
height | Height of the cone. |
col | Color of the cone. |
drawShaded | True if you want to draw the cone shaded, false otherwise. |
Draw a cylinder.
pos | Center of the base of the cylinder. |
dir | Direction of the cylinder. |
radius | Radius of the base of the cylinder. |
height | Height of the cylinder. |
col | Color of the cylinder. |
drawShaded | True if you want to draw the cylinder shaded, false otherwise. |
Draw a line.
v0 | Starting vertex of the line. |
colV0 | Color of the first vertex. |
v1 | Ending vertex of the line. |
colV1 | Color of the second vertex. |
thickness | Thickness of the line. |
Draw n lines.
v | List of vertices belonging to the lines we want to draw. |
numPoints | Number of the points we will find starting from the area memory defined by v. |
col | Color of the vertices. |
thickness | Thickness of the line. |
|
pure virtual |
Draw n lines.
v | List of vertices belonging to the lines we want to draw. |
packedColor | List of colors belonging to each vertex we want to draw. Packed into one uint32 via ARGB8888. Is of same length as v (i.e., numPoints). |
numPoints | Number of the points we will find starting from the area memory defined by v. |
thickness | Thickness of the line. |
alphaFlag | Enable/disable transparency. |
Draw n lines.
v | List of vertices belonging to the lines we want to draw. |
numPoints | Number of the points we will find starting from the area memory defined by v. |
ind | |
numIndices | |
col | Color of the vertices. |
thickness | Thickness of the line. |
Draw n line strips.
v | List of vertices belonging to the line strip we want to draw. |
numPoints | Number of the points we will find starting from the area memory defined by v. |
col | Color of the vertices. |
thickness | Thickness of the line. |
Draw a Oriented Bounding Boxes (AABB).
Draw a point.
v | Vector storing the position of the point. |
col | Color used to draw the point. |
size | Size of the point drawn. |
Draw n points.
v | Pointer to a list of vector storing the position of the points. |
numPoints | Number of point we will find starting from the area memory defined by v. |
col | Color used to draw the points. |
size | Size of the points drawn. |
Draw a polyline.
v | List of vertices belonging to the polyline we want to draw. |
numPoints | Number of the points we will find starting from the area memory defined by v. |
closed | If true a line between the last vertex and the first one is drawn. |
col | Color of the vertices. |
thickness | Thickness of the line. |
Draw a sphere.
pos | Center of the sphere. |
radius | Radius of the sphere. |
col | Color of the sphere. |
drawShaded | True if you want to draw the sphere shaded, false otherwise. |
Draw a triangle.
v0 | First vertex of the triangle. |
colV0 | Color of the first vertex of the triangle. |
v1 | Second vertex of the triangle. |
colV1 | Color of the second vertex of the triangle. |
v2 | Third vertex of the triangle. |
colV2 | Color of the third vertex of the triangle. |
Draw n triangles.
v | List of vertices belonging to the sequence of triangles we have to draw. |
numPoints | Number of the points we will find starting from the area memory defined by v. |
col | Color of the vertices. |
Draw n triangles.
v | List of vertices belonging to the sequence of triangles we have to draw. |
numPoints | Number of the points we will find starting from the area memory defined by v. |
ind | |
numIndices | |
col | Color of the vertices. |
|
pure virtual |
Signals filling the vertex buffer is done. There MUST be ONE corresponding BeginDrawBuffer call before this function call.
numVertices | Number of vertices that are actually drawn. |
|
pure virtual |
Get the world matrix for the next primitives
|
pure virtual |
Adds a 2D image that should be drawn on the screen to an internal render list. The function supports placing images in stereo 3D space. The stereo params are the same that are used for the scene. A value of 0 is handled as a special case and always places the image on the screen plane. image.stereoDepth - Places image in stereo 3d space. The depth is specified in camera space.
|
pure virtual |
Push a world matrix for the next primitives
mat | Contains the matrix that will be used for trasforms of further primitives |
|
pure virtual |
Draw Text.
|
pure virtual |
Set world matrix for the next primitives based on ID. This function allows us to do push/pop semantics
matID | matrix ID. Should be a matrix id returned by PushMatrix |
|
pure virtual |
Sets render flags.
|
pure virtual |
Flushes yet unprocessed elements and notifies rendering system that issuing rendering commands for current frame is done and frame is ready to be drawn. Thus Submit() guarantees that all previously issued commands will appear on the screen. Each thread rendering AUX geometry MUST call Submit() at the end of drawing cycle/frame "frames" indicate how many frames current commands butch must be presented on screen unless there till next butch is ready. for render and main thread this parameter has no effect