made SetCurrent() and SwapBuffers() return boolean status indicator instead of void (slightly modified patch 1844090)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -127,7 +127,7 @@ Ignored under most platforms.}
|
||||
|
||||
\membersection{wxGLCanvas::SetCurrent}\label{wxglcanvassetcurrent}
|
||||
|
||||
\func{void}{SetCurrent}{ \param{const wxGLContext&}{ context} }
|
||||
\func{bool}{SetCurrent}{ \param{const wxGLContext&}{ context} }
|
||||
|
||||
Makes the OpenGL state that is represented by the OpenGL rendering context
|
||||
\arg{context} current, i.e. it will be used by all subsequent OpenGL calls.
|
||||
@@ -139,6 +139,8 @@ Note that this function may only be called when the window is shown on screen,
|
||||
in particular it can't usually be called from the constructor as the window
|
||||
isn't yet shown at this moment.
|
||||
|
||||
Returns \false if an error occurred.
|
||||
|
||||
|
||||
\membersection{wxGLCanvas::SetColour}\label{wxglcanvassetcolour}
|
||||
|
||||
@@ -150,8 +152,10 @@ wxWidgets colour database to find a named colour.
|
||||
|
||||
\membersection{wxGLCanvas::SwapBuffers}\label{wxglcanvasswapbuffers}
|
||||
|
||||
\func{void}{SwapBuffers}{\void}
|
||||
\func{bool}{SwapBuffers}{\void}
|
||||
|
||||
Swaps the double-buffer of this window, making the back-buffer the front-buffer and vice versa,
|
||||
so that the output of the previous OpenGL commands is displayed on the window.
|
||||
|
||||
Returns \false if an error occurred.
|
||||
|
||||
|
Reference in New Issue
Block a user