public

Inheritance Graph

graph BT
	Draw
	click Draw "classGUI_1_1Draw"

Description

Public Static Attributes

   
   
const unsigned int TEXT_ALIGN_LEFT
   
const unsigned int TEXT_ALIGN_RIGHT
   
const unsigned int TEXT_ALIGN_CENTER
   
const unsigned int TEXT_ALIGN_MIDDLE

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

public static
 
 
const unsigned int TEXT_ALIGN_LEFT

Defined in GUI/Base/Draw.h:47


variable
GUI::Draw::TEXT_ALIGN_RIGHT

public static
 
 
const unsigned int TEXT_ALIGN_RIGHT

Defined in GUI/Base/Draw.h:48


variable
GUI::Draw::TEXT_ALIGN_CENTER

public static
 
 
const unsigned int TEXT_ALIGN_CENTER

Defined in GUI/Base/Draw.h:49


variable
GUI::Draw::TEXT_ALIGN_MIDDLE

public static
 
 
const unsigned int TEXT_ALIGN_MIDDLE

Defined in GUI/Base/Draw.h:50


function
GUI::Draw::beginDrawing

public static
     
     
void beginDrawing( Rendering::RenderingContext & rc,
  const Geometry::Vec2i & screenSize
)    

Defined in GUI/Base/Draw.h:33


function
GUI::Draw::getRenderingContext

public static
   
   
Rendering::RenderingContext & getRenderingContext( )

Defined in GUI/Base/Draw.h:34


function
GUI::Draw::endDrawing

public static
   
   
void endDrawing( )

Defined in GUI/Base/Draw.h:38


function
GUI::Draw::flush

public static
   
   
void flush( )

Defined in GUI/Base/Draw.h:39


function
GUI::Draw::moveCursor

public static
     
     
void moveCursor( const Geometry::Vec2i & pos )

Defined in GUI/Base/Draw.h:40


function
GUI::Draw::setScissor

public static
     
     
void setScissor( const Geometry::Rect_i & rect )

Defined in GUI/Base/Draw.h:41


function
GUI::Draw::resetScissor

public static
   
   
void resetScissor( )

Defined in GUI/Base/Draw.h:42


function
GUI::Draw::clearScreen

public static
     
     
void clearScreen( const Util::Color4ub & color )

Defined in GUI/Base/Draw.h:43


function
GUI::Draw::queryViewport

public static
   
   
Geometry::Rect_i queryViewport( )

Defined in GUI/Base/Draw.h:44


function
GUI::Draw::drawText

public static
     
     
void drawText( const std::string & text,
  const Geometry::Vec2 pos,
  AbstractFont * font,
  const Util::Color4ub & c
)    

Defined in GUI/Base/Draw.h:52


function
GUI::Draw::drawText

public static
     
     
void drawText( const std::string & text,
  const Geometry::Rect & r,
  AbstractFont * font,
  const Util::Color4ub & c,
  unsigned int style
)    

Defined in GUI/Base/Draw.h:55


function
GUI::Draw::getTextWidth

public static
     
     
float getTextWidth( const std::string & text,
  AbstractFont * font
)    

Defined in GUI/Base/Draw.h:58


function
GUI::Draw::getTextSize

public static
     
     
Geometry::Vec2 getTextSize( const std::string & text,
  AbstractFont * font
)    

Defined in GUI/Base/Draw.h:59


function
GUI::Draw::drawCross

public static
     
     
void drawCross( const Geometry::Rect & r,
  const Util::Color4ub & c,
  float lineWidth
)    

Defined in GUI/Base/Draw.h:63


function
GUI::Draw::draw3DRect

public static
     
     
void draw3DRect( const Geometry::Rect & r,
  bool down,
  const Util::Color4ub & bgColor1,
  const Util::Color4ub & bgColor2
)    

Defined in GUI/Base/Draw.h:65


function
GUI::Draw::drawFilledRect

public static
     
     
void drawFilledRect( const Geometry::Rect & r,
  const Util::Color4ub & bgColor,
  bool blend
)    

Defined in GUI/Base/Draw.h:67


function
GUI::Draw::drawFilledRect

public static
     
     
void drawFilledRect( const Geometry::Rect & r,
  const Util::Color4ub & bgColorTL,
  const Util::Color4ub & bgColorBL,
  const Util::Color4ub & bgColorBR,
  const Util::Color4ub & bgColorTR,
  bool blend
)    

Defined in GUI/Base/Draw.h:68


function
GUI::Draw::drawLineRect

public static
     
     
void drawLineRect( const Geometry::Rect & r,
  const Util::Color4ub & lineColor,
  bool blend
)    

Defined in GUI/Base/Draw.h:70


function
GUI::Draw::drawTab

public static
     
     
void drawTab( const Geometry::Rect & r,
  const Util::Color4ub & lineColor,
  const Util::Color4ub & bgColor1,
  const Util::Color4ub & bgColor2
)    

Defined in GUI/Base/Draw.h:72


function
GUI::Draw::dropShadow

public static
     
     
void dropShadow( const Geometry::Rect & r )

Defined in GUI/Base/Draw.h:73


function
GUI::Draw::dropShadow

public static
     
     
void dropShadow( const Geometry::Rect & r,
  const Geometry::Rect & r2,
  const Util::Color4ub c
)    

Defined in GUI/Base/Draw.h:74


function
GUI::Draw::drawTexturedRect

public static
     
     
void drawTexturedRect( const Geometry::Rect_i & screenRect,
  const Geometry::Rect & uvRect,
  const Util::Color4ub & c,
  bool blend
)    

Defined in GUI/Base/Draw.h:76


function
GUI::Draw::drawTexturedTriangles

public static
     
     
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, … }

Defined in GUI/Base/Draw.h:79


function
GUI::Draw::drawLine

public static
     
     
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

public static
     
     
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

public static
     
     
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

public static
     
     
void enableTexture( ImageData * texture )

Defined in GUI/Base/Draw.h:91


function
GUI::Draw::disableTexture

public static
   
   
void disableTexture( )

Defined in GUI/Base/Draw.h:92