GameMonkey Script

GameMonkey Script Forums
It is currently Sun Jan 20, 2019 11:40 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 

what do you think?
interesting 67%  67%  [ 2 ]
ok 33%  33%  [ 1 ]
boring 0%  0%  [ 0 ]
Total votes : 3
Author Message
PostPosted: Tue Aug 19, 2008 1:31 pm 
Offline

Joined: Tue Aug 19, 2008 12:46 pm
Posts: 1
Hi..
I have created program that parses openGL functions and constants from gl.h into c++ binds for game monkey. So you can use most of openGL functions in game monkey script.
I have also created glut program, that runs this script and automatically reloads file if it is changed. So you can edit script in text editor, and see result in realtime just by pressing ctrl+s.

example script: http://psycho.mypage.sk/projects/gmRealtimeGL/test.gm (see header for how-to)
viewer: http://psycho.mypage.sk/projects/gmReal ... timeGL(exe).rar
viewer+parser source, and exe: http://psycho.mypage.sk/projects/gmReal ... timeGL.rar

It's nothing serious, I only did it for fun and it was created in about 5 hours, so the code is not much polished (hm, how to register globals from c++ other than running script?). But it works (mostly :]).
Btw, I am using game monkey for my 2d engine (all-purpose quickly-make-anything engine for my own projects).

I'd love to hear any reactions, good or bad, drop comment or message me, thank you.. (or if you want to discuss anything gamedev related)

psycho
http://psycho.mypage.sk/


Top
 Profile  
Reply with quote  
PostPosted: Tue Aug 19, 2008 9:28 pm 
Offline

Joined: Fri Jan 14, 2005 2:28 am
Posts: 439
very cool, great way to play with opengl stuff and get immediate feedback

about your question

Code:
pMachine->GetGlobals()->Set(pMachine,"GL_VERSION_1_1",gmVariable(1));
pMachine->GetGlobals()->Set(pMachine,"GL_ACCUM",gmVariable(0x0100));


Top
 Profile  
Reply with quote  
PostPosted: Wed Aug 20, 2008 10:11 am 
Offline

Joined: Mon Dec 15, 2003 1:38 pm
Posts: 708
Nice one psycho, that is pretty cool! I must admit I wasn't paying attention when you said 'automatic change detection' and was delighted to see the changes occur as soon as I hit Ctrl-S in my editor. ...And welcome to the forum :)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group