annotate Renderer/Engine/texture.h @ 942:b2f7d2ad3804

FB mode is working again on Mac OS X.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 31 Jul 2010 18:37:10 +0900
parents 651251d56f36
children ba1a6a328468
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
283
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
1 #ifndef INCLUDED_TEXTURE
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
2 #define INCLUDED_TEXTURE
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
3
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
4 #include <SDL.h>
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
5 #include <SDL_opengl.h>
927
651251d56f36 remove garbage codes from viewerGL
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 860
diff changeset
6
942
b2f7d2ad3804 FB mode is working again on Mac OS X.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 927
diff changeset
7 extern int power_of_two(int input);
b2f7d2ad3804 FB mode is working again on Mac OS X.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 927
diff changeset
8 extern GLuint SDL_GL_LoadTexture(SDL_Surface *surface);
b2f7d2ad3804 FB mode is working again on Mac OS X.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 927
diff changeset
9
283
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
10
860
649e4cb84683 Still on the way
yutaka@localhost.localdomain
parents: 507
diff changeset
11 typedef struct texture_list {
649e4cb84683 Still on the way
yutaka@localhost.localdomain
parents: 507
diff changeset
12 int t_w;
649e4cb84683 Still on the way
yutaka@localhost.localdomain
parents: 507
diff changeset
13 int t_h;
649e4cb84683 Still on the way
yutaka@localhost.localdomain
parents: 507
diff changeset
14 uint32 *pixels_orig;
649e4cb84683 Still on the way
yutaka@localhost.localdomain
parents: 507
diff changeset
15 uint32 *pixels;
283
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
16 int scale_max;
942
b2f7d2ad3804 FB mode is working again on Mac OS X.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 927
diff changeset
17 SDL_Surface *texture_image;
b2f7d2ad3804 FB mode is working again on Mac OS X.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 927
diff changeset
18 GLuint gl_tex;
b2f7d2ad3804 FB mode is working again on Mac OS X.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 927
diff changeset
19 int pad[1]; // 12
860
649e4cb84683 Still on the way
yutaka@localhost.localdomain
parents: 507
diff changeset
20
649e4cb84683 Still on the way
yutaka@localhost.localdomain
parents: 507
diff changeset
21 } texture_list, *texture_list_ptr ; // 20 + pad(12) = 32
283
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
22
55ea4465b1a2 fix test_render
e065746@localhost.localdomain
parents:
diff changeset
23 #endif