Mercurial > hg > Members > e085722 > Cerium
diff include/Cerium/texture.h @ 0:04e28d8d3c6f
first commit
author | Daiki KINJYO <e085722@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 08 Nov 2010 01:23:25 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/include/Cerium/texture.h Mon Nov 08 01:23:25 2010 +0900 @@ -0,0 +1,40 @@ +#ifndef INCLUDED_TEXTURE +#define INCLUDED_TEXTURE + +#if !defined(__SPU__) + +#include <SDL.h> +#include <SDL_opengl.h> + +extern int power_of_two(int input); +extern GLuint SDL_GL_LoadTexture(SDL_Surface *surface); + +typedef struct texture_list { + int t_w; + int t_h; + uint32 *pixels_orig; + uint32 *pixels; + int scale_max; + SDL_Surface *texture_image; + GLuint gl_tex; + int pad[1]; // 12 + +} texture_list, *texture_list_ptr ; // 20 + pad(12) = 32 + +#else + +typedef struct texture_list { + int t_w; + int t_h; + uint32 *pixels_orig; + uint32 *pixels; + int scale_max; + void *texture_image; + void *gl_tex; + int pad[1]; // 12 + +} texture_list, *texture_list_ptr ; // 20 + pad(12) = 32 + +#endif + +#endif