Mercurial > hg > Game > Cerium
view TaskManager/Test/test_render/texture.h @ 145:a5138d6e8996 draft
fix
author | gongo@gendarme.cr.ie.u-ryukyu.ac.jp |
---|---|
date | Tue, 02 Dec 2008 12:46:54 +0900 |
parents | 56db76a03294 |
children | 1f7c46e52ab9 |
line wrap: on
line source
#ifndef INCLUDED_TEXTURE #define INCLUDED_TEXTURE #if 0 // もういらないっぽい OpenGL 使用時の遺産 #include <SDL.h> #include <SDL_opengl.h> GLuint SDL_GL_LoadTexture(SDL_Surface *surface, GLfloat *texcoord) #endif #define S_X 128 #define SSIZE 128*128 #define SS64 64*64 #define SS32 32*32 typedef struct { Uint32 tx128[SSIZE]; Uint32 tx64[SS64]; Uint32 tx32[SS32]; Uint32 block[SSIZE+SS64+SS32]; } Sptx; typedef struct Texture{ int px, py; Sptx s[100]; }; struct texture_list { int t_w, t_h; Uint32 *pixels_orig; Uint32 *pixels; }; #endif