Namespace P64::Debug¶
Various helpers to draw either text or lines for debugging purposes.
Classes¶
Functions¶
-
void P64::Debug::init()¶
- void P64::Debug::drawAABB(
- const fm_vec3_t &p,
- const fm_vec3_t &halfExtend,
- color_t color = {0xFF, 0xFF, 0xFF, 0xFF}
- void P64::Debug::drawLine(
- const fm_vec3_t &a,
- const fm_vec3_t &b,
- color_t color = {0xFF, 0xFF, 0xFF, 0xFF}
-
color_t P64::Debug::paletteColor(uint32_t index)¶
- void P64::Debug::drawSphere(
- const fm_vec3_t ¢er,
- float radius,
- color_t color = {0xFF, 0xFF, 0xFF, 0xFF}
- void P64::Debug::drawOBB(
- const fm_vec3_t &p,
- const fm_vec3_t &halfExtend,
- const fm_quat_t &rot,
- color_t color = {0xFF, 0xFF, 0xFF, 0xFF}
- void P64::Debug::drawCapsule(
- const fm_vec3_t &p,
- float radius,
- float innerHalfHeight,
- const fm_quat_t &rot,
- color_t color = {0xFF, 0xFF, 0xFF, 0xFF}
- void P64::Debug::drawCylinder(
- const fm_vec3_t &p,
- float radius,
- float halfHeight,
- const fm_quat_t &rot,
- color_t color = {0xFF, 0xFF, 0xFF, 0xFF}
- void P64::Debug::drawCone(
- const fm_vec3_t &p,
- float radius,
- float halfHeight,
- const fm_quat_t &rot,
- color_t color = {0xFF, 0xFF, 0xFF, 0xFF}
- void P64::Debug::drawPyramid(
- const fm_vec3_t &p,
- float baseHalfWidthX,
- float baseHalfWidthZ,
- float halfHeight,
- const fm_quat_t &rot,
- color_t color = {0xFF, 0xFF, 0xFF, 0xFF}
-
void P64::Debug::draw(surface_t *fb)¶
-
void P64::Debug::printStart()¶
-
int P64::Debug::print(uint16_t x, uint16_t y, const char *str)¶
Prints a string (no formating) to a given position.
NOTE: this is only intended for debugging, not for in-game text!
- Parameters:
x – screen-position X
y – screen-position Y
str – string to print
- Returns:
new X position after the printed string
-
int P64::Debug::printf(uint16_t x, uint16_t y, const char *fmt, ...)¶
Prints a string (no formating) to a given position.
NOTE: this is only intended for debugging, not for in-game text!
- Parameters:
x – screen-position X
y – screen-position Y
fmt – printf-style format string
... – printf-style arguments
- Returns:
new X position after the printed string
-
inline void P64::Debug::setColor(color_t col = {0xFF, 0xFF, 0xFF, 0xFF})¶
-
inline void P64::Debug::setBgColor(color_t col = {0, 0, 0, 0})¶
-
void P64::Debug::destroy()¶
Enums¶
Variables¶
-
bool P64::Debug::isMonospace¶