OOP and BasicGL

BlitzMax Forums/OpenGL Module/OOP and BasicGL

Nennig(Posted 2005) [#1]
Hello,
I have been looking at the BasicGL library that looks very promising.
However the samples provided donīt use OOP.
I tried to setup a scene with a simple textured plane using an object (Type....End Type).
But without success.....
Anyone kind enough to show me how to do that with BasicGL and Object Oriented Programming?

Thanks.


Tom(Posted 2005) [#2]
I doubt anyone knows enough about BasicGL to show you because of the lack of documentation. Maybe the authors can provide examples?


Nennig(Posted 2005) [#3]
Thanks Tom for your reply.

Yeah...
I bought Blitzmax because of the OOP stuff.
I donīt want to go back to pure procedural programming. Now, if anyone or the authors themselves can show me how to use this cool 3D module without having to renounce to the object oriented programming paradigm, I will register!


Red Ocktober(Posted 2005) [#4]
i'm no expert on this... but if you are planning on using any external lib with 'max... and it is based on OOP, you are going to have to 'unwrap' or expose the underlying methods anyway...

... so using BasicGL as i see it, saves you that step.

simply gather the functions you need into a 'Max Type and put together the associated methods... and make a 'max module out of it.

better illustrated here --> http://www.blitzbasic.com/Community/posts.php?topic=45176

good luck

--Mike


Nennig(Posted 2005) [#5]
Thank you, it looks indeed very interesting. Need to spend some thoughts...