Unravel Engine C++ Reference
Loading...
Searching...
No Matches
debugdraw.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
graphics.h
"
4
//
5
#include "
utils/debugdraw/debugdraw.h
"
6
7
namespace
gfx
8
{
9
struct
dd_raii
10
{
11
dd_raii
(uint16_t _viewId,
bool
_depthTestLess =
true
, bgfx::Encoder* _encoder = NULL);
12
13
~dd_raii
();
14
15
DebugDrawEncoder
encoder
;
16
view_id
view
{};
17
};
18
19
// Draws a billboard icon.
20
// - dd: the debug draw encoder.
21
// - iconTexture: the BGFX texture handle for the icon.
22
// - iconCenter: the world-space position where the icon should appear.
23
// - cameraPos: the world-space position of the camera.
24
// - halfSize: half the size of the quad (icon).
25
void
draw_billboard
(
DebugDrawEncoder
& dd,
26
bgfx::TextureHandle icon_texture,
27
const
bx::Vec3& icon_center,
28
const
bx::Vec3& camera_pos,
29
const
bx::Vec3& camera_look_dir,
30
float
half_size);
31
}
// namespace gfx
graphics.h
gfx
Definition
debugdraw.cpp:7
gfx::draw_billboard
void draw_billboard(DebugDrawEncoder &dd, bgfx::TextureHandle icon_texture, const bx::Vec3 &icon_center, const bx::Vec3 &camera_pos, const bx::Vec3 &camera_look_dir, float half_size)
Definition
debugdraw.cpp:25
gfx::view_id
bgfx::ViewId view_id
Definition
graphics.h:20
DebugDrawEncoder
Definition
debugdraw.h:72
gfx::dd_raii
Definition
debugdraw.h:10
gfx::dd_raii::encoder
DebugDrawEncoder encoder
Definition
debugdraw.h:15
gfx::dd_raii::dd_raii
dd_raii(uint16_t _viewId, bool _depthTestLess=true, bgfx::Encoder *_encoder=NULL)
Definition
debugdraw.cpp:8
gfx::dd_raii::view
view_id view
Definition
debugdraw.h:16
gfx::dd_raii::~dd_raii
~dd_raii()
Definition
debugdraw.cpp:20
debugdraw.h
UnravelEngine
UnravelEngine
engine
core
graphics
debugdraw.h
Generated by
1.12.0