Inheritance Graph
graph BT
Draw
click Draw "classGUI_1_1Draw"
Description
Public Static Attributes
Public Static Functions
|
|
|
|
void |
beginDrawing( Rendering::RenderingContext & rc, const Geometry::Vec2i & screenSize) |
|
|
Rendering::RenderingContext & |
getRenderingContext() |
|
|
void |
endDrawing() |
|
|
void |
flush() |
|
|
void |
moveCursor(const Geometry::Vec2i & pos) |
|
|
void |
setScissor(const Geometry::Rect_i & rect) |
|
|
void |
resetScissor() |
|
|
void |
clearScreen(const Util::Color4ub & color) |
|
|
Geometry::Rect_i |
queryViewport() |
|
|
void |
drawText(const std::string & text, const Geometry::Vec2 pos, AbstractFont * font, const Util::Color4ub & c) |
|
|
void |
drawText(const std::string & text, const Geometry::Rect & r, AbstractFont * font, const Util::Color4ub & c, unsigned int style) |
|
|
float |
getTextWidth(const std::string & text, AbstractFont * font) |
|
|
Geometry::Vec2 |
getTextSize(const std::string & text, AbstractFont * font) |
|
|
void |
drawCross(const Geometry::Rect & r, const Util::Color4ub & c, float lineWidth) |
|
|
void |
draw3DRect(const Geometry::Rect & r, bool down, const Util::Color4ub & bgColor1, const Util::Color4ub & bgColor2) |
|
|
void |
drawFilledRect(const Geometry::Rect & r, const Util::Color4ub & bgColor, bool blend) |
|
|
void |
drawFilledRect(const Geometry::Rect & r, const Util::Color4ub & bgColorTL, const Util::Color4ub & bgColorBL, const Util::Color4ub & bgColorBR, const Util::Color4ub & bgColorTR, bool blend) |
|
|
void |
drawLineRect(const Geometry::Rect & r, const Util::Color4ub & lineColor, bool blend) |
|
|
void |
drawTab(const Geometry::Rect & r, const Util::Color4ub & lineColor, const Util::Color4ub & bgColor1, const Util::Color4ub & bgColor2) |
|
|
void |
dropShadow(const Geometry::Rect & r) |
|
|
void |
dropShadow(const Geometry::Rect & r, const Geometry::Rect & r2, const Util::Color4ub c) |
|
|
void |
drawTexturedRect(const Geometry::Rect_i & screenRect, const Geometry::Rect & uvRect, const Util::Color4ub & c, bool blend) |
|
|
void |
drawTexturedTriangles(const std::vector< float > & posAndUV, const Util::Color4ub & c, bool blend) posAndUV: { x0,y0,u0,v0, x1,y1,u1,v1, x2,y2,u2,v2, … } |
|
|
void |
drawLine(const std::vector< float > & vertices, const std::vector< uint32_t > & colors, const float lineWidth, bool lineSmooth) vertices: { x0,y0, x1,y1, x2,y2, … }color {c0, c1, c2, …} |
|
|
void |
drawLines(const std::vector< float > & vertices, const std::vector< uint32_t > & colors, const float lineWidth) vertices: { x0a,y0a, x0b,y0b, x1a,y1a, x1a,x1b, … }color {c0a, c0b, c1a, c1b, c2a, c2b …} |
|
|
void |
drawTriangleFan(const std::vector< float > & vertices, const std::vector< uint32_t > & colors) vertices: { x0,y0, x1,y1, x2,y2, … }color {c0, c1, c2, …} |
|
|
void |
enableTexture( ImageData * texture) |
|
|
void |
disableTexture() |
Documentation
variable
GUI::Draw::TEXT_ALIGN_LEFT
Defined in GUI/Base/Draw.h:47
variable
GUI::Draw::TEXT_ALIGN_RIGHT
Defined in GUI/Base/Draw.h:48
variable
GUI::Draw::TEXT_ALIGN_CENTER
Defined in GUI/Base/Draw.h:49
variable
GUI::Draw::TEXT_ALIGN_MIDDLE
Defined in GUI/Base/Draw.h:50
function
GUI::Draw::beginDrawing
Defined in GUI/Base/Draw.h:33
function
GUI::Draw::getRenderingContext
Defined in GUI/Base/Draw.h:34
function
GUI::Draw::endDrawing
Defined in GUI/Base/Draw.h:38
function
GUI::Draw::flush
Defined in GUI/Base/Draw.h:39
function
GUI::Draw::moveCursor
Defined in GUI/Base/Draw.h:40
function
GUI::Draw::setScissor
Defined in GUI/Base/Draw.h:41
function
GUI::Draw::resetScissor
Defined in GUI/Base/Draw.h:42
function
GUI::Draw::clearScreen
Defined in GUI/Base/Draw.h:43
function
GUI::Draw::queryViewport
Defined in GUI/Base/Draw.h:44
function
GUI::Draw::drawText
Defined in GUI/Base/Draw.h:52
function
GUI::Draw::drawText
Defined in GUI/Base/Draw.h:55
function
GUI::Draw::getTextWidth
Defined in GUI/Base/Draw.h:58
function
GUI::Draw::getTextSize
Defined in GUI/Base/Draw.h:59
function
GUI::Draw::drawCross
Defined in GUI/Base/Draw.h:63
function
GUI::Draw::draw3DRect
Defined in GUI/Base/Draw.h:65
function
GUI::Draw::drawFilledRect
Defined in GUI/Base/Draw.h:67
function
GUI::Draw::drawFilledRect
Defined in GUI/Base/Draw.h:68
function
GUI::Draw::drawLineRect
Defined in GUI/Base/Draw.h:70
function
GUI::Draw::drawTab
Defined in GUI/Base/Draw.h:72
function
GUI::Draw::dropShadow
Defined in GUI/Base/Draw.h:73
function
GUI::Draw::dropShadow
Defined in GUI/Base/Draw.h:74
function
GUI::Draw::drawTexturedRect
Defined in GUI/Base/Draw.h:76
function
GUI::Draw::drawTexturedTriangles
posAndUV:
{ x0,y0,u0,v0, x1,y1,u1,v1, x2,y2,u2,v2, … }
Defined in GUI/Base/Draw.h:79
function
GUI::Draw::drawLine
|
|
|
|
|
|
void drawLine( |
const std::vector< float > & |
vertices, |
|
const std::vector< uint32_t > & |
colors, |
|
const float |
lineWidth, |
|
bool |
lineSmooth |
) |
|
|
vertices:
{ x0,y0, x1,y1, x2,y2, … }color
{c0, c1, c2, …}
Defined in GUI/Base/Draw.h:82
function
GUI::Draw::drawLines
|
|
|
|
|
|
void drawLines( |
const std::vector< float > & |
vertices, |
|
const std::vector< uint32_t > & |
colors, |
|
const float |
lineWidth |
) |
|
|
vertices:
{ x0a,y0a, x0b,y0b, x1a,y1a, x1a,x1b, … }color
{c0a, c0b, c1a, c1b, c2a, c2b …}
Defined in GUI/Base/Draw.h:85
function
GUI::Draw::drawTriangleFan
|
|
|
|
|
|
void drawTriangleFan( |
const std::vector< float > & |
vertices, |
|
const std::vector< uint32_t > & |
colors |
) |
|
|
vertices:
{ x0,y0, x1,y1, x2,y2, … }color
{c0, c1, c2, …}
Defined in GUI/Base/Draw.h:88
function
GUI::Draw::enableTexture
Defined in GUI/Base/Draw.h:91
function
GUI::Draw::disableTexture
Defined in GUI/Base/Draw.h:92