void

Description

Classes

   
class Rendering::TextRenderer
Text rendering using bitmap fonts.

Functions

   
   
void drawAbsBox(RenderingContext & rc, const Geometry::Box & box)
   
void drawAbsBox(RenderingContext & rc, const Geometry::Box & box, const Util::Color4f & color)
   
void drawAbsWireframeBox(RenderingContext & rc, const Geometry::Box & box)
   
void drawAbsWireframeBox(RenderingContext & rc, const Geometry::Box & box, const Util::Color4f & color)
   
void drawBox(RenderingContext & rc, const Geometry::Box & box)
   
void drawBox(RenderingContext & rc, const Geometry::Box & box, const Util::Color4f & color)
   
void drawWireframeBox(RenderingContext & rc, const Geometry::Box & box)
   
void drawWireframeBox(RenderingContext & rc, const Geometry::Box & box, const Util::Color4f & color)
   
void drawWireframeSphere(RenderingContext & rc, const Geometry::Sphere & sphere)
   
void drawWireframeSphere(RenderingContext & rc, const Geometry::Sphere & sphere, const Util::Color4f & color)
   
void drawFastAbsBox(RenderingContext & rc, const Geometry::Box & box)
   
void drawFullScreenRect(RenderingContext & rc)
   
void drawQuad(RenderingContext & rc, const Geometry::Vec3f & lowerLeft, const Geometry::Vec3f & lowerRight, const Geometry::Vec3f & upperRight, const Geometry::Vec3f & upperLeft)
   
void drawQuad(RenderingContext & rc, const Geometry::Vec3f & lowerLeft, const Geometry::Vec3f & lowerRight, const Geometry::Vec3f & upperRight, const Geometry::Vec3f & upperLeft, const Util::Color4f & color)
   
void drawWireframeRect(RenderingContext & rc, const Geometry::Rect & rect)
   
void drawWireframeRect(RenderingContext & rc, const Geometry::Rect & rect, const Util::Color4f & color)
   
void drawRect(RenderingContext & rc, const Geometry::Rect & rect)
   
void drawRect(RenderingContext & rc, const Geometry::Rect & rect, const Util::Color4f & color)
   
void drawWireframeCircle(RenderingContext & rc, const Geometry::Vec2f & center, float radius)
   
void drawWireframeCircle(RenderingContext & rc, const Geometry::Vec2f & center, float radius, const Util::Color4f & color)
   
void drawTriangle(RenderingContext & rc, const Geometry::Vec3f & vertexA, const Geometry::Vec3f & vertexB, const Geometry::Vec3f & vertexC)
   
void drawVector(RenderingContext & rc, const Geometry::Vec3f & from, const Geometry::Vec3f & to)
   
void drawVector(RenderingContext & rc, const Geometry::Vec3f & from, const Geometry::Vec3f & to, const Util::Color4f & color)
   
void drawVector(RenderingContext & rc, const Geometry::Vec3f & from, const Geometry::Vec3f & to, const Util::Color4f & color1, const Util::Color4f & color2)
   
void enable2DMode(RenderingContext & rc)
   
void enable2DMode(RenderingContext & rc, const Geometry::Rect_i & screenRect)
   
void disable2DMode(RenderingContext & rc)
Reset the projection and modelview matrices to the state before the last call to enable2DMode() .
   
void enableInstanceBuffer(RenderingContext & rc, BufferObject & instanceBuffer, int32_t location, uint32_t elements)
   
void disableInstanceBuffer(RenderingContext & rc, BufferObject & instanceBuffer, int32_t location, uint32_t elements)
   
void drawInstances(RenderingContext & rc, Mesh * m, uint32_t firstElement, uint32_t elementCount, uint32_t instanceCount)
   
void drawCamera(RenderingContext & rc, const Util::Color4f & color)
Draw a symbolized camera using the given rendering context, and color.
   
void drawCoordSys(RenderingContext & rc, float scale)
   
void drawFrustum(RenderingContext & rc, const Geometry::Frustum & frustum, const Util::Color4f & color, float lineWidth)
Draw the given frustum as lines using the given rendering context, color, and line width.
   
void drawGrid(RenderingContext & rc, float scale)

Documentation

function
drawAbsBox

public
     
     
void drawAbsBox( RenderingContext & rc,
  const Geometry::Box & box
)    

Defined in Rendering/Draw.h:62


function
drawAbsBox

public
     
     
void drawAbsBox( RenderingContext & rc,
  const Geometry::Box & box,
  const Util::Color4f & color
)    

Defined in Rendering/Draw.h:63


function
drawAbsWireframeBox

public
     
     
void drawAbsWireframeBox( RenderingContext & rc,
  const Geometry::Box & box
)    

Defined in Rendering/Draw.h:64


function
drawAbsWireframeBox

public
     
     
void drawAbsWireframeBox( RenderingContext & rc,
  const Geometry::Box & box,
  const Util::Color4f & color
)    

Defined in Rendering/Draw.h:65


function
drawBox

public
     
     
void drawBox( RenderingContext & rc,
  const Geometry::Box & box
)    

Defined in Rendering/Draw.h:66


function
drawBox

public
     
     
void drawBox( RenderingContext & rc,
  const Geometry::Box & box,
  const Util::Color4f & color
)    

Defined in Rendering/Draw.h:67


function
drawWireframeBox

public
     
     
void drawWireframeBox( RenderingContext & rc,
  const Geometry::Box & box
)    

Defined in Rendering/Draw.h:68


function
drawWireframeBox

public
     
     
void drawWireframeBox( RenderingContext & rc,
  const Geometry::Box & box,
  const Util::Color4f & color
)    

Defined in Rendering/Draw.h:69


function
drawWireframeSphere

public
     
     
void drawWireframeSphere( RenderingContext & rc,
  const Geometry::Sphere & sphere
)    

Defined in Rendering/Draw.h:70


function
drawWireframeSphere

public
     
     
void drawWireframeSphere( RenderingContext & rc,
  const Geometry::Sphere & sphere,
  const Util::Color4f & color
)    

Defined in Rendering/Draw.h:71


function
drawFastAbsBox

public
     
     
void drawFastAbsBox( RenderingContext & rc,
  const Geometry::Box & box
)    

Note: Because OpenGL immediate mode is used inside this function, the caller has to make sure that RenderingContext::applyChanges() is called before.

Defined in Rendering/Draw.h:77


function
drawFullScreenRect

public
     
     
void drawFullScreenRect( RenderingContext & rc )

Defined in Rendering/Draw.h:80


function
drawQuad

public
     
     
void drawQuad( RenderingContext & rc,
  const Geometry::Vec3f & lowerLeft,
  const Geometry::Vec3f & lowerRight,
  const Geometry::Vec3f & upperRight,
  const Geometry::Vec3f & upperLeft
)    

Draw a quadrilateral in three-dimensional space. The quadrilateral is given by four points. Positions, normals and texture coordinates are generated for the vertices.

Defined in Rendering/Draw.h:86


function
drawQuad

public
     
     
void drawQuad( RenderingContext & rc,
  const Geometry::Vec3f & lowerLeft,
  const Geometry::Vec3f & lowerRight,
  const Geometry::Vec3f & upperRight,
  const Geometry::Vec3f & upperLeft,
  const Util::Color4f & color
)    

Set the current color and draw a quadrilateral in three-dimensional space.

See also: drawQuad

Defined in Rendering/Draw.h:92


function
drawWireframeRect

public
     
     
void drawWireframeRect( RenderingContext & rc,
  const Geometry::Rect & rect
)    

Defined in Rendering/Draw.h:94


function
drawWireframeRect

public
     
     
void drawWireframeRect( RenderingContext & rc,
  const Geometry::Rect & rect,
  const Util::Color4f & color
)    

Defined in Rendering/Draw.h:95


function
drawRect

public
     
     
void drawRect( RenderingContext & rc,
  const Geometry::Rect & rect
)    

