X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscreen.h;h=fc13c7bf4eb5863f859f36791a51c1a758ec7195;hb=2f395aba3974db45f45a8587ed423a3abeab4cd5;hp=ee319d2df2c0e37f52ef418edfb32234b2514905;hpb=9d1f5cf0d4a76fcd05d7dcab156bf23ca3a01638;p=supertux.git diff --git a/src/screen.h b/src/screen.h index ee319d2df..fc13c7bf4 100644 --- a/src/screen.h +++ b/src/screen.h @@ -11,19 +11,33 @@ */ #include +#include #define NO_UPDATE 0 #define UPDATE 1 #define USE_ALPHA 0 #define IGNORE_ALPHA 1 +#ifndef GL_NV_texture_rectangle +#define GL_TEXTURE_RECTANGLE_NV 0x84F5 +#define GL_TEXTURE_BINDING_RECTANGLE_NV 0x84F6 +#define GL_PROXY_TEXTURE_RECTANGLE_NV 0x84F7 +#define GL_MAX_RECTANGLE_TEXTURE_SIZE_NV 0x84F8 +#endif + void load_and_display_image(char * file); -void clearscreen(int r, int g, int b); +void clearscreen(float r, float g, float b); void updatescreen(void); +void flipscreen(void); SDL_Surface * load_image(char * file, int use_alpha); -void drawimage(SDL_Surface * surf, int x, int y, int update); -void drawpart(SDL_Surface * surf, int x, int y, int w, int h, int update); +/* +void drawimage(SDL_Surface * surf, float x, float y, int update); +void drawpart(SDL_Surface * surf, float x, float y, float w, float h, int update); +*/ void drawtext(char * text, int x, int y, SDL_Surface * surf, int update, int shadowsize); void drawcenteredtext(char * text, int y, SDL_Surface * surf, int update, int shadowsize); void erasetext(char * text, int x, int y, SDL_Surface * surf, int update, int shadowsize); void erasecenteredtext(char * text, int y, SDL_Surface * surf, int update, int shadowsize); +void create_gl_texture(SDL_Surface * surf, GLint * tex); +void update_rect(SDL_Surface *scr, Sint32 x, Sint32 y, Sint32 w, Sint32 h); +