X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dc3065a56f1febf3de3b3bbf0904cf8fdc7f7c50..b15666a6fab4143778905b3adacb89c390932761:/docs/latex/wx/glcanvas.tex diff --git a/docs/latex/wx/glcanvas.tex b/docs/latex/wx/glcanvas.tex index 0df49efa82..ba2a49e3cc 100644 --- a/docs/latex/wx/glcanvas.tex +++ b/docs/latex/wx/glcanvas.tex @@ -7,7 +7,7 @@ a wxGLCanvas. More precisely, you first need to create a wxGLCanvas window and then create an instance of a \helpref{wxGLContext}{wxglcontext} that is initialized with this -wxGLCanvas and then later use either \helpref{wxGLCanvas::SetCurrent}{wxglcanvassetcurrentrc} +wxGLCanvas and then later use either \helpref{wxGLCanvas::SetCurrent}{wxglcanvassetcurrent} with the instance of the \helpref{wxGLContext}{wxglcontext} or \helpref{wxGLContext::SetCurrent}{wxglcontextsetcurrent} with the instance of the \helpref{wxGLCanvas}{wxglcanvas} (which might be not the same as was used @@ -28,7 +28,7 @@ the {\it attribList} parameter. The values that should be set up and their meani Notice that OpenGL is not enabled by default. To switch it on, you need to edit setup.h under Windows and set {\tt wxUSE\_GLCANVAS} to $1$ (you may also need to have to add {\tt opengl32.lib} and {\tt glu32.lib} to the list of libraries -your program is linked with). On Unix, pass \verb=--with-opengl= to configure. +your program is linked with). On Unix, pass {\tt --with-opengl} to configure. \wxheading{Derived from} @@ -40,6 +40,10 @@ your program is linked with). On Unix, pass \verb=--with-opengl= to configure. +\wxheading{Library} + +\helpref{wxGl}{librarieslist} + \wxheading{Window styles} There are no specific window styles for this class. @@ -138,7 +142,7 @@ isn't yet shown at this moment. \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.