#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 <bx/uint32_t.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.
|
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) |
|
◆ DEBUG_DRAW_CONFIG_MAX_GEOMETRY
#define DEBUG_DRAW_CONFIG_MAX_GEOMETRY 256 |
◆ DEBUG_DRAW_ENCODER
#define DEBUG_DRAW_ENCODER |
( |
| _func | ) |
|
◆ SPRITE_TEXTURE_SIZE
#define SPRITE_TEXTURE_SIZE 1024 |
◆ Geometry
◆ Sprite
◆ ddCreateGeometry()
GeometryHandle ddCreateGeometry |
( |
uint32_t | _numVertices, |
|
|
const DdVertex * | _vertices, |
|
|
uint32_t | _numIndices, |
|
|
const void * | _indices, |
|
|
bool | _index32 ) |
◆ ddCreateSprite()
SpriteHandle ddCreateSprite |
( |
uint16_t | _width, |
|
|
uint16_t | _height, |
|
|
const void * | _data ) |
◆ ddDestroy() [1/2]
◆ ddDestroy() [2/2]
◆ ddInit()
void ddInit |
( |
bx::AllocatorI * | _allocator | ) |
|
◆ ddShutdown()
◆ genSphere()
uint32_t genSphere |
( |
uint8_t | _subdiv0, |
|
|
void * | _pos0 = NULL, |
|
|
uint16_t | _posStride0 = 0, |
|
|
void * | _normals0 = NULL, |
|
|
uint16_t | _normalStride0 = 0 ) |
◆ getPoint()
bx::Vec3 getPoint |
( |
Axis::Enum | _axis, |
|
|
float | _x, |
|
|
float | _y ) |