Subversion Repositories gelsvn

Rev

Rev 373 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 373 Rev 409
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/glew.h>
6
#include <GL/glew.h>
7
#include <time.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);
Line 305... Line 305...
305
    DisableOpenGL(hwnd, hDC, hRC);
305
    DisableOpenGL(hwnd, hDC, hRC);
306
 
306
 
307
    // destroy the window explicitly
307
    // destroy the window explicitly
308
    DestroyWindow(hwnd);
308
    DestroyWindow(hwnd);
309
 
309
 
310
    return msg.wParam;
310
    return static_cast<int>(msg.wParam);
311
}
311
}
312
 
312
 
313
LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
313
LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
314
{
314
{
315
    switch (uMsg)
315
    switch (uMsg)