22 #ifndef FIFE_VIDEO_RENDERBACKENDS_OPENGL_GLIMAGE_H
23 #define FIFE_VIDEO_RENDERBACKENDS_OPENGL_GLIMAGE_H
29 #include "util/base/fife_stdint.h"
32 #include <SDL_video.h>
38 #include "video/image.h"
40 #include "fife_opengl.h"
61 GLImage(
const uint8_t* data,
unsigned int width,
unsigned int height);
64 void render(
const Rect& rect, SDL_Surface* dst,
unsigned char alpha = 255);
65 void saveImage(
const std::string& filename);
66 bool putPixel(
int x,
int y,
int r,
int g,
int b,
int a = 255);
67 void drawLine(
const Point& p1,
const Point& p2,
int r,
int g,
int b,
int a = 255);
68 void drawTriangle(
const Point& p1,
const Point& p2,
const Point& p3,
int r,
int g,
int b,
int a = 255);
69 void drawRectangle(
const Point& p, uint16_t w, uint16_t h, uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255);
70 void fillRectangle(
const Point& p, uint16_t w, uint16_t h, uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255);
71 void drawQuad(
const Point& p1,
const Point& p2,
const Point& p3,
const Point& p4,
int r,
int g,
int b,
int a = 255);
72 void drawVertex(
const Point& p,
const uint8_t size,
int r,
int g,
int b,
int a = 255);
73 void drawLightPrimitive(
const Point& p, uint8_t intensity,
float radius,
int subdivisions,
float xstretch,
float ystretch, uint8_t red, uint8_t green, uint8_t blue);
80 float m_col_tex_coord;
82 float m_row_tex_coord;
100 void generateGLTexture();
111 uint32_t m_chunk_size_w;
112 uint32_t m_chunk_size_h;
114 SDL_Color m_colorkey;