GlPortal Class Reference  0.1.1
Source code documentation of the free and open 3D action puzzle game.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Data Structures | Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
radix::GlGwenRenderer Class Reference

#include <external/RadixEngine/include/radix/renderer/GlGwenRenderer.hpp>

Inherits Base.

Data Structures

struct  Vertex
 

Public Member Functions

 GlGwenRenderer ()
 
 ~GlGwenRenderer ()
 
void Init () finaloverride
 
void Begin () finaloverride
 
void End () finaloverride
 
void SetDrawColor (Gwen::Color color) finaloverride
 
void DrawFilledRect (Gwen::Rect rect) finaloverride
 
void StartClip () finaloverride
 
void EndClip () finaloverride
 
void DrawTexturedRect (Gwen::Texture *tex, Gwen::Rect rect, float u1=0.0f, float v1=0.0f, float u2=1.0f, float v2=1.0f) finaloverride
 
void LoadTexture (Gwen::Texture *tex) finaloverride
 
void FreeTexture (Gwen::Texture *tex) finaloverride
 
Gwen::Color PixelColour (Gwen::Texture *tex, unsigned int x, unsigned int y, const Gwen::Color &col_default) finaloverride
 
void RenderText (Gwen::Font *font, Gwen::Point pos, const Gwen::UnicodeString &text) finaloverride
 
Gwen::Point MeasureText (Gwen::Font *font, const Gwen::UnicodeString &text) finaloverride
 

Protected Member Functions

void flush ()
 
void addVert (int x, int y, float u=0.0f, float v=0.0f)
 
void loadDebugFont ()
 

Protected Attributes

GLuint vao
 
std::unique_ptr< VBOvbo
 
std::unique_ptr< Gwen::Texture > fontTex
 
float fontScale [2]
 
float fontLetterSpacing
 
std::vector< char > fontSpacing
 
Gwen::Color color
 
int vertNum
 
Vertex vertices [MaxVerts]
 

Static Protected Attributes

static const int MaxVerts = 1024
 

Constructor & Destructor Documentation

radix::GlGwenRenderer::GlGwenRenderer ( )
radix::GlGwenRenderer::~GlGwenRenderer ( )

Member Function Documentation

void radix::GlGwenRenderer::addVert ( int  x,
int  y,
float  u = 0.0f,
float  v = 0.0f 
)
protected
void radix::GlGwenRenderer::Begin ( )
finaloverride
void radix::GlGwenRenderer::DrawFilledRect ( Gwen::Rect  rect)
finaloverride
void radix::GlGwenRenderer::DrawTexturedRect ( Gwen::Texture *  tex,
Gwen::Rect  rect,
float  u1 = 0.0f,
float  v1 = 0.0f,
float  u2 = 1.0f,
float  v2 = 1.0f 
)
finaloverride
void radix::GlGwenRenderer::End ( )
finaloverride
void radix::GlGwenRenderer::EndClip ( )
finaloverride
void radix::GlGwenRenderer::flush ( )
protected
void radix::GlGwenRenderer::FreeTexture ( Gwen::Texture *  tex)
finaloverride
void radix::GlGwenRenderer::Init ( )
finaloverride
void radix::GlGwenRenderer::loadDebugFont ( )
protected
void radix::GlGwenRenderer::LoadTexture ( Gwen::Texture *  tex)
finaloverride
Gwen::Point radix::GlGwenRenderer::MeasureText ( Gwen::Font *  font,
const Gwen::UnicodeString &  text 
)
finaloverride
Gwen::Color radix::GlGwenRenderer::PixelColour ( Gwen::Texture *  tex,
unsigned int  x,
unsigned int  y,
const Gwen::Color &  col_default 
)
finaloverride
void radix::GlGwenRenderer::RenderText ( Gwen::Font *  font,
Gwen::Point  pos,
const Gwen::UnicodeString &  text 
)
finaloverride
void radix::GlGwenRenderer::SetDrawColor ( Gwen::Color  color)
finaloverride
void radix::GlGwenRenderer::StartClip ( )
finaloverride

Field Documentation

Gwen::Color radix::GlGwenRenderer::color
protected
float radix::GlGwenRenderer::fontLetterSpacing
protected
float radix::GlGwenRenderer::fontScale[2]
protected
std::vector<char> radix::GlGwenRenderer::fontSpacing
protected
std::unique_ptr<Gwen::Texture> radix::GlGwenRenderer::fontTex
protected
const int radix::GlGwenRenderer::MaxVerts = 1024
staticprotected
GLuint radix::GlGwenRenderer::vao
protected
std::unique_ptr<VBO> radix::GlGwenRenderer::vbo
protected
Vertex radix::GlGwenRenderer::vertices[MaxVerts]
protected
int radix::GlGwenRenderer::vertNum
protected

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