Unicode compilation fixes for wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18027 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -5,6 +5,8 @@
|
|||||||
|
|
||||||
#if wxUSE_GLCANVAS
|
#if wxUSE_GLCANVAS
|
||||||
|
|
||||||
|
#define wxGLCanvasName _T("GLCanvas")
|
||||||
|
|
||||||
#if defined(__WXMSW__)
|
#if defined(__WXMSW__)
|
||||||
#include "wx/msw/glcanvas.h"
|
#include "wx/msw/glcanvas.h"
|
||||||
#elif defined(__WXMOTIF__)
|
#elif defined(__WXMOTIF__)
|
||||||
|
@@ -73,7 +73,7 @@ public:
|
|||||||
~wxGLContext();
|
~wxGLContext();
|
||||||
|
|
||||||
void SetCurrent();
|
void SetCurrent();
|
||||||
void SetColour(const char *colour);
|
void SetColour(const wxChar *colour);
|
||||||
void SwapBuffers();
|
void SwapBuffers();
|
||||||
|
|
||||||
void SetupPixelFormat();
|
void SetupPixelFormat();
|
||||||
@@ -113,21 +113,21 @@ public:
|
|||||||
wxGLCanvas( wxWindow *parent, wxWindowID id = -1,
|
wxGLCanvas( wxWindow *parent, wxWindowID id = -1,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize,
|
const wxSize& size = wxDefaultSize,
|
||||||
long style = 0, const wxString& name = "GLCanvas",
|
long style = 0, const wxString& name = wxGLCanvasName,
|
||||||
int *attribList = (int*) NULL,
|
int *attribList = (int*) NULL,
|
||||||
const wxPalette& palette = wxNullPalette );
|
const wxPalette& palette = wxNullPalette );
|
||||||
wxGLCanvas( wxWindow *parent, const wxGLContext *shared = (wxGLContext *)NULL,
|
wxGLCanvas( wxWindow *parent, const wxGLContext *shared = (wxGLContext *)NULL,
|
||||||
wxWindowID id = -1,
|
wxWindowID id = -1,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize,
|
const wxSize& size = wxDefaultSize,
|
||||||
long style = 0, const wxString& name = "GLCanvas",
|
long style = 0, const wxString& name = wxGLCanvasName,
|
||||||
int *attribList = (int*) NULL,
|
int *attribList = (int*) NULL,
|
||||||
const wxPalette& palette = wxNullPalette );
|
const wxPalette& palette = wxNullPalette );
|
||||||
wxGLCanvas( wxWindow *parent, const wxGLCanvas *shared = (wxGLCanvas *)NULL,
|
wxGLCanvas( wxWindow *parent, const wxGLCanvas *shared = (wxGLCanvas *)NULL,
|
||||||
wxWindowID id = -1,
|
wxWindowID id = -1,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize,
|
const wxSize& size = wxDefaultSize,
|
||||||
long style = 0, const wxString& name = "GLCanvas",
|
long style = 0, const wxString& name = wxGLCanvasName,
|
||||||
int *attribList = (int*) NULL,
|
int *attribList = (int*) NULL,
|
||||||
const wxPalette& palette = wxNullPalette );
|
const wxPalette& palette = wxNullPalette );
|
||||||
|
|
||||||
@@ -137,14 +137,15 @@ public:
|
|||||||
wxWindowID id = -1,
|
wxWindowID id = -1,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize,
|
const wxSize& size = wxDefaultSize,
|
||||||
long style = 0, const wxString& name = "GLCanvas",
|
long style = 0,
|
||||||
|
const wxString& name = wxGLCanvasName,
|
||||||
int *attribList = (int*) NULL,
|
int *attribList = (int*) NULL,
|
||||||
const wxPalette& palette = wxNullPalette );
|
const wxPalette& palette = wxNullPalette );
|
||||||
|
|
||||||
~wxGLCanvas();
|
~wxGLCanvas();
|
||||||
|
|
||||||
void SetCurrent();
|
void SetCurrent();
|
||||||
void SetColour(const char *colour);
|
void SetColour(const wxChar *colour);
|
||||||
void SwapBuffers();
|
void SwapBuffers();
|
||||||
|
|
||||||
void OnSize(wxSizeEvent& event);
|
void OnSize(wxSizeEvent& event);
|
||||||
|
@@ -73,7 +73,7 @@ public:
|
|||||||
~wxGLContext();
|
~wxGLContext();
|
||||||
|
|
||||||
void SetCurrent();
|
void SetCurrent();
|
||||||
void SetColour(const char *colour);
|
void SetColour(const wxChar *colour);
|
||||||
void SwapBuffers();
|
void SwapBuffers();
|
||||||
|
|
||||||
void SetupPixelFormat();
|
void SetupPixelFormat();
|
||||||
@@ -113,21 +113,21 @@ public:
|
|||||||
wxGLCanvas( wxWindow *parent, wxWindowID id = -1,
|
wxGLCanvas( wxWindow *parent, wxWindowID id = -1,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize,
|
const wxSize& size = wxDefaultSize,
|
||||||
long style = 0, const wxString& name = "GLCanvas",
|
long style = 0, const wxString& name = wxGLCanvasName,
|
||||||
int *attribList = (int*) NULL,
|
int *attribList = (int*) NULL,
|
||||||
const wxPalette& palette = wxNullPalette );
|
const wxPalette& palette = wxNullPalette );
|
||||||
wxGLCanvas( wxWindow *parent, const wxGLContext *shared = (wxGLContext *)NULL,
|
wxGLCanvas( wxWindow *parent, const wxGLContext *shared = (wxGLContext *)NULL,
|
||||||
wxWindowID id = -1,
|
wxWindowID id = -1,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize,
|
const wxSize& size = wxDefaultSize,
|
||||||
long style = 0, const wxString& name = "GLCanvas",
|
long style = 0, const wxString& name = wxGLCanvasName,
|
||||||
int *attribList = (int*) NULL,
|
int *attribList = (int*) NULL,
|
||||||
const wxPalette& palette = wxNullPalette );
|
const wxPalette& palette = wxNullPalette );
|
||||||
wxGLCanvas( wxWindow *parent, const wxGLCanvas *shared = (wxGLCanvas *)NULL,
|
wxGLCanvas( wxWindow *parent, const wxGLCanvas *shared = (wxGLCanvas *)NULL,
|
||||||
wxWindowID id = -1,
|
wxWindowID id = -1,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize,
|
const wxSize& size = wxDefaultSize,
|
||||||
long style = 0, const wxString& name = "GLCanvas",
|
long style = 0, const wxString& name = wxGLCanvasName,
|
||||||
int *attribList = (int*) NULL,
|
int *attribList = (int*) NULL,
|
||||||
const wxPalette& palette = wxNullPalette );
|
const wxPalette& palette = wxNullPalette );
|
||||||
|
|
||||||
@@ -137,14 +137,15 @@ public:
|
|||||||
wxWindowID id = -1,
|
wxWindowID id = -1,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize,
|
const wxSize& size = wxDefaultSize,
|
||||||
long style = 0, const wxString& name = "GLCanvas",
|
long style = 0,
|
||||||
|
const wxString& name = wxGLCanvasName,
|
||||||
int *attribList = (int*) NULL,
|
int *attribList = (int*) NULL,
|
||||||
const wxPalette& palette = wxNullPalette );
|
const wxPalette& palette = wxNullPalette );
|
||||||
|
|
||||||
~wxGLCanvas();
|
~wxGLCanvas();
|
||||||
|
|
||||||
void SetCurrent();
|
void SetCurrent();
|
||||||
void SetColour(const char *colour);
|
void SetColour(const wxChar *colour);
|
||||||
void SwapBuffers();
|
void SwapBuffers();
|
||||||
|
|
||||||
void OnSize(wxSizeEvent& event);
|
void OnSize(wxSizeEvent& event);
|
||||||
|
@@ -80,8 +80,6 @@ public:
|
|||||||
wxWindow* m_window;
|
wxWindow* m_window;
|
||||||
};
|
};
|
||||||
|
|
||||||
#define wxGLCanvasName _T("GLCanvas")
|
|
||||||
|
|
||||||
class WXDLLEXPORT wxGLCanvas: public wxWindow
|
class WXDLLEXPORT wxGLCanvas: public wxWindow
|
||||||
{
|
{
|
||||||
DECLARE_CLASS(wxGLCanvas)
|
DECLARE_CLASS(wxGLCanvas)
|
||||||
|
@@ -121,7 +121,7 @@ void wxGLContext::SetCurrent()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxGLContext::SetColour(const char *colour)
|
void wxGLContext::SetColour(const wxChar *colour)
|
||||||
{
|
{
|
||||||
float r = 0.0;
|
float r = 0.0;
|
||||||
float g = 0.0;
|
float g = 0.0;
|
||||||
@@ -441,7 +441,7 @@ void wxGLCanvas::SetCurrent()
|
|||||||
m_glContext->SetCurrent();
|
m_glContext->SetCurrent();
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxGLCanvas::SetColour( const char *colour )
|
void wxGLCanvas::SetColour( const wxChar *colour )
|
||||||
{
|
{
|
||||||
if (m_glContext)
|
if (m_glContext)
|
||||||
m_glContext->SetColour( colour );
|
m_glContext->SetColour( colour );
|
||||||
|
@@ -121,7 +121,7 @@ void wxGLContext::SetCurrent()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxGLContext::SetColour(const char *colour)
|
void wxGLContext::SetColour(const wxChar *colour)
|
||||||
{
|
{
|
||||||
float r = 0.0;
|
float r = 0.0;
|
||||||
float g = 0.0;
|
float g = 0.0;
|
||||||
@@ -441,7 +441,7 @@ void wxGLCanvas::SetCurrent()
|
|||||||
m_glContext->SetCurrent();
|
m_glContext->SetCurrent();
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxGLCanvas::SetColour( const char *colour )
|
void wxGLCanvas::SetColour( const wxChar *colour )
|
||||||
{
|
{
|
||||||
if (m_glContext)
|
if (m_glContext)
|
||||||
m_glContext->SetColour( colour );
|
m_glContext->SetColour( colour );
|
||||||
|
Reference in New Issue
Block a user