annotate src/projectm/video_init.c @ 2150:04421592e6a3

Fixed an unexpected cddb error messaje when no cddb info is available
author Calin Crisan ccrisan@gmail.com
date Sat, 03 Nov 2007 01:23:56 +0200
parents bc3bae2880ec
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
358
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
1 //video_init.c - SDL/Opengl Windowing Creation/Resizing Functions
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
2 //
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
3 //by Peter Sperl
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
4 //
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
5 //Opens an SDL Window and creates an OpenGL session
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
6 //also able to handle resizing and fullscreening of windows
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
7 //just call init_display again with differant variables
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
8
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
9 #include <SDL/SDL.h>
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
10 #include <GL/gl.h>
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
11 #include <GL/glu.h>
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
12
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
13 extern SDL_Surface *screen;
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
14 extern int texsize;
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
15 void setup_opengl( int w, int h );
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
16
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
17 void close_display() {
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
18 SDL_Quit();
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
19 }
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
20
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
21 void resize_display(int w, int h, int f) {
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
22 int flags;
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
23 if (f) flags = SDL_OPENGL|SDL_HWSURFACE|SDL_FULLSCREEN;
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
24 else flags = SDL_OPENGL|SDL_HWSURFACE|SDL_RESIZABLE;
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
25 // SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
26 screen = SDL_SetVideoMode( w, h, 0, flags ) ;
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
27 if(screen == 0 ) {
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
28 fprintf( stderr, "Video mode set failed: %s\n", SDL_GetError( ) );
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
29 return;
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
30 }
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
31 setup_opengl(w,h);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
32 SDL_ShowCursor(f ? SDL_DISABLE : SDL_ENABLE);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
33 }
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
34
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
35 //init_display
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
36 //
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
37 //Sets screen to new width and height (w,h)
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
38 //Also switches between fullscreen and windowed
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
39 //with the boolean f (fullscreen)
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
40 void init_display(int w, int h, int f)
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
41 {
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
42
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
43 /* Information about the current video settings. */
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
44 const SDL_VideoInfo* info = NULL;
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
45 int bpp = 0;
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
46 /* Flags we will pass into SDL_SetVideoMode. */
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
47 int flags = 0;
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
48 /* First, initialize SDL's video subsystem. */
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
49 if( SDL_Init( SDL_INIT_VIDEO | SDL_INIT_TIMER ) < 0 ) {
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
50 /* Failed, exit. */
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
51 fprintf( stderr, "Video initialization failed: %s\n",
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
52 SDL_GetError( ) );
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
53 //projectM_vtable.disable_plugin (&projectM_vtable);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
54 return;
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
55
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
56 }
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
57 /* Let's get some video information. */
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
58 info = SDL_GetVideoInfo( );
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
59 if( !info ) {
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
60 /* This should probably never happen. */
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
61 fprintf( stderr, "Video query failed: %s\n",
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
62 SDL_GetError( ) );
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
63 // projectM_vtable.disable_plugin (&projectM_vtable);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
64 return;
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
65 }
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
66
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
67 bpp = info->vfmt->BitsPerPixel;
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
68
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
69 //SDL_GL_SetAttribute( SDL_GL_RED_SIZE, 8 );
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
70 //SDL_GL_SetAttribute( SDL_GL_GREEN_SIZE, 8 );
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
71 //SDL_GL_SetAttribute( SDL_GL_BLUE_SIZE, 8 );
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
72
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
73 // SDL_GL_SetAttribute( SDL_GL_ACCUM_RED_SIZE, 8 );
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
74 // SDL_GL_SetAttribute( SDL_GL_ACCUM_GREEN_SIZE, 8 );
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
75 // SDL_GL_SetAttribute( SDL_GL_ACCUM_BLUE_SIZE, 8 );
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
76 SDL_GL_SetAttribute( SDL_GL_ALPHA_SIZE, 8 );
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
77 SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 16 );
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
78 SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 1 );
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
79
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
80 if (f==0)
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
81 flags = SDL_OPENGL|SDL_HWSURFACE|SDL_RESIZABLE;
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
82 else flags = SDL_OPENGL|SDL_HWSURFACE|SDL_FULLSCREEN;
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
83
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
84 screen= SDL_SetVideoMode( w, h, bpp, flags ) ;
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
85
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
86 if(screen == 0 ) {
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
87 /*
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
88 * This could happen for a variety of reasons,
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
89 * including DISPLAY not being set, the specified
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
90 * resolution not being available, etc.
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
91 */
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
92 fprintf( stderr, "Video mode set failed: %s\n",
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
93 SDL_GetError( ) );
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
94
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
95 // projectM_vtable.disable_plugin (&projectM_vtable);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
96 return;
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
97
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
98 }
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
99
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
100
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
101 // setup_opengl(w,h);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
102 //gluOrtho2D(0, w, 0, h);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
103 }
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
104
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
105
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
106 void setup_opengl( int w, int h )
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
107 {
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
108
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
109 /* Our shading model--Gouraud (smooth). */
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
110 glShadeModel( GL_SMOOTH);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
111 /* Culling. */
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
112 // glCullFace( GL_BACK );
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
113 // glFrontFace( GL_CCW );
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
114 // glEnable( GL_CULL_FACE );
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
115 /* Set the clear color. */
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
116 glClearColor( 0, 0, 0, 0 );
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
117 /* Setup our viewport. */
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
118 glViewport( 0, 0, w, h );
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
119 /*
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
120 * Change to the projection matrix and set
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
121 * our viewing volume.
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
122 */
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
123 glMatrixMode(GL_TEXTURE);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
124 glLoadIdentity();
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
125
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
126 // gluOrtho2D(0.0, (GLfloat) width, 0.0, (GLfloat) height);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
127 glMatrixMode(GL_PROJECTION);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
128 glLoadIdentity();
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
129
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
130 // glFrustum(0.0, height, 0.0,width,10,40);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
131 glMatrixMode(GL_MODELVIEW);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
132 glLoadIdentity();
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
133
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
134 glDrawBuffer(GL_BACK);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
135 glReadBuffer(GL_BACK);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
136 glEnable(GL_BLEND);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
137
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
138 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
139 // glBlendFunc(GL_SRC_ALPHA, GL_ONE);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
140 glEnable(GL_LINE_SMOOTH);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
141 glEnable(GL_POINT_SMOOTH);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
142 glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
143 glClear(GL_COLOR_BUFFER_BIT);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
144
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
145 // glCopyTexImage2D(GL_TEXTURE_2D,0,GL_RGB,0,0,texsize,texsize,0);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
146 //glCopyTexSubImage2D(GL_TEXTURE_2D,0,0,0,0,0,texsize,texsize);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
147 glLineStipple(2, 0xAAAA);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
148
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
149
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
150 }
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
151 #if 0
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
152 void CreateRenderTarget(int texsize,int *RenderTargetTextureID, int *RenderTarget )
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
153 {
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
154 /* Create the texture that will be bound to the render target */
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
155 glGenTextures(1, RenderTargetTextureID);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
156 glBindTexture(GL_TEXTURE_2D, *RenderTargetTextureID);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
157 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
158 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
159
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
160 /* Create the render target */
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
161 *RenderTarget = SDL_GL_CreateRenderTarget(texsize,texsize, NULL);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
162 if ( *RenderTarget ) {
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
163
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
164 int value;
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
165 //printf("Created render target:\n");
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
166 SDL_GL_GetRenderTargetAttribute( *RenderTarget, SDL_GL_RED_SIZE, &value );
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
167 // printf( "SDL_GL_RED_SIZE: %d\n", value);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
168 SDL_GL_GetRenderTargetAttribute( *RenderTarget, SDL_GL_GREEN_SIZE, &value );
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
169 // printf( "SDL_GL_GREEN_SIZE: %d\n", value);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
170 SDL_GL_GetRenderTargetAttribute( *RenderTarget, SDL_GL_BLUE_SIZE, &value );
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
171 // printf( "SDL_GL_BLUE_SIZE: %d\n", value);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
172 SDL_GL_GetRenderTargetAttribute( *RenderTarget, SDL_GL_ALPHA_SIZE, &value );
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
173 // printf( "SDL_GL_ALPHA_SIZE: %d\n", value);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
174 SDL_GL_GetRenderTargetAttribute( *RenderTarget, SDL_GL_DEPTH_SIZE, &value );
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
175 // printf( "SDL_GL_DEPTH_SIZE: %d\n", value );
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
176
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
177 SDL_GL_BindRenderTarget(*RenderTarget, *RenderTargetTextureID);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
178
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
179 } else {
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
180 /* We can fake a render target in this demo by rendering to the
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
181 * screen and copying to a texture before we do normal rendering.
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
182 */
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
183 printf("Failed to create render target, using screen buffer\n");
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
184
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
185 glBindTexture(GL_TEXTURE_2D, *RenderTargetTextureID);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
186 glTexImage2D(GL_TEXTURE_2D,
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
187 0,
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
188 GL_RGB,
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
189 texsize, texsize,
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
190 0,
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
191 GL_RGB,
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
192 GL_UNSIGNED_BYTE,
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
193 NULL);
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
194 }
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
195
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
196
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
197 }
bc3bae2880ec [svn] - add support for projectM
nenolod
parents:
diff changeset
198 #endif