PGE Engine
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
Static Public Member Functions | Static Public Attributes | List of all members
GlRenderer Class Reference

Static Public Member Functions

static bool init ()
 
static bool uninit ()
 
static PGE_PointF mapToOpengl (PGE_Point s)
 
static void makeShot ()
 
static int makeShot_action (void *_pixels)
 
static bool ready ()
 
static void setRGB (float Red, float Green, float Blue, float Alpha=1.0)
 
static void resetRGB ()
 
static void renderTexture (PGE_Texture *texture, float x, float y)
 Render texture as-is.
 
static void renderTexture (PGE_Texture *texture, float x, float y, float w, float h, float ani_top=0, float ani_bottom=1, float ani_left=0, float ani_right=1)
 Render matrix animation fragment.
 
static void renderTextureCur (float x, float y, float w, float h, float ani_top=0, float ani_bottom=1, float ani_left=0, float ani_right=1)
 Draw currently binded texture.
 
static void renderRect (float x, float y, float w, float h, GLfloat red=1.f, GLfloat green=1.f, GLfloat blue=1.f, GLfloat alpha=1.f, bool filled=true)
 
static void renderRectBR (float _left, float _top, float _right, float _bottom, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
 
static PGE_PointF MapToGl (PGE_Point point)
 
static PGE_PointF MapToGl (float x, float y)
 
static PGE_Point MapToScr (PGE_Point point)
 
static PGE_Point MapToScr (int x, int y)
 
static int alignToCenter (int x, int w)
 
static void setViewport (int x, int y, int w, int h)
 
static void resetViewport ()
 
static void setViewportSize (int w, int h)
 
static void setWindowSize (int w, int h)
 
static PGE_Texture loadTexture (QString path, QString maskPath="")
 
static void loadTextureP (PGE_Texture &target, QString path, QString maskPath="")
 
static void deleteTexture (PGE_Texture &tx)
 

Static Public Attributes

static QString ScreenshotPath = ""
 

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