Unravel Engine C++ Reference
Loading...
Searching...
No Matches
debugdraw.h File Reference
#include <bgfx/bgfx.h>
#include <bx/allocator.h>
#include <bx/bounds.h>

Go to the source code of this file.

Classes

struct  Axis
 
struct  DdVertex
 
struct  SpriteHandle
 
struct  GeometryHandle
 
struct  DebugDrawEncoder
 
class  DebugDrawEncoderScopePush
 

Functions

bool isValid (SpriteHandle _handle)
 
bool isValid (GeometryHandle _handle)
 
void ddInit (bx::AllocatorI *_allocator=NULL)
 
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=0, const void *_indices=NULL, bool _index32=false)
 
void ddDestroy (GeometryHandle _handle)
 

Function Documentation

◆ ddCreateGeometry()

GeometryHandle ddCreateGeometry ( uint32_t _numVertices,
const DdVertex * _vertices,
uint32_t _numIndices = 0,
const void * _indices = NULL,
bool _index32 = false )

Definition at line 2308 of file debugdraw.cpp.

◆ ddCreateSprite()

SpriteHandle ddCreateSprite ( uint16_t _width,
uint16_t _height,
const void * _data )

Definition at line 2298 of file debugdraw.cpp.

◆ ddDestroy() [1/2]

void ddDestroy ( GeometryHandle _handle)

Definition at line 2317 of file debugdraw.cpp.

◆ ddDestroy() [2/2]

void ddDestroy ( SpriteHandle _handle)

Definition at line 2303 of file debugdraw.cpp.

◆ ddInit()

void ddInit ( bx::AllocatorI * _allocator = NULL)

Definition at line 2282 of file debugdraw.cpp.

◆ ddShutdown()

void ddShutdown ( )

Definition at line 2289 of file debugdraw.cpp.

◆ isValid() [1/2]

bool isValid ( GeometryHandle _handle)
inline

Definition at line 43 of file debugdraw.h.

◆ isValid() [2/2]

bool isValid ( SpriteHandle _handle)
inline

Definition at line 34 of file debugdraw.h.