
493.7. The Graphics Class
// Programming 2D Games
// Copyright (c) 2011 by:
// Charles Kelly
// Chapter 3 Graphics Class v1.0
// graphics.cpp
#include "graphics.h"
//========================================================================
// Constructor
//========================================================================
Graphics::Graphics()
{
direct3d = NULL;
device3d = NULL;
fullscreen = false;
width = GAME_WIDTH; // Width & height are replaced in initialize()
height = GAME_HEIGHT;
}
//========================================================================
// Destructor
//========================================================================
Graphics::~Graphics() ...