Defined in Rendering/Draw.h:97


function
drawRect

public
     
     
void drawRect( RenderingContext & rc,
  const Geometry::Rect & rect,
  const Util::Color4f & color
)    

Defined in Rendering/Draw.h:98


function
drawWireframeCircle

public
     
     
void drawWireframeCircle( RenderingContext & rc,
  const Geometry::Vec2f & center,
  float radius
)    

Defined in Rendering/Draw.h:100


function
drawWireframeCircle

public
     
     
void drawWireframeCircle( RenderingContext & rc,
  const Geometry::Vec2f & center,
  float radius,
  const Util::Color4f & color
)    

Defined in Rendering/Draw.h:101


function
drawTriangle

public
     
     
void drawTriangle( RenderingContext & rc,
  const Geometry::Vec3f & vertexA,
  const Geometry::Vec3f & vertexB,
  const Geometry::Vec3f & vertexC
)    

Draw a triangle in three-dimensional space. The triangle is given by three points. Positions are generated for the vertices only.

Defined in Rendering/Draw.h:108


function
drawVector

public
     
     
void drawVector( RenderingContext & rc,
  const Geometry::Vec3f & from,
  const Geometry::Vec3f & to
)    

Defined in Rendering/Draw.h:110


function
drawVector

public
     
     
void drawVector( RenderingContext & rc,
  const Geometry::Vec3f & from,
  const Geometry::Vec3f & to,
  const Util::Color4f & color
)    

Defined in Rendering/Draw.h:111


function
drawVector

public
     
     
void drawVector( RenderingContext & rc,
  const Geometry::Vec3f & from,
  const Geometry::Vec3f & to,
  const Util::Color4f & color1,
  const Util::Color4f & color2
)    

Defined in Rendering/Draw.h:112


function
enable2DMode

public
     
     
void enable2DMode( RenderingContext & rc )

Set the projection and modelview matrices to enable drawing in screen space.

Note: The state before the call is saved. Call disable2DMode() to restore it.

Defined in Rendering/Draw.h:119


function
enable2DMode

public
     
     
void enable2DMode( RenderingContext & rc,
  const Geometry::Rect_i & screenRect
)    

Defined in Rendering/Draw.h:120


function
disable2DMode

public
     
     
void disable2DMode( RenderingContext & rc )

Reset the projection and modelview matrices to the state before the last call to enable2DMode() .

Defined in Rendering/Draw.h:123


function
enableInstanceBuffer

public
     
     
void enableInstanceBuffer( RenderingContext & rc,
  BufferObject & instanceBuffer,
  int32_t location,
  uint32_t elements
)    

Defined in Rendering/Draw.h:125


function
disableInstanceBuffer

public
     
     
void disableInstanceBuffer( RenderingContext & rc,
  BufferObject & instanceBuffer,
  int32_t location,
  uint32_t elements
)    

Defined in Rendering/Draw.h:126


function
drawInstances

public
     
     
void drawInstances( RenderingContext & rc,
  Mesh * m,
  uint32_t firstElement,
  uint32_t elementCount,
  uint32_t instanceCount
)    

Defined in Rendering/Draw.h:127


function
drawCamera

public
     
     
void drawCamera( RenderingContext & rc,
  const Util::Color4f & color
)    

Draw a symbolized camera using the given rendering context, and color.

Defined in Rendering/DrawCompound.h:37


function
drawCoordSys

public
     
     
void drawCoordSys( RenderingContext & rc,
  float scale
)    

Defined in Rendering/DrawCompound.h:39


function
drawFrustum

public
     
     
void drawFrustum( RenderingContext & rc,
  const Geometry::Frustum & frustum,
  const Util::Color4f & color,
  float lineWidth
)    

Draw the given frustum as lines using the given rendering context, color, and line width.

Defined in Rendering/DrawCompound.h:42


function
drawGrid

public
     
     
void drawGrid( RenderingContext & rc,
  float scale
)    

Defined in Rendering/DrawCompound.h:44