-
Notifications
You must be signed in to change notification settings - Fork 0
cCamera
Defines a camera for use in a cScene. The camera allows all of the non-fixed objects in a scene to be moved without moving each individually.
cDoubleRect
Uses a cDoubleRect to define the x/y position of the camera, as well as its width/height; how much it can see in the scene.
double
A multiplicative zoom value (just like how a camera works in real life)
double
The rotation value of the camera, in degrees clockwise from the +x axis.
void initCCamera(cCamera* camera, cDoubleRect rect, double zoom, double degrees)
Initializes the camera with the given inputs.
void destroyCCamera(cCamera* camera)
Destroys/de-allocates a given camera. This isn't strictly necessary to run, as cameras aren't dynamically allocated, but in case you wanted to wipe the slate clean for whatever reason on a camera, it sets the values to rect = {0,0,0,0}, zoom = 0.0, degrees = 0.