Page 1 of 1

about ZgameEditor

Posted: Thu Jan 31, 2013 11:16 am
by waste
hi all,

so i begin in using this fantastic tool, and i would like to know how it works !!

i'm coding in Delphi ( 7 , 2007 , XE2) and i know that it s a free pascal

project, for example , what 's going on when i select a mesh box (or other)

is it an openGL composant made with openGL instructions like

Code: Select all

glBegin( GL_TRIANGLES );
       glColor3f( 1.0, 1.0, 1.0 ); 
            glVertex2d( 2.0, -2.0 );
       glColor3f( 0.5, 0.5, 0.0 ); 
???

Re: about ZgameEditor

Posted: Thu Jan 31, 2013 12:45 pm
by Kjell
Hi waste,
waste wrote:i would like to know how it works !!
You can check out the source code on Google Code.

http://code.google.com/p/zgameeditor/so ... vn%2Ftrunk
waste wrote:what 's going on when i select a mesh box
If your GPU supports VBO's ( most do these days ), this part of the code is primarily responsible for rendering a mesh. And in case you're curious how a box mesh is generated, you can find that here.

K

Posted: Thu Jan 31, 2013 3:45 pm
by waste
thank you for the links, all what i was looking is there !

what a huge project !