[phpBB Debug] PHP Warning: in file [ROOT]/common.php on line 122: require() [function.require]: Unable to allocate memory for pool.
[phpBB Debug] PHP Warning: in file [ROOT]/viewtopic.php on line 18: include() [function.include]: Unable to allocate memory for pool.
[phpBB Debug] PHP Warning: in file [ROOT]/viewtopic.php on line 19: include() [function.include]: Unable to allocate memory for pool.
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 554: include_once() [function.include-once]: Unable to allocate memory for pool.
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1042: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1042: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/session.php on line 1042: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4752: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4754: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4755: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4756: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
www.linderdaum.com • View topic - Direct OpenGL usage
Page 1 of 1

Direct OpenGL usage

PostPosted: February 24th, 2012, 9:07 am
by Michael
I have seen that it is possible to use LGL3 structure to call OpenGL functions directly during rendering, however this breaks something in the rendering. If you add a possibility to use OpenGL in such way it could prove to be very effective at allowing things such as debug rendering and other debug information. I am actually a bit confused why such feature was not implemented from the beginning.

Re: Direct OpenGL usage

PostPosted: February 24th, 2012, 4:40 pm
by SergeyK
Actually it is possible to use OpenGL rendering directly, however the renderer doesn't know itself how to track the GL API renderstate. You should tell the renderer to reset the tracked state via call:

Code: Select all
Env->Renderer->SetState( Env->Renderer->GetEmptyShader() );


This will reset the tracked OpenGL state do the "empty" one. Hereafter the engine will now the current state and will continue the rendering appropriately.