Mercurial > hg > Members > kono > Cerium
comparison 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 |
comparison
equal
deleted
inserted
replaced
941:0c11c2fd7e63 | 942:b2f7d2ad3804 |
---|---|
2 #define INCLUDED_TEXTURE | 2 #define INCLUDED_TEXTURE |
3 | 3 |
4 #include <SDL.h> | 4 #include <SDL.h> |
5 #include <SDL_opengl.h> | 5 #include <SDL_opengl.h> |
6 | 6 |
7 int power_of_two(int input); | 7 extern int power_of_two(int input); |
8 GLuint SDL_GL_LoadTexture(SDL_Surface *surface); | 8 extern GLuint SDL_GL_LoadTexture(SDL_Surface *surface); |
9 | |
9 | 10 |
10 typedef struct texture_list { | 11 typedef struct texture_list { |
11 int t_w; | 12 int t_w; |
12 int t_h; | 13 int t_h; |
13 uint32 *pixels_orig; | 14 uint32 *pixels_orig; |
14 uint32 *pixels; | 15 uint32 *pixels; |
15 int scale_max; | 16 int scale_max; |
16 int pad[3]; // 12 | 17 SDL_Surface *texture_image; |
18 GLuint gl_tex; | |
19 int pad[1]; // 12 | |
17 | 20 |
18 } texture_list, *texture_list_ptr ; // 20 + pad(12) = 32 | 21 } texture_list, *texture_list_ptr ; // 20 + pad(12) = 32 |
19 | 22 |
20 #endif | 23 #endif |