changed wxGLContext::SetColour() argument from wxChar* to wxString
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46536 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -138,7 +138,7 @@ isn't yet shown at this moment.
|
|||||||
|
|
||||||
\membersection{wxGLCanvas::SetColour}\label{wxglcanvassetcolour}
|
\membersection{wxGLCanvas::SetColour}\label{wxglcanvassetcolour}
|
||||||
|
|
||||||
\func{void}{SetColour}{\param{const char*}{ colour}}
|
\func{void}{SetColour}{\param{const wxString\&}{ colour}}
|
||||||
|
|
||||||
Sets the current colour for this window (using \texttt{glcolor3f()}), using the
|
Sets the current colour for this window (using \texttt{glcolor3f()}), using the
|
||||||
wxWidgets colour database to find a named colour.
|
wxWidgets colour database to find a named colour.
|
||||||
|
@@ -115,7 +115,7 @@ public:
|
|||||||
|
|
||||||
// call glcolor() for the colour with the given name, return false if
|
// call glcolor() for the colour with the given name, return false if
|
||||||
// colour not found
|
// colour not found
|
||||||
bool SetColour(const wxChar *colour);
|
bool SetColour(const wxString& colour);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -35,7 +35,7 @@ public:
|
|||||||
|
|
||||||
void SetCurrent();
|
void SetCurrent();
|
||||||
|
|
||||||
void SetColour(const wxChar *colour);
|
void SetColour(const wxString& colour);
|
||||||
|
|
||||||
void SwapBuffers();
|
void SwapBuffers();
|
||||||
|
|
||||||
|
@@ -62,7 +62,7 @@ void wxGLCanvasBase::SetCurrent(const wxGLContext& context) const
|
|||||||
context.SetCurrent(*wx_static_cast(const wxGLCanvas *, this));
|
context.SetCurrent(*wx_static_cast(const wxGLCanvas *, this));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxGLCanvasBase::SetColour(const wxChar *colour)
|
bool wxGLCanvasBase::SetColour(const wxString& colour)
|
||||||
{
|
{
|
||||||
wxColour col = wxTheColourDatabase->Find(colour);
|
wxColour col = wxTheColourDatabase->Find(colour);
|
||||||
if ( !col.Ok() )
|
if ( !col.Ok() )
|
||||||
|
@@ -67,7 +67,7 @@ void wxGLContext::SetCurrent()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxGLContext::SetColour(const wxChar *colour)
|
void wxGLContext::SetColour(const wxString& colour)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user