lab 6 start

This commit is contained in:
2022-05-10 21:20:05 -05:00
parent 1523e62098
commit fecf12c97a
23 changed files with 1784 additions and 0 deletions

26
Lab6/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;
}