Hi Carsten,
yes, by bad...
the HWND creation was done AFTER the passiveWindow::init()
I corrected it and it works.
Thanks,
BTW, there is a bug in the IDBuffer sample, the Color4ub
create_new_color() method should be :
if(_ci > 1)
{
_ci--;
}
else if(_cj > 1)
{
_cj--;
_ci = 255;
}
else if(_ck > 1)
{
_ck--;
_ci = _cj = 255;
}
else
{
cerr << "Cdrawing::create_new_color() NO MORE COLOR FREE !!!!
TOO MANY OBJECTS ... Gloups " << endl;
// Note that we can extend to 255^4 objects with the alpha
channel
}
as the existing code only deal with 255*3 colors, not 255^3
Stephane
>>> [EMAIL PROTECTED] 27/08/2008 12:24 >>>
Hello Stephane,
Stephane Routelous wrote:
> if i add
> glEnable(GL_DEPTH_TEST);
> before
> _window->render(_ID_renderAction);
> it seems to work.
>
> Why do I have to do that ?
> It's not handled internally by the framework ?
> (confused...)
it is called from Window::setupGL(), which sets the assumed OpenGL
state
and is called from PassiveWindow::init().
It looks as if that call happens without the context being made current
in your init() function, so it might go to the wrong context or is
ignored altogether.
regards,
Carsten
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users
______________________________________________________________
Reputation Resources Results
http://www.rwdi.com
______________________________________________________________
This communication is intended for the sole use of the party to whom it
is addressed and may contain information that is privileged and/or
confidential. Any other distribution, copying or disclosure is strictly
prohibited. If you have received this e-mail in error, please notify us
immediately by telephone (1-519-823-1311) and delete the message without
retaining any hard or electronic copies of same.
RWDI scans outgoing emails for viruses, but makes no warranty as to their
absence in this email or attachments.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users