
6 1. Getting Started
// Initialize Graphics
graphics.initialize(hwnd, WINDOW_WIDTH, WINDOW_HEIGHT, FULLSCREEN);
If a pointer to an object is used, then we might do something like:
// Graphics pointer
Graphics *graphics;
en the object is created by using new, as in:
// Create a Graphics object
graphics = new Graphics;
Once the object is created, we can access any of the public functions through the object
pointer with the -> operator:
// Initialize Graphics
graphics->initialize(hwnd, WINDOW_WIDTH, WINDOW_HEIGHT, FULLSCREEN);
Sometimes we declare a function in a class but we are not sure how to implement it at
the moment. For example, something that al