Mercurial > hg > Members > kono > Cerium
diff Renderer/Engine/texture.h @ 942:b2f7d2ad3804
FB mode is working again on Mac OS X.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 31 Jul 2010 18:37:10 +0900 |
parents | 651251d56f36 |
children | ba1a6a328468 |
line wrap: on
line diff
--- a/Renderer/Engine/texture.h Sat Jul 31 17:50:38 2010 +0900 +++ b/Renderer/Engine/texture.h Sat Jul 31 18:37:10 2010 +0900 @@ -4,8 +4,9 @@ #include <SDL.h> #include <SDL_opengl.h> -int power_of_two(int input); -GLuint SDL_GL_LoadTexture(SDL_Surface *surface); +extern int power_of_two(int input); +extern GLuint SDL_GL_LoadTexture(SDL_Surface *surface); + typedef struct texture_list { int t_w; @@ -13,7 +14,9 @@ uint32 *pixels_orig; uint32 *pixels; int scale_max; - int pad[3]; // 12 + SDL_Surface *texture_image; + GLuint gl_tex; + int pad[1]; // 12 } texture_list, *texture_list_ptr ; // 20 + pad(12) = 32