Post by davy on Aug 10, 2006 2:13:51 GMT -5
Ok, here are the commands my dll supports as of now...
SetScreen2d(x,y,width,height) for setting the screen up for 2d rendering and creating a viewport from dimensions
SetScreen3d(x,y,width,height) for setting the screen up for 3d rendering and creating a viewport from dimensions
Alert("") and MsgBox("") for dialog popups
Time$ for getting the current time from your computer
D#=Distance2d(x1,y1,x2,y2)
For returning the 2d distance between point1 and point2
D#=Distance2d(x1,y1,z1,x2,y2,z2)
For returning the 3d distance between point1 and point2
Asin(x), Acos(x), and Atan2(x,y) for extended trig functions
mciSendString("") for sending mci commands for extended media
Rnd2(Min, Max) for returning a random integer between min and max
Line(x1,y1,x2,y2) for drawing a 2d line from point1 to point2
Pset(x,y) for drawing a 2d dot at point (x,y)
Circle(x,y,radius) for drawing a 2d circle of the specified radius at location (x,y)
Now you can easily switch between SetScreen2d and SetScreen3d for easy combining of 2d and 3d data. This could be done before, but it required alot of code to do it, now its just two commands!
If anyone has any other ideas, or if they'd like to pitch in on this dll experiment, send them my way. I will upload this dll and most likely the source very soon. I might wait to add a few more things (such as possibly 3d spheres and boxes, my only concern is that texture mapping them wouldn't be an option because the code would be in the dll... If anyone has any solutions to this, please post them)
Also... I haven't done enough research, and I probably shouldnt even bring this up (as to not let anyone down if it fails...) I am currently scouring the internet for opensource, non-restrictive lisenced game engines to add to basic4gl. It would be a dll that is 100% geared towards 3d games with support of all the basic needs of a game writer. It would have to be fast too, use opengl, and be simple enough for me not to kill myself trying to figure out all of its workings. If anyone knows any that meet these needs or want to help with this project. Post me back.
SetScreen2d(x,y,width,height) for setting the screen up for 2d rendering and creating a viewport from dimensions
SetScreen3d(x,y,width,height) for setting the screen up for 3d rendering and creating a viewport from dimensions
Alert("") and MsgBox("") for dialog popups
Time$ for getting the current time from your computer
D#=Distance2d(x1,y1,x2,y2)
For returning the 2d distance between point1 and point2
D#=Distance2d(x1,y1,z1,x2,y2,z2)
For returning the 3d distance between point1 and point2
Asin(x), Acos(x), and Atan2(x,y) for extended trig functions
mciSendString("") for sending mci commands for extended media
Rnd2(Min, Max) for returning a random integer between min and max
Line(x1,y1,x2,y2) for drawing a 2d line from point1 to point2
Pset(x,y) for drawing a 2d dot at point (x,y)
Circle(x,y,radius) for drawing a 2d circle of the specified radius at location (x,y)
Now you can easily switch between SetScreen2d and SetScreen3d for easy combining of 2d and 3d data. This could be done before, but it required alot of code to do it, now its just two commands!
If anyone has any other ideas, or if they'd like to pitch in on this dll experiment, send them my way. I will upload this dll and most likely the source very soon. I might wait to add a few more things (such as possibly 3d spheres and boxes, my only concern is that texture mapping them wouldn't be an option because the code would be in the dll... If anyone has any solutions to this, please post them)
Also... I haven't done enough research, and I probably shouldnt even bring this up (as to not let anyone down if it fails...) I am currently scouring the internet for opensource, non-restrictive lisenced game engines to add to basic4gl. It would be a dll that is 100% geared towards 3d games with support of all the basic needs of a game writer. It would have to be fast too, use opengl, and be simple enough for me not to kill myself trying to figure out all of its workings. If anyone knows any that meet these needs or want to help with this project. Post me back.