VBGamer |
|||||||||||||||||||||||||||
RE: Revolution engine Adam Hoult (1 reply, 0 views) (2000-May-19) Ok first things first,
The line of code you pasted there, are sort of pseudo code which shows what the -parameters are and what the OBJECT is that the function is called from.
You see all he is saying is that, "this is how it's laid out" and you need to replace the various pieces with the actual parameters and objects.
So you would actually write somthing like.
Call Engine.Inf_SetupView(450,30)
Ok your point about the engine, well this is a little complex to explain but i will do my best (and nobody is going to laugh at you, we all started somewhere =)
Right well basically VB Revolution 3D (along with many others) is what we call a Wrapper. It basically wraps up all the difficult or laborious tasks that we need to do in order to write a game. For example, i could write a wrapper function which all the VB user has to do is type Engine.OpenDirectDraw 640,480,16 and DirectDraw would be initialised and away i go. Now to do this all from scratch in my game, would be about an extra 20 complicated functions to learn. Thats just a small example, but the engine can do other things, like loading 3d models, creating terrains etc etc. Basically it can do anything, not just wrap up functions we already have access to, but actually write new functions, for doing things that we dont have access to directly, for example raypicking in IM, there could be a function in the engine which does that, whereas DirectX does not give us a function to do this, so we would have to write this very complicated system ourselves. Now the engine, (in this case is in a DLL) is basically compiled code, think if it as an exe. Now imagine that each function which we can call (i.e our OpenDirectDraw function) was an exe. Your game would call these exe's when they need to. So basically the DLL is required, as your game (in exe form or inside the VB IDE) calls the functions inside it at runtime.
Sorry if that sounded crap, and i don't want to insult your intelligence, but i'm not sure how much you know about all this sort of stuff, so I apologise in advance if it was a little bit to beginnerish for you =)
Stick at it, and post here if there is anything else you want help with.
Adam Hoult
SysOp
|