OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
DbgPainter Class Reference

#include <dbgpainter.h>

Public Member Functions

 DbgPainter (Tempest::Painter &painter, const Tempest::Matrix4x4 &mvp, int w, int h)
 
void setBrush (const Tempest::Brush &brush)
 
void setPen (const Tempest::Pen &pen)
 
void drawText (int x, int y, std::string_view txt)
 
void drawText (const Tempest::Vec3 &a, std::string_view txt)
 
void drawLine (const Tempest::Vec3 &a, const Tempest::Vec3 &b)
 
void drawPoint ()
 

Public Attributes

Tempest::Painter & painter
 
const Tempest::Matrix4x4 mvp
 
const int w
 
const int h
 

Detailed Description

Definition at line 6 of file dbgpainter.h.

Constructor & Destructor Documentation

◆ DbgPainter()

DbgPainter::DbgPainter ( Tempest::Painter &  painter,
const Tempest::Matrix4x4 &  mvp,
int  w,
int  h 
)

Definition at line 8 of file dbgpainter.cpp.

Member Function Documentation

◆ drawLine()

void DbgPainter::drawLine ( const Tempest::Vec3 &  a,
const Tempest::Vec3 &  b 
)

Definition at line 36 of file dbgpainter.cpp.

◆ drawPoint()

void DbgPainter::drawPoint ( )

◆ drawText() [1/2]

void DbgPainter::drawText ( const Tempest::Vec3 &  a,
std::string_view  txt 
)

Definition at line 25 of file dbgpainter.cpp.

◆ drawText() [2/2]

void DbgPainter::drawText ( int  x,
int  y,
std::string_view  txt 
)

Definition at line 20 of file dbgpainter.cpp.

◆ setBrush()

void DbgPainter::setBrush ( const Tempest::Brush &  brush)

Definition at line 12 of file dbgpainter.cpp.

◆ setPen()

void DbgPainter::setPen ( const Tempest::Pen &  pen)

Definition at line 16 of file dbgpainter.cpp.

Member Data Documentation

◆ h

const int DbgPainter::h

Definition at line 21 of file dbgpainter.h.

◆ mvp

const Tempest::Matrix4x4 DbgPainter::mvp

Definition at line 19 of file dbgpainter.h.

◆ painter

Tempest::Painter& DbgPainter::painter

Definition at line 18 of file dbgpainter.h.

◆ w

const int DbgPainter::w

Definition at line 20 of file dbgpainter.h.


The documentation for this class was generated from the following files: