Mercurial > hg > Members > kono > Cerium
view Renderer/Engine/texture.h @ 927:651251d56f36
remove garbage codes from viewerGL
author | koba <koba@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 30 Jul 2010 17:57:49 +0900 |
parents | 649e4cb84683 |
children | b2f7d2ad3804 |
line wrap: on
line source
#ifndef INCLUDED_TEXTURE #define INCLUDED_TEXTURE #include <SDL.h> #include <SDL_opengl.h> int power_of_two(int input); 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; int pad[3]; // 12 } texture_list, *texture_list_ptr ; // 20 + pad(12) = 32 #endif