& Script-and-Go code by Jeff Verkoeyen,
created 2003 *
BEGIN;
Reset; / Equivalent to LoadIdentity
DisableTextures; / Disables the textures
DrawLine(0,0,-80,30,0,-80); / Draws the line
END;
Workin' on a scripting engine
Hey everyone, I''ve started working on a scripting engine for OpenGL and it''s going along REALLY nicely. Here''s the commands you can use in it so far:
DrawLine
EnableTextures
DisableTextures
Reset
Each command can either take parameters or just be a normal command, for example, this code will draw an untextured line to the screen:
my goal with the engine is to make it so virtually anyone can do OpenGL, even if you don''t have a compiler (or you stink at programming, lol)
the rules of the engine are these:
1) You must begin your code with BEGIN
2) All commands must be ended with a semicolon (kinda like C++)
3) Comments include Long Comments and Line Comments, EX:
Long Comments begin with a & and end with a * and can go for multiple lines
Line Comments are just / and can be placed anywhere in a line and will comment everything from that point on to the end of the line
4) All commands that have parameters must have the parameters inside of parenthesis ( )
5) Any command without parameters must NOT have any parenthesis....that should make logical sense, lol
6) Any errors found in the code will generate an error inside the program, and then the program will quit (well, you have to handle the quitting and do it however you prefer)
7) All programs MUST end with END
So, yah, I''m hoping to get this finished by Monday, because I''ll be using it in my games from now on probably to quickly be able to test OpenGL code without having to recompile anything
lemme know what you think, and I''m looking for ideas of more commands I should put in the engine......
Link //For the latest on all of the IVGDA projects!
If you don''t have variables, or program control constructs (loops, if-then, etc) then you''ll have to manually specify every single openGL call. *shudder*.
But... but that''s what HITLER would say!!
But... but that''s what HITLER would say!!
coulda sworn I said I just started....hmm, I must be dilusional....
considering I started the engine TODAY, I think I should be given a tiny bit of slack.......lol, I promise there''ll be loops, and I''ll try to implement (emphasis on try) variables....although, now that I think about it, it''d be easier to implement variables than loops, cuz with loops, i have to jump around the file......hmmmm, I''ll think about it, heck, I''ve got quite a few more decades to work on it, lol
Link //For the latest on all of the IVGDA projects!
considering I started the engine TODAY, I think I should be given a tiny bit of slack.......lol, I promise there''ll be loops, and I''ll try to implement (emphasis on try) variables....although, now that I think about it, it''d be easier to implement variables than loops, cuz with loops, i have to jump around the file......hmmmm, I''ll think about it, heck, I''ve got quite a few more decades to work on it, lol
Link //For the latest on all of the IVGDA projects!
March 15, 2003 08:54 AM
I think he was commenting on the fact that you said you hopped to have it finished by Monday...
well, i would have, but now i''m not sure, my mom keeps kicking me off the computer saying "You spend too much time on the computer" blah blah blah blah blah! sheesh, I can''t wait to get a programming job, so then i''ll actually get payed to work and have a reason to program all the time
there''s nothing i like better than programmin''
Link //For the latest on all of the IVGDA projects!

Link //For the latest on all of the IVGDA projects!
March 16, 2003 04:02 AM
you should listen to your mom, she''s a wise person 
but have you tried to look at the source of other scripting engines? it could be usefull to see how they did it.

but have you tried to look at the source of other scripting engines? it could be usefull to see how they did it.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement