Tao.Platforms.Windows / SimpleOpenGlControl / Textures
Submitted by Terin on May 14, 2008 - 7:48pm.
I'm having some huge issues trying to display a Texture. My code is correct, but I think it's not showing because the context changes fairly often. (I reinitialize the context when a resize occurs)
Is there some better way to do this? I heard that you could use some wglShareLists or something to share a texture between contexts, which would be incredibly useful at this point.
Any examples/help would be VERY helpful!!!

WHY do you reinitialize the
WHY do you reinitialize the context? A new context is a new, blank set of OpenGL data and instructions, so if your design requires sharing a context, you should be using a single context (unless you're doing fancy stuff with multiple threads etc).
----------------------
Download Tao svn snapshot build
Experimental Tao rpms (OpenSUSE Build Service)
Is there a better way to
Is there a better way to stretch/reshape the current context, after the SimpleOpenGLControl gets sized? The problem is that I do something, but then, after it's initialized and the Window size changes (and the GLControl is docked/fill), so it will only draw within the original size and no larger.
Is there a way to access the context or dynamically resize the current context?
You can use glViewport to
You can use glViewport to set the size of the GL output.
----------------------
Download Tao svn snapshot build
Experimental Tao rpms (OpenSUSE Build Service)
You know, I was thinking
You know, I was thinking that, but just wasn't sure.
Thanks!