4 opengl windows in one app

Started by
15 comments, last by TheMatrixXXX 22 years, 5 months ago
hi all can someone tell me why my app only show one of four windows after start? when i start another ogl app it works why not in one app? i need this to create a level editor thx --=[[TheMatrixXXX]]=--
--=[[TheMatrixXXX]]=--
Advertisement
You need to create 4 different OGL context (one by window) and bind them before drawing.
That can be quite heavy on memory since each context will need copies of the textures.

Often apps will just have one opengl context, one window, and manually handle the different parts inside using the stencil buffer or some other technique.
if you use GLUT library, you can use subwindows creation utility
supplied with it.
i have the handles in the form class ( i use borland c++ builder 5.0)
but i know thats heavy in memory

can you tell me how to use the glut library in borland c?
i get an error cause it is the M$ lib format

thx

--=[[TheMatrixXXX]]=--
--=[[TheMatrixXXX]]=--
I thought there was a converter or a lib fixer that came with borland to do that. Have a look in the dirs of ur compiler.
PsYvIsIoN
glViewport?
@anonymous poster:
what do you mean with "glViewport?" ?


how can i create different OGL contexts?
why don´t work it with the contexts in the form classes?
they are different i think cause that ar different windows


thx
--=[[TheMatrixXXX]]=--
--=[[TheMatrixXXX]]=--
Anon''s right, why not use glViewport?
i use glViewport
i have problems with the handles not with the viewport
i have one window of four because the next initialized window overwrites the previous handle i think

or what do you mean with glViewport? can i split a gl window in four parts like in a level editor?

thx
--=[[TheMatrixXXX]]=--
--=[[TheMatrixXXX]]=--

This topic is closed to new replies.

Advertisement