I was going thru' the constructor of wxGLCanvas and came across this third overloaded form .
void wxGLCanvas(wxWindow* parent, wxGLContext* sharedContext = NULL, wxWindowID id = -1, const wxPoint& pos, const wxSize& size, long style=0, const wxString& name="GLCanvas", int* attribList = 0, const wxPalette& palette = wxNullPalette)
What does sharedcontext indicate ? Can anyone point me to a practical example where this could be useful.
wxGLContext example in a wxGLCanvas
wxGLContext example in a wxGLCanvas
Karthik.
- Ryan Norton
- wxWorld Domination!
- Posts: 1319
- Joined: Mon Aug 30, 2004 6:01 pm
Re: wxGLContext example in a wxGLCanvas
sharedcontext is used to share resources (display lists, etc.) with another context (I.E. another canvas for now).akkumar wrote:I was going thru' the constructor of wxGLCanvas and came across this third overloaded form .
void wxGLCanvas(wxWindow* parent, wxGLContext* sharedContext = NULL, wxWindowID id = -1, const wxPoint& pos, const wxSize& size, long style=0, const wxString& name="GLCanvas", int* attribList = 0, const wxPalette& palette = wxNullPalette)
What does sharedcontext indicate ? Can anyone point me to a practical example where this could be useful.
For a more specific explanation -
http://developer.apple.com/qa/qa2001/qa1248.html
I'll also add some docs for wxGLContext to head.
[Mostly retired moderator, still check in to clean up some stuff]