15 #ifndef SDL_IMAGE_HPP_INCLUDED
16 #define SDL_IMAGE_HPP_INCLUDED
42 timage(Uint16
w, Uint16
h);
56 timage( SDL_Surface *
source);
71 timage &operator=(
const timage &
texture);
88 void set_rotation(
float rotation);
93 float rotation()
const;
100 void set_hscale(
float factor);
107 void set_vscale(
float factor);
115 void set_scale(
float hfactor,
float vfactor);
120 float hscale()
const;
125 float vscale()
const;
132 void set_smooth_scaling(
bool use_smooth);
137 bool smooth_scaling()
const;
152 Uint16 base_width()
const;
157 Uint16 base_height()
const;
167 void set_clip(
const SDL_Rect &rect);
172 SDL_Rect clip()
const;
179 void set_alpha(
int alpha);
193 void set_color_mod(
int r,
int g,
int b);
203 int green_mod()
const;
208 int blue_mod()
const;
242 void set_submerge(
double val);
244 double submerge()
const;
246 void set_effects(
int effects);
253 bool nullptr()
const;
255 timage clone()
const;
276 int red_mod_, green_mod_, blue_mod_, alpha_mod_;
surface image_
The image is cached in this surface.
GLuint const GLfloat * val
GLenum GLenum GLuint texture
GLint GLint GLint GLint GLint GLint y
GLdouble GLdouble GLdouble b
GLubyte GLubyte GLubyte GLubyte w
GLclampf GLclampf GLclampf alpha
void draw(surface screen)
GLfloat GLfloat GLfloat GLfloat h
GLint GLint GLint GLint GLint x
GLdouble GLdouble GLdouble r
GLint GLint GLint GLint GLint GLint GLsizei GLsizei height
GLint GLint GLint GLint GLint GLint GLsizei width
GLsizei const GLcharARB ** string
GLsizei GLsizei GLchar * source