# HG changeset patch # User Shinji KONO # Date 1280569385 -32400 # Node ID ba1a6a328468d267510b294c963857589800db11 # Parent b2f7d2ad380460c9dbac2fbc5839f92b41a55e07 Rendering Engine compile on SPU. diff -r b2f7d2ad3804 -r ba1a6a328468 Renderer/Engine/texture.h --- a/Renderer/Engine/texture.h Sat Jul 31 18:37:10 2010 +0900 +++ b/Renderer/Engine/texture.h Sat Jul 31 18:43:05 2010 +0900 @@ -1,13 +1,14 @@ #ifndef INCLUDED_TEXTURE #define INCLUDED_TEXTURE +#if !defined(__SPU__) + #include #include 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; @@ -20,4 +21,20 @@ } 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