git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46536
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
\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
wxWidgets colour database to find a named colour.
// call glcolor() for the colour with the given name, return false if
// colour not found
- bool SetColour(const wxChar *colour);
+ bool SetColour(const wxString& colour);
void SetCurrent();
- void SetColour(const wxChar *colour);
+ void SetColour(const wxString& colour);
void SwapBuffers();
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);
if ( !col.Ok() )
{
}
-void wxGLContext::SetColour(const wxChar *colour)
+void wxGLContext::SetColour(const wxString& colour)
{
}