Unravel Engine C++ Reference
Loading...
Searching...
No Matches
DebugDrawEncoder Struct Reference

#include <debugdraw.h>

Public Member Functions

 DebugDrawEncoder ()
 
 ~DebugDrawEncoder ()
 
void begin (uint16_t _viewId, bool _depthTestLess=true, bgfx::Encoder *_encoder=NULL)
 
void end ()
 
void push ()
 
void pop ()
 
void setDepthTestLess (bool _depthTestLess)
 
void setState (bool _depthTest, bool _depthWrite, bool _clockwise, bool _alphaWrite=false, bool _alphaBlend=true)
 
void setColor (uint32_t _abgr)
 
void setLod (uint8_t _lod)
 
void setWireframe (bool _wireframe)
 
void setStipple (bool _stipple, float _scale=1.0f, float _offset=0.0f)
 
void setSpin (float _spin)
 
void setTransform (const void *_mtx)
 
void setTranslate (float _x, float _y, float _z)
 
void pushTransform (const void *_mtx)
 
void popTransform ()
 
void pushProgram (bgfx::ProgramHandle _handle)
 
void popProgram ()
 
void moveTo (float _x, float _y, float _z=0.0f)
 
void moveTo (const bx::Vec3 &_pos)
 
void lineTo (float _x, float _y, float _z=0.0f)
 
void lineTo (const bx::Vec3 &_pos)
 
void close ()
 
void draw (const bx::Aabb &_aabb)
 
void draw (const bx::Cylinder &_cylinder)
 
void draw (const bx::Capsule &_capsule)
 
void draw (const bx::Disk &_disk)
 
void draw (const bx::Obb &_obb)
 
void draw (const bx::Sphere &_sphere)
 
void draw (const bx::Triangle &_triangle)
 
void draw (const bx::Cone &_cone)
 
void draw (GeometryHandle _handle)
 
void drawLineList (uint32_t _numVertices, const DdVertex *_vertices, uint32_t _numIndices=0, const uint16_t *_indices=NULL)
 
void drawTriList (uint32_t _numVertices, const DdVertex *_vertices, uint32_t _numIndices=0, const uint16_t *_indices=NULL)
 
void drawFrustum (const void *_viewProj)
 
void drawArc (Axis::Enum _axis, float _x, float _y, float _z, float _radius, float _degrees)
 
void drawCircle (const bx::Vec3 &_normal, const bx::Vec3 &_center, float _radius, float _weight=0.0f)
 
void drawCircle (Axis::Enum _axis, float _x, float _y, float _z, float _radius, float _weight=0.0f)
 
void drawQuad (const bx::Vec3 &_normal, const bx::Vec3 &_center, float _size)
 
void drawQuad (SpriteHandle _handle, const bx::Vec3 &_normal, const bx::Vec3 &_center, float _size)
 
void drawQuad (bgfx::TextureHandle _handle, const bx::Vec3 &_normal, const bx::Vec3 &_center, float _size)
 
void drawCone (const bx::Vec3 &_from, const bx::Vec3 &_to, float _radius)
 
void drawCylinder (const bx::Vec3 &_from, const bx::Vec3 &_to, float _radius)
 
void drawCapsule (const bx::Vec3 &_from, const bx::Vec3 &_to, float _radius)
 
void drawAxis (float _x, float _y, float _z, float _len=1.0f, Axis::Enum _highlight=Axis::Count, float _thickness=0.0f)
 
void drawGrid (const bx::Vec3 &_normal, const bx::Vec3 &_center, uint32_t _size=20, float _step=1.0f)
 
void drawGrid (Axis::Enum _axis, const bx::Vec3 &_center, uint32_t _size=20, float _step=1.0f)
 
void drawOrb (float _x, float _y, float _z, float _radius, Axis::Enum _highlight=Axis::Count)
 
 BX_ALIGN_DECL_CACHE_LINE (uint8_t) m_internal[50<< 10]
 

Detailed Description

Definition at line 71 of file debugdraw.h.

Constructor & Destructor Documentation

◆ DebugDrawEncoder()

DebugDrawEncoder::DebugDrawEncoder ( )

Definition at line 2324 of file debugdraw.cpp.

◆ ~DebugDrawEncoder()

DebugDrawEncoder::~DebugDrawEncoder ( )

Definition at line 2329 of file debugdraw.cpp.

Member Function Documentation

◆ begin()

void DebugDrawEncoder::begin ( uint16_t _viewId,
bool _depthTestLess = true,
bgfx::Encoder * _encoder = NULL )

