Subversion Repositories gelsvn

Rev

Rev 369 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 369 Rev 373
Line 1... Line 1...
1
#include <string>
1
#include <string>
2
#include <iostream>
2
#include <iostream>
3
 
3
 
4
#include <windows.h>
4
#include <windows.h>
5
#include <shellapi.h>
5
#include <shellapi.h>
6
#include <gl/gl.h>
6
#include <gl/glew.h>
7
#include <gl/glext.h>
7
#include <time.h>
8
 
8
 
9
#include "SOIL.h"
9
#include "SOIL.h"
10
 
10
 
11
LRESULT CALLBACK WindowProc(HWND, UINT, WPARAM, LPARAM);
11
LRESULT CALLBACK WindowProc(HWND, UINT, WPARAM, LPARAM);
12
void EnableOpenGL(HWND hwnd, HDC*, HGLRC*);
12
void EnableOpenGL(HWND hwnd, HDC*, HGLRC*);
Line 222... Line 222...
222
            }
222
            }
223
        }
223
        }
224
        else
224
        else
225
        {
225
        {
226
            // OpenGL animation code goes here
226
            // OpenGL animation code goes here
227
            theta = clock() * 0.1;
227
            theta = clock() * 0.1f;
228
 
228
 
229
            float tex_u_max = 1.0f;//0.2f;
229
            float tex_u_max = 1.0f;//0.2f;
230
            float tex_v_max = 1.0f;//0.2f;
230
            float tex_v_max = 1.0f;//0.2f;
231
 
231
 
232
            glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
232
            glClearColor(0.0f, 0.0f, 0.0f, 0.0f);