changeset 943:ba1a6a328468

Rendering Engine compile on SPU.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 31 Jul 2010 18:43:05 +0900
parents b2f7d2ad3804
children 208e0478eaac
files Renderer/Engine/texture.h
diffstat 1 files changed, 18 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 <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;
@@ -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