Combining 2D OpenGL and 3D OpenGL

BlitzMax Forums/BlitzMax Programming/Combining 2D OpenGL and 3D OpenGL

Reda Borchardt(Posted 2009) [#1]
Hello,

I have two libraries that I wish to use for my editor. One uses glmax2d and the other uses 3D.

Is there a way to combine the two using deferred rendering. I am hoping that there is a way to combine the two buffers.

I am interested in any kind of solution. It doesn't matter if it's very slow.

PS: I am using Leadwerks. I would however be more than happy to switch to a different 3D module if that makes a difference.


ImaginaryHuman(Posted 2009) [#2]
You would probably need one or two caches of opengl state, ie to backup max2d state prior to going to leadwerks and to backup leadwerks state before going back to max2d. Then you'd restore the state before using a particular engine. It's a matter of figuring out what state each system needs/uses.


slenkar(Posted 2009) [#3]
have a look at minib3d it has functions for switching states