|
Unravel Engine C++ Reference
|
#include "debugdraw.h"#include "../bgfx_utils.h"#include "../packrect.h"#include <bgfx/bgfx.h>#include <bgfx/embedded_shader.h>#include <bx/debug.h>#include <bx/handlealloc.h>#include <bx/math.h>#include <bx/mutex.h>#include <bx/sort.h>#include "fs_debugdraw_fill.bin.h"#include "fs_debugdraw_fill_lit.bin.h"#include "fs_debugdraw_fill_texture.bin.h"#include "fs_debugdraw_lines.bin.h"#include "fs_debugdraw_lines_stipple.bin.h"#include "vs_debugdraw_fill.bin.h"#include "vs_debugdraw_fill_lit.bin.h"#include "vs_debugdraw_fill_lit_mesh.bin.h"#include "vs_debugdraw_fill_mesh.bin.h"#include "vs_debugdraw_fill_texture.bin.h"#include "vs_debugdraw_lines.bin.h"#include "vs_debugdraw_lines_stipple.bin.h"Go to the source code of this file.
Classes | |
| struct | DebugVertex |
| struct | DebugUvVertex |
| struct | DebugShapeVertex |
| struct | DebugMeshVertex |
| struct | SpriteT< MaxHandlesT, TextureSizeT > |
| struct | GeometryT< MaxHandlesT > |
| struct | GeometryT< MaxHandlesT >::Geometry |
| struct | Attrib |
| struct | Program |
| struct | DebugMesh |
| struct | DebugDrawShared |
| struct | DebugDrawEncoderImpl |
| struct | DebugDrawEncoderImpl::State |
| struct | DebugDrawEncoderImpl::MatrixStack |
Macros | |
| #define | DEBUG_DRAW_CONFIG_MAX_GEOMETRY 256 |
| #define | SPRITE_TEXTURE_SIZE 1024 |
| #define | DEBUG_DRAW_ENCODER(_func) |
Typedefs | |
| typedef SpriteT< 256, SPRITE_TEXTURE_SIZE > | Sprite |
| typedef GeometryT< DEBUG_DRAW_CONFIG_MAX_GEOMETRY > | Geometry |
Functions | |
| static uint8_t | getCircleLod (uint8_t _lod) |
| static void | circle (float *_out, float _angle) |
| static void | squircle (float *_out, float _angle) |
| uint32_t | genSphere (uint8_t _subdiv0, void *_pos0=NULL, uint16_t _posStride0=0, void *_normals0=NULL, uint16_t _normalStride0=0) |
| bx::Vec3 | getPoint (Axis::Enum _axis, float _x, float _y) |
| void | ddInit (bx::AllocatorI *_allocator) |
| void | ddShutdown () |
| SpriteHandle | ddCreateSprite (uint16_t _width, uint16_t _height, const void *_data) |
| void | ddDestroy (SpriteHandle _handle) |
| GeometryHandle | ddCreateGeometry (uint32_t _numVertices, const DdVertex *_vertices, uint32_t _numIndices, const void *_indices, bool _index32) |
| void | ddDestroy (GeometryHandle _handle) |
Variables | |
| static DebugShapeVertex | s_quadVertices [4] |
| static const uint16_t | s_quadIndices [6] |
| static DebugShapeVertex | s_cubeVertices [8] |
| static const uint16_t | s_cubeIndices [36] |
| static const uint8_t | s_circleLod [] |
| static const bgfx::EmbeddedShader | s_embeddedShaders [] |
| static DebugDrawShared | s_dds |
| static bool | s_initted = false |
| static DebugDrawEncoderImpl | s_dde |
| #define DEBUG_DRAW_CONFIG_MAX_GEOMETRY 256 |
Definition at line 19 of file debugdraw.cpp.
| #define DEBUG_DRAW_ENCODER | ( | _func | ) |
Definition at line 2321 of file debugdraw.cpp.
| #define SPRITE_TEXTURE_SIZE 1024 |
Definition at line 330 of file debugdraw.cpp.
Definition at line 541 of file debugdraw.cpp.
| typedef SpriteT<256, SPRITE_TEXTURE_SIZE> Sprite |
Definition at line 540 of file debugdraw.cpp.
|
static |
Definition at line 155 of file debugdraw.cpp.
| GeometryHandle ddCreateGeometry | ( | uint32_t | _numVertices, |
| const DdVertex * | _vertices, | ||
| uint32_t | _numIndices, | ||
| const void * | _indices, | ||
| bool | _index32 ) |
Definition at line 2307 of file debugdraw.cpp.
| SpriteHandle ddCreateSprite | ( | uint16_t | _width, |
| uint16_t | _height, | ||
| const void * | _data ) |
Definition at line 2297 of file debugdraw.cpp.
| void ddDestroy | ( | GeometryHandle | _handle | ) |
Definition at line 2316 of file debugdraw.cpp.
| void ddDestroy | ( | SpriteHandle | _handle | ) |
Definition at line 2302 of file debugdraw.cpp.
| void ddInit | ( | bx::AllocatorI * | _allocator | ) |
Definition at line 2281 of file debugdraw.cpp.
| void ddShutdown | ( | ) |
Definition at line 2288 of file debugdraw.cpp.
| uint32_t genSphere | ( | uint8_t | _subdiv0, |
| void * | _pos0 = NULL, | ||
| uint16_t | _posStride0 = 0, | ||
| void * | _normals0 = NULL, | ||
| uint16_t | _normalStride0 = 0 ) |
Definition at line 171 of file debugdraw.cpp.
|
static |
Definition at line 149 of file debugdraw.cpp.
| bx::Vec3 getPoint | ( | Axis::Enum | _axis, |
| float | _x, | ||
| float | _y ) |
Definition at line 287 of file debugdraw.cpp.
|
static |
Definition at line 163 of file debugdraw.cpp.
|
static |
Definition at line 141 of file debugdraw.cpp.
|
static |
Definition at line 131 of file debugdraw.cpp.
|
static |
Definition at line 120 of file debugdraw.cpp.
|
static |
Definition at line 2278 of file debugdraw.cpp.
|
static |
Definition at line 974 of file debugdraw.cpp.
|
static |
Definition at line 315 of file debugdraw.cpp.
|
static |
Definition at line 2277 of file debugdraw.cpp.
|
static |
Definition at line 111 of file debugdraw.cpp.
|
static |
Definition at line 103 of file debugdraw.cpp.