Lab5 setup

This commit is contained in:
2022-04-05 10:38:11 -05:00
parent 810e0274b2
commit 71744fb0ac
9 changed files with 882 additions and 0 deletions

26
Lab5/gcontext.cpp Normal file
View File

@@ -0,0 +1,26 @@
/* This is an abstract base class representing a generic graphics
* context. Most implementation specifics will need to be provided by
* a concrete implementation. See header file for specifics. */
#define _USE_MATH_DEFINES // for M_PI
#include <cmath> // for trig functions
#include "gcontext.h"
/*
* Destructor - does nothing
*/
GraphicsContext::~GraphicsContext()
{
// nothing to do
// here to insure subclasses handle destruction properly
}
//does nothing
void GraphicsContext::drawLine(int x0, int y0, int x1, int y1){}
void GraphicsContext::drawCircle(int x0, int y0, unsigned int radius){}
void GraphicsContext::endLoop()
{
run = false;
}