23 #include <common_features/pge_texture.h>
24 #include <common_features/rectf.h>
25 #include <common_features/point.h>
26 #include <common_features/pointf.h>
36 static QString ScreenshotPath;
37 static void makeShot();
38 static int makeShot_action(
void *_pixels);
40 static void setRGB(
float Red,
float Green,
float Blue,
float Alpha=1.0);
41 static void resetRGB();
44 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);
45 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);
46 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);
47 static void renderRectBR(
float _left,
float _top,
float _right,
float _bottom, GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
53 static int alignToCenter(
int x,
int w);
54 static void setViewport(
int x,
int y,
int w,
int h);
55 static void resetViewport();
56 static void setViewportSize(
int w,
int h);
57 static void setWindowSize(
int w,
int h);
59 static PGE_Texture loadTexture(QString path, QString maskPath=
"");
60 static void loadTextureP(
PGE_Texture &target, QString path, QString maskPath=
"");
63 static void initDummyTexture();
74 static float offset_x;
75 static float offset_y;
77 static float viewport_x;
78 static float viewport_y;
80 static float viewport_scale_x;
81 static float viewport_scale_y;
83 static float viewport_w;
84 static float viewport_h;
86 static float viewport_w_half;
87 static float viewport_h_half;
90 static float color_level_red;
91 static float color_level_green;
92 static float color_level_blue;
93 static float color_level_alpha;
95 static SDL_Thread *thread;
99 #endif // GL_RENDERER_H
Definition: gl_renderer.h:29
Definition: pge_texture.h:32
static void renderTexture(PGE_Texture *texture, float x, float y)
Render texture as-is.
Definition: gl_renderer.cpp:538
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.
Definition: gl_renderer.cpp:671