I am trying to make a game with OpenGL. It is based on some 2D maze code. The algorithm that makes the maze fills out an array of longs, setting bits that tell the drawing routines whether the current cell(array element) has a wall, door or empty space(perfect for a portal ) on each side. Converting this to 3D is very simple. All the 3D drawing routine has to do is go through the array and draw walls. This is very slow.
I thought about using ray casting, but the code that I came up with is too slow and any code that I found uses assembly(I do not understand assembly).
What I need to know is if there are any OpenGL portal tutorials and/or examples (with working code! ) out there? I have not been able to find any. While I understand how portals work, I have trouble putting theory to code.
I am using an iMac with CodeWarrior C/C++. This should not be a problem since OpenGL is cross platform, but this is important info anyway.
Thanks in advance,