Vadim Zeitlin
378a3872eb
use textures in the shared context to test how this works when using multiple windows with the same context
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-15 15:13:49 +00:00
Vadim Zeitlin
50f5d508a8
reorganized the code to put the logic in wxGLContext-derived class but keep the state in the window
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-15 00:54:32 +00:00
Vadim Zeitlin
1f602af615
rename the menu to avoid conflict with a standard Mac menu
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45387 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-10 16:51:52 +00:00
Vadim Zeitlin
264f22613c
refresh GL canvas itself, not the frame, when the GL context changes, otherwise it doesn't redraw under wxGTK1
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-10 00:02:15 +00:00
Vadim Zeitlin
b94d29a7a1
fix the sample to work under X11 (where a context can't be made current before the window is realized)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-09 23:03:54 +00:00
Vadim Zeitlin
43c742d005
1. switched to new wxGLCanvas API (not using the implicit context)
...
2. pruned everything not related to OpenGL, making the remaining code much
more readable
3. show using the same wxGLContext with multiple wxGLCanvases
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-09 22:54:40 +00:00
Vadim Zeitlin
8474a52c32
fix TestGLCanvas ctor (part of patch 1155132)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33105 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-27 18:08:08 +00:00
Dimitri Schoolwerth
5cf036d017
Fixed Open Watcom compilation of OpenGL samples; Code cleanup.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-15 04:21:10 +00:00
Julian Smart
2db98bf520
Applied patch [ 802596 ] warning and error free Open GL samples
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23491 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-11 07:20:55 +00:00
Vadim Zeitlin
2f6c54eb07
patch from Dimitri fixing a few memory leaks and unTABbing the sources
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-17 14:16:03 +00:00
Gilles Depeyrot
9d705dfa81
applied SourceForge patch #479670 (fixes for OpenGL samples) by Paul Thiessen
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12442 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-16 07:17:37 +00:00
Vadim Zeitlin
ec2995088d
fixes for cube sample from Paul Thiessen
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-10 16:37:33 +00:00
Julian Smart
8b089c5e8c
Moved wxGLCanvas to more normal positions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-28 08:22:57 +00:00