Definition at line 2334 of file debugdraw.cpp.

◆ BX_ALIGN_DECL_CACHE_LINE()

DebugDrawEncoder::BX_ALIGN_DECL_CACHE_LINE ( uint8_t )

◆ close()

void DebugDrawEncoder::close ( )

Definition at line 2439 of file debugdraw.cpp.

◆ draw() [1/9]

void DebugDrawEncoder::draw ( const bx::Aabb & _aabb)

Definition at line 2444 of file debugdraw.cpp.

◆ draw() [2/9]

void DebugDrawEncoder::draw ( const bx::Capsule & _capsule)

Definition at line 2454 of file debugdraw.cpp.

◆ draw() [3/9]

void DebugDrawEncoder::draw ( const bx::Cone & _cone)

Definition at line 2479 of file debugdraw.cpp.

◆ draw() [4/9]

void DebugDrawEncoder::draw ( const bx::Cylinder & _cylinder)

Definition at line 2449 of file debugdraw.cpp.

◆ draw() [5/9]

void DebugDrawEncoder::draw ( const bx::Disk & _disk)

Definition at line 2459 of file debugdraw.cpp.

◆ draw() [6/9]

void DebugDrawEncoder::draw ( const bx::Obb & _obb)

Definition at line 2464 of file debugdraw.cpp.

◆ draw() [7/9]

void DebugDrawEncoder::draw ( const bx::Sphere & _sphere)

Definition at line 2469 of file debugdraw.cpp.

◆ draw() [8/9]

void DebugDrawEncoder::draw ( const bx::Triangle & _triangle)

Definition at line 2474 of file debugdraw.cpp.

◆ draw() [9/9]

void DebugDrawEncoder::draw ( GeometryHandle _handle)

Definition at line 2484 of file debugdraw.cpp.

◆ drawArc()

void DebugDrawEncoder::drawArc ( Axis::Enum _axis,
float _x,
float _y,
float _z,
float _radius,
float _degrees )

Definition at line 2510 of file debugdraw.cpp.

◆ drawAxis()

void DebugDrawEncoder::drawAxis ( float _x,
float _y,
float _z,
float _len = 1.0f,
Axis::Enum _highlight = Axis::Count,
float _thickness = 0.0f )

Definition at line 2558 of file debugdraw.cpp.

◆ drawCapsule()

void DebugDrawEncoder::drawCapsule ( const bx::Vec3 & _from,
const bx::Vec3 & _to,
float _radius )

Definition at line 2553 of file debugdraw.cpp.

◆ drawCircle() [1/2]

void DebugDrawEncoder::drawCircle ( Axis::Enum _axis,
float _x,
float _y,
float _z,
float _radius,
float _weight = 0.0f )

Definition at line 2520 of file debugdraw.cpp.

◆ drawCircle() [2/2]

void DebugDrawEncoder::drawCircle ( const bx::Vec3 & _normal,
const bx::Vec3 & _center,
float _radius,
float _weight = 0.0f )

Definition at line 2515 of file debugdraw.cpp.

◆ drawCone()

void DebugDrawEncoder::drawCone ( const bx::Vec3 & _from,
const bx::Vec3 & _to,
float _radius )

Definition at line 2543 of file debugdraw.cpp.

◆ drawCylinder()

void DebugDrawEncoder::drawCylinder ( const bx::Vec3 & _from,
const bx::Vec3 & _to,
float _radius )

Definition at line 2548 of file debugdraw.cpp.

◆ drawFrustum()

void DebugDrawEncoder::drawFrustum ( const void * _viewProj)

Definition at line 2505 of file debugdraw.cpp.

◆ drawGrid() [1/2]

void DebugDrawEncoder::drawGrid ( Axis::Enum _axis,
const bx::Vec3 & _center,
uint32_t _size = 20,
float _step = 1.0f )

Definition at line 2568 of file debugdraw.cpp.

◆ drawGrid() [2/2]

void DebugDrawEncoder::drawGrid ( const bx::Vec3 & _normal,
const bx::Vec3 & _center,
uint32_t _size = 20,
float _step = 1.0f )

Definition at line 2563 of file debugdraw.cpp.

◆ drawLineList()

void DebugDrawEncoder::drawLineList ( uint32_t _numVertices,
const DdVertex * _vertices,
uint32_t _numIndices = 0,
const uint16_t * _indices = NULL )

Definition at line 2489 of file debugdraw.cpp.

◆ drawOrb()

void DebugDrawEncoder::drawOrb ( float _x,
float _y,
float _z,
float _radius,
Axis::Enum _highlight = Axis::Count )

Definition at line 2573 of file debugdraw.cpp.

◆ drawQuad() [1/3]

void DebugDrawEncoder::drawQuad ( bgfx::TextureHandle _handle,
const bx::Vec3 & _normal,
const bx::Vec3 & _center,
float _size )

Definition at line 2535 of file debugdraw.cpp.

◆ drawQuad() [2/3]

void DebugDrawEncoder::drawQuad ( const bx::Vec3 & _normal,
const bx::Vec3 & _center,
float _size )

Definition at line 2525 of file debugdraw.cpp.

◆ drawQuad() [3/3]

void DebugDrawEncoder::drawQuad ( SpriteHandle _handle,
const bx::Vec3 & _normal,
const bx::Vec3 & _center,
float _size )

Definition at line 2530 of file debugdraw.cpp.

◆ drawTriList()

void DebugDrawEncoder::drawTriList ( uint32_t _numVertices,
const DdVertex * _vertices,
uint32_t _numIndices = 0,
const uint16_t * _indices = NULL )

Definition at line 2497 of file debugdraw.cpp.

◆ end()

void DebugDrawEncoder::end ( )

Definition at line 2339 of file debugdraw.cpp.

◆ lineTo() [1/2]

void DebugDrawEncoder::lineTo ( const bx::Vec3 & _pos)

Definition at line 2434 of file debugdraw.cpp.

◆ lineTo() [2/2]

void DebugDrawEncoder::lineTo ( float _x,
float _y,
float _z = 0.0f )

Definition at line 2429 of file debugdraw.cpp.

◆ moveTo() [1/2]

void DebugDrawEncoder::moveTo ( const bx::Vec3 & _pos)

Definition at line 2424 of file debugdraw.cpp.

◆ moveTo() [2/2]

void DebugDrawEncoder::moveTo ( float _x,
float _y,
float _z = 0.0f )

Definition at line 2419 of file debugdraw.cpp.

◆ pop()

void DebugDrawEncoder::pop ( )

Definition at line 2349 of file debugdraw.cpp.

◆ popProgram()

void DebugDrawEncoder::popProgram ( )

Definition at line 2414 of file debugdraw.cpp.

◆ popTransform()

void DebugDrawEncoder::popTransform ( )

Definition at line 2404 of file debugdraw.cpp.

◆ push()

void DebugDrawEncoder::push ( )

Definition at line 2344 of file debugdraw.cpp.

◆ pushProgram()

void DebugDrawEncoder::pushProgram ( bgfx::ProgramHandle _handle)

Definition at line 2409 of file debugdraw.cpp.

◆ pushTransform()

void DebugDrawEncoder::pushTransform ( const void * _mtx)

Definition at line 2399 of file debugdraw.cpp.

◆ setColor()

void DebugDrawEncoder::setColor ( uint32_t _abgr)

Definition at line 2364 of file debugdraw.cpp.

◆ setDepthTestLess()

void DebugDrawEncoder::setDepthTestLess ( bool _depthTestLess)

Definition at line 2354 of file debugdraw.cpp.

◆ setLod()

void DebugDrawEncoder::setLod ( uint8_t _lod)

Definition at line 2369 of file debugdraw.cpp.

◆ setSpin()

void DebugDrawEncoder::setSpin ( float _spin)

Definition at line 2384 of file debugdraw.cpp.

◆ setState()

void DebugDrawEncoder::setState ( bool _depthTest,
bool _depthWrite,
bool _clockwise,
bool _alphaWrite = false,
bool _alphaBlend = true )

Definition at line 2359 of file debugdraw.cpp.

◆ setStipple()

void DebugDrawEncoder::setStipple ( bool _stipple,
float _scale = 1.0f,
float _offset = 0.0f )

Definition at line 2379 of file debugdraw.cpp.

◆ setTransform()

void DebugDrawEncoder::setTransform ( const void * _mtx)

Definition at line 2389 of file debugdraw.cpp.

◆ setTranslate()

void DebugDrawEncoder::setTranslate ( float _x,
float _y,
float _z )

Definition at line 2394 of file debugdraw.cpp.

◆ setWireframe()

void DebugDrawEncoder::setWireframe ( bool _wireframe)

Definition at line 2374 of file debugdraw.cpp.


The documentation for this struct was generated from the following files: