- bugfixes and cleanup for g3d editor and map editor so they now compile and run using newer wxwidgets (should also be backwards compatible with 2.8

This commit is contained in:
Mark Vejvoda
2011-03-20 06:05:09 +00:00
parent c75181f350
commit 829c499568
4 changed files with 301 additions and 82 deletions

View File

@@ -106,6 +106,8 @@ private:
string appPath;
bool startupSettingsInited;
void loadUnit(string path, string skillName);
void loadModel(string path);
void loadParticle(string path);
@@ -159,6 +161,9 @@ public:
void onKeyDown(wxKeyEvent &e);
string getModelInfo();
void setupTimer();
void setupStartupSettings();
};
// =====================================================
@@ -171,14 +176,17 @@ private:
public:
GlCanvas(MainWindow *mainWindow, int *args);
~GlCanvas();
void onMouseWheel(wxMouseEvent &event);
void onMouseMove(wxMouseEvent &event);
void onPaint(wxPaintEvent &event);
void onKeyDown(wxKeyEvent &event);
void setCurrentGLContext();
private:
MainWindow *mainWindow;
wxGLContext *context;
};