diff options
Diffstat (limited to '3rdparty/bgfx/examples/common/debugdraw/debugdraw.h')
-rw-r--r-- | 3rdparty/bgfx/examples/common/debugdraw/debugdraw.h | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/3rdparty/bgfx/examples/common/debugdraw/debugdraw.h b/3rdparty/bgfx/examples/common/debugdraw/debugdraw.h index 2535e5b7aff..222c05fd64d 100644 --- a/3rdparty/bgfx/examples/common/debugdraw/debugdraw.h +++ b/3rdparty/bgfx/examples/common/debugdraw/debugdraw.h @@ -1,6 +1,6 @@ /* - * Copyright 2011-2016 Branimir Karadzic. All rights reserved. - * License: http://www.opensource.org/licenses/BSD-2-Clause + * Copyright 2011-2017 Branimir Karadzic. All rights reserved. + * License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause */ #ifndef DEBUGDRAW_H_HEADER_GUARD @@ -21,6 +21,10 @@ struct Axis }; }; +struct SpriteHandle { uint16_t idx; }; + +inline bool isValid(SpriteHandle _handle) { return _handle.idx != UINT16_MAX; } + /// void ddInit(bool _depthTestLess = true, bx::AllocatorI* _allocator = NULL); @@ -28,6 +32,12 @@ void ddInit(bool _depthTestLess = true, bx::AllocatorI* _allocator = NULL); void ddShutdown(); /// +SpriteHandle ddCreateSprite(uint16_t _width, uint16_t _height, const void* _data); + +/// +void ddDestroy(SpriteHandle _handle); + +/// void ddBegin(uint8_t _viewId); /// @@ -55,6 +65,9 @@ void ddSetWireframe(bool _wireframe); void ddSetStipple(bool _stipple, float _scale = 1.0f, float _offset = 0.0f); /// +void ddSetSpin(float _spin); + +/// void ddSetTransform(const void* _mtx); /// @@ -103,6 +116,15 @@ void ddDrawCircle(const void* _normal, const void* _center, float _radius, float void ddDrawCircle(Axis::Enum _axis, float _x, float _y, float _z, float _radius, float _weight = 0.0f); /// +void ddDrawQuad(const float* _normal, const float* _center, float _size); + +/// +void ddDrawQuad(SpriteHandle _handle, const float* _normal, const float* _center, float _size); + +/// +void ddDrawQuad(bgfx::TextureHandle _handle, const float* _normal, const float* _center, float _size); + +/// void ddDrawCone(const void* _from, const void* _to, float _radius); /// |