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//
6
7namespace gfx
8{
9struct dd_raii
10{
11 dd_raii(uint16_t _viewId, bool _depthTestLess = true, bgfx::Encoder* _encoder = NULL);
12
13 ~dd_raii();
14
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).
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
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
bgfx::ViewId view_id
Definition graphics.h:20
DebugDrawEncoder encoder
Definition debugdraw.h:15
dd_raii(uint16_t _viewId, bool _depthTestLess=true, bgfx::Encoder *_encoder=NULL)
Definition debugdraw.cpp:8
view_id view
Definition debugdraw.h:16