Line | |
---|
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 |
|
---|
17 | IMPLEMENT_APP(Main)
|
---|
18 |
|
---|
19 | BEGIN_EVENT_TABLE(Main,wxApp)
|
---|
20 | EVT_IDLE(Main::OnIdle)
|
---|
21 | END_EVENT_TABLE()
|
---|
22 |
|
---|
23 | bool 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 |
|
---|
34 | void 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.