Unravel Engine C++ 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] | |
Definition at line 71 of file debugdraw.h.
DebugDrawEncoder::DebugDrawEncoder | ( | ) |
Definition at line 2324 of file debugdraw.cpp.
DebugDrawEncoder::~DebugDrawEncoder | ( | ) |
Definition at line 2329 of file debugdraw.cpp.
void DebugDrawEncoder::begin | ( | uint16_t | _viewId, |
bool | _depthTestLess = true, | ||
bgfx::Encoder * | _encoder = NULL ) |
Definition at line 2334 of file debugdraw.cpp.
DebugDrawEncoder::BX_ALIGN_DECL_CACHE_LINE | ( | uint8_t | ) |
void DebugDrawEncoder::close | ( | ) |
Definition at line 2439 of file debugdraw.cpp.
void DebugDrawEncoder::draw | ( | const bx::Aabb & | _aabb | ) |
Definition at line 2444 of file debugdraw.cpp.
void DebugDrawEncoder::draw | ( | const bx::Capsule & | _capsule | ) |
Definition at line 2454 of file debugdraw.cpp.
void DebugDrawEncoder::draw | ( | const bx::Cone & | _cone | ) |
Definition at line 2479 of file debugdraw.cpp.
void DebugDrawEncoder::draw | ( | const bx::Cylinder & | _cylinder | ) |
Definition at line 2449 of file debugdraw.cpp.
void DebugDrawEncoder::draw | ( | const bx::Disk & | _disk | ) |
Definition at line 2459 of file debugdraw.cpp.
void DebugDrawEncoder::draw | ( | const bx::Obb & | _obb | ) |
Definition at line 2464 of file debugdraw.cpp.
void DebugDrawEncoder::draw | ( | const bx::Sphere & | _sphere | ) |
Definition at line 2469 of file debugdraw.cpp.
void DebugDrawEncoder::draw | ( | const bx::Triangle & | _triangle | ) |
Definition at line 2474 of file debugdraw.cpp.
void DebugDrawEncoder::draw | ( | GeometryHandle | _handle | ) |
Definition at line 2484 of file debugdraw.cpp.
void DebugDrawEncoder::drawArc | ( | Axis::Enum | _axis, |
float | _x, | ||
float | _y, | ||
float | _z, | ||
float | _radius, | ||
float | _degrees ) |
Definition at line 2510 of file debugdraw.cpp.
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.
void DebugDrawEncoder::drawCapsule | ( | const bx::Vec3 & | _from, |
const bx::Vec3 & | _to, | ||
float | _radius ) |
Definition at line 2553 of file debugdraw.cpp.
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.
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.
void DebugDrawEncoder::drawCone | ( | const bx::Vec3 & | _from, |
const bx::Vec3 & | _to, | ||
float | _radius ) |
Definition at line 2543 of file debugdraw.cpp.
void DebugDrawEncoder::drawCylinder | ( | const bx::Vec3 & | _from, |
const bx::Vec3 & | _to, | ||
float | _radius ) |
Definition at line 2548 of file debugdraw.cpp.
void DebugDrawEncoder::drawFrustum | ( | const void * | _viewProj | ) |
Definition at line 2505 of file debugdraw.cpp.
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.
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.
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.
void DebugDrawEncoder::drawOrb | ( | float | _x, |
float | _y, | ||
float | _z, | ||
float | _radius, | ||
Axis::Enum | _highlight = Axis::Count ) |
Definition at line 2573 of file debugdraw.cpp.
void DebugDrawEncoder::drawQuad | ( | bgfx::TextureHandle | _handle, |
const bx::Vec3 & | _normal, | ||
const bx::Vec3 & | _center, | ||
float | _size ) |
Definition at line 2535 of file debugdraw.cpp.
void DebugDrawEncoder::drawQuad | ( | const bx::Vec3 & | _normal, |
const bx::Vec3 & | _center, | ||
float | _size ) |
Definition at line 2525 of file debugdraw.cpp.
void DebugDrawEncoder::drawQuad | ( | SpriteHandle | _handle, |
const bx::Vec3 & | _normal, | ||
const bx::Vec3 & | _center, | ||
float | _size ) |
Definition at line 2530 of file debugdraw.cpp.
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.
void DebugDrawEncoder::end | ( | ) |
Definition at line 2339 of file debugdraw.cpp.
void DebugDrawEncoder::lineTo | ( | const bx::Vec3 & | _pos | ) |
Definition at line 2434 of file debugdraw.cpp.
void DebugDrawEncoder::lineTo | ( | float | _x, |
float | _y, | ||
float | _z = 0.0f ) |
Definition at line 2429 of file debugdraw.cpp.
void DebugDrawEncoder::moveTo | ( | const bx::Vec3 & | _pos | ) |
Definition at line 2424 of file debugdraw.cpp.
void DebugDrawEncoder::moveTo | ( | float | _x, |
float | _y, | ||
float | _z = 0.0f ) |
Definition at line 2419 of file debugdraw.cpp.
void DebugDrawEncoder::pop | ( | ) |
Definition at line 2349 of file debugdraw.cpp.
void DebugDrawEncoder::popProgram | ( | ) |
Definition at line 2414 of file debugdraw.cpp.
void DebugDrawEncoder::popTransform | ( | ) |
Definition at line 2404 of file debugdraw.cpp.
void DebugDrawEncoder::push | ( | ) |
Definition at line 2344 of file debugdraw.cpp.
void DebugDrawEncoder::pushProgram | ( | bgfx::ProgramHandle | _handle | ) |
Definition at line 2409 of file debugdraw.cpp.
void DebugDrawEncoder::pushTransform | ( | const void * | _mtx | ) |
Definition at line 2399 of file debugdraw.cpp.
void DebugDrawEncoder::setColor | ( | uint32_t | _abgr | ) |
Definition at line 2364 of file debugdraw.cpp.
void DebugDrawEncoder::setDepthTestLess | ( | bool | _depthTestLess | ) |
Definition at line 2354 of file debugdraw.cpp.
void DebugDrawEncoder::setLod | ( | uint8_t | _lod | ) |
Definition at line 2369 of file debugdraw.cpp.
void DebugDrawEncoder::setSpin | ( | float | _spin | ) |
Definition at line 2384 of file debugdraw.cpp.
void DebugDrawEncoder::setState | ( | bool | _depthTest, |
bool | _depthWrite, | ||
bool | _clockwise, | ||
bool | _alphaWrite = false, | ||
bool | _alphaBlend = true ) |
Definition at line 2359 of file debugdraw.cpp.
void DebugDrawEncoder::setStipple | ( | bool | _stipple, |
float | _scale = 1.0f, | ||
float | _offset = 0.0f ) |
Definition at line 2379 of file debugdraw.cpp.
void DebugDrawEncoder::setTransform | ( | const void * | _mtx | ) |
Definition at line 2389 of file debugdraw.cpp.
void DebugDrawEncoder::setTranslate | ( | float | _x, |
float | _y, | ||
float | _z ) |
Definition at line 2394 of file debugdraw.cpp.
void DebugDrawEncoder::setWireframe | ( | bool | _wireframe | ) |
Definition at line 2374 of file debugdraw.cpp.