Visually the GLView should be behaving like you would expect of any
other widget, it is not supposed to draw anything outside of its
allocated area. Can you post the contents of your GLView draw() and
scale() routines?
Note that for efficiency reasons, AG_GLView only saves the GL matrices
and everything covered by GL_TRANSFORM_BIT (see OpenGL glPushAttrib()
man page for details), before invoking your draw() callback. For example,
to safely enable the depth test, you need to do:
void
MyDraw(AG_Event *event)
{
glPushAttrib(GL_DEPTH_BUFFER_BIT);
glEnable(GL_DEPTH_BUFFER);
/* ... */
glPopAttrib();
}
On Thu, Feb 04, 2010 at 08:08:29PM +0000, Ash wrote:
> Greetings,
> is it possible to use AG_GLView in some windows but not the others? Also, is
> it
> possible to use AG_GLView and keep window controls (caption,
> minimize/maximize
> etc)?
>
> I tried creating GLview in one window out of several, but it painted in all
> windows at once - is there a way to evade this?
>
> _______________________________________________
> Agar mailing list
> [email protected]
> http://libagar.org/lists.html
_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html