Shirag 0.1.0
Loading...
Searching...
No Matches
Enumerations | Functions
Shirag::Drawing Namespace Reference

Enumerations

enum  ALIGN { LEFT = 0 , RIGHT , UP , DOWN }
 

Functions

void drawCircleWithOutline (Vector2 Center, float Radius, Color CircleColor, Color OutlineColor)
 
void drawLineAligned (Vector2 StartPos, Vector2 EndPos, float LineThick, Color LineColor, ALIGN Alignment)
 
void drawRectWithOutline (Rectangle &Rect, float LineThickness, Color RectColor, Color OutlineColor)
 
void drawTextCenterTopRect (Rectangle &Rect, std::string &Text, int FontSize, Color TextColor, int TopOffset=0, Font Font=GetFontDefault())
 
void drawTextCenterPoint (Vector2 Center, std::string &Text, int FontSize, Color TextColor, bool CenterX=true, bool CenterY=true, Font Font=GetFontDefault())
 
void drawTextCenterRect (Rectangle Rect, std::string &Text, int FontSize, Color TextColor, bool CenterX, bool CenterY, Font Font=GetFontDefault())
 

Enumeration Type Documentation

◆ ALIGN

Enumerator
LEFT 
RIGHT 
UP 
DOWN 

Function Documentation

◆ drawCircleWithOutline()

void Shirag::Drawing::drawCircleWithOutline ( Vector2  Center,
float  Radius,
Color  CircleColor,
Color  OutlineColor 
)

◆ drawLineAligned()

void Shirag::Drawing::drawLineAligned ( Vector2  StartPos,
Vector2  EndPos,
float  LineThick,
Color  LineColor,
ALIGN  Alignment 
)

◆ drawRectWithOutline()

void Shirag::Drawing::drawRectWithOutline ( Rectangle &  Rect,
float  LineThickness,
Color  RectColor,
Color  OutlineColor 
)

◆ drawTextCenterPoint()

void Shirag::Drawing::drawTextCenterPoint ( Vector2  Center,
std::string &  Text,
int  FontSize,
Color  TextColor,
bool  CenterX = true,
bool  CenterY = true,
Font  Font = GetFontDefault() 
)

◆ drawTextCenterRect()

void Shirag::Drawing::drawTextCenterRect ( Rectangle  Rect,
std::string &  Text,
int  FontSize,
Color  TextColor,
bool  CenterX,
bool  CenterY,
Font  Font = GetFontDefault() 
)

◆ drawTextCenterTopRect()

void Shirag::Drawing::drawTextCenterTopRect ( Rectangle &  Rect,
std::string &  Text,
int  FontSize,
Color  TextColor,
int  TopOffset = 0,
Font  Font = GetFontDefault() 
)