Mercurial > hg > Members > kono > Cerium
annotate 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 |
rev | line source |
---|---|
283 | 1 #ifndef INCLUDED_TEXTURE |
2 #define INCLUDED_TEXTURE | |
3 | |
4 #include <SDL.h> | |
5 #include <SDL_opengl.h> | |
927
651251d56f36
remove garbage codes from viewerGL
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
860
diff
changeset
|
6 |
942
b2f7d2ad3804
FB mode is working again on Mac OS X.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
927
diff
changeset
|
7 extern int power_of_two(int input); |
b2f7d2ad3804
FB mode is working again on Mac OS X.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
927
diff
changeset
|
8 extern GLuint SDL_GL_LoadTexture(SDL_Surface *surface); |
b2f7d2ad3804
FB mode is working again on Mac OS X.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
927
diff
changeset
|
9 |
283 | 10 |
860 | 11 typedef struct texture_list { |
12 int t_w; | |
13 int t_h; | |
14 uint32 *pixels_orig; | |
15 uint32 *pixels; | |
283 | 16 int scale_max; |
942
b2f7d2ad3804
FB mode is working again on Mac OS X.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
927
diff
changeset
|
17 SDL_Surface *texture_image; |
b2f7d2ad3804
FB mode is working again on Mac OS X.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
927
diff
changeset
|
18 GLuint gl_tex; |
b2f7d2ad3804
FB mode is working again on Mac OS X.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
927
diff
changeset
|
19 int pad[1]; // 12 |
860 | 20 |
21 } texture_list, *texture_list_ptr ; // 20 + pad(12) = 32 | |
283 | 22 |
23 #endif |