source: GTP/trunk/Lib/Illum/GPUObscurancesGT/src/Main.cpp @ 930

Revision 930, 675 bytes checked in by igarcia, 18 years ago (diff)
RevLine 
[930]1#define GLEW_STATIC 1
2
3#include <wx/progdlg.h>
4#include "Main.h"
5#include <glut.h>
6#include <iostream>
7#include <windows.h>
8#include "textfile.h"
9
10//Includes
11#include "CMesh.h"
12#include "Maths.h"
13
14//
15#include "vcObscuranceMap.h"
16
17IMPLEMENT_APP(Main)
18
19BEGIN_EVENT_TABLE(Main,wxApp)
20                EVT_IDLE(Main::OnIdle) 
21END_EVENT_TABLE()
22
23bool Main::OnInit()
24{
25        wxInitAllImageHandlers();
26
27    frame = new MyFrame("GPU Obscurances Generator",50,50,800,600);
28        frame->Show(true);
29        SetTopWindow(frame);
30
31    return true;
32}
33
34void Main::OnIdle(wxIdleEvent& event)
35{
36    //wake up idle:
37    wxWakeUpIdle();
38
39    event.Skip(); // normal processing
40}
Note: See TracBrowser for help on using the repository browser.