mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-19 14:53:56 -07:00
Added call to XInitThreads, for required thread safety. Fixed conversions between wchar_t and XMLCh strings. (Not tested much yet.) Fixed COLLADA too. This was SVN commit r4964.
23 lines
445 B
C++
23 lines
445 B
C++
#include "wx/glcanvas.h"
|
|
|
|
class Canvas : public wxGLCanvas
|
|
{
|
|
public:
|
|
Canvas(wxWindow* parent, int* attribList, long style);
|
|
|
|
void InitSize();
|
|
protected:
|
|
virtual void HandleMouseEvent(wxMouseEvent& evt) = 0;
|
|
|
|
private:
|
|
void OnResize(wxSizeEvent& evt);
|
|
void OnMouseCapture(wxMouseCaptureChangedEvent& evt);
|
|
void OnMouse(wxMouseEvent& evt);
|
|
|
|
bool m_SuppressResize;
|
|
|
|
wxPoint m_LastMousePos;
|
|
bool m_MouseCaptured;
|
|
|
|
DECLARE_EVENT_TABLE();
|
|
};
|