How to make this OOP?

BlitzMax Forums/BlitzMax Programming/How to make this OOP?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I agree in part with Gab, cs and wini, but to continue their comments, if all the functions are being passed the same first parameter ie
RotateCamera(Camera,rot):PositionCamera(Camera,x,y,z)
etc then its probably a case for an object, in the pure sence.

However, in the drive to never have a Global, I would also say that if you do have seven globals that are always to be used together, I would be very very tempted to put them into a Type, so as to have them in the same namespace, probably keeping them as Globals.

Once I'd done this, it then wouldnt be behond the relems of possibility, that I would also put the fuctions that used those globals inside that "Namespace" (ie Object)

It wouldnt be an Object in the This is an "Object" sence, ... but well you know what I mean