lab 5 progress

This commit is contained in:
2022-04-25 19:10:06 -05:00
parent 75ac03dd08
commit bf5490504c
10 changed files with 405 additions and 26 deletions

View File

@@ -0,0 +1,31 @@
#ifndef triangle_h
#define triangle_h
/**
* @file triangle.h
* @author Trevor Barnes (barnestr@msoe.edu)
* @brief
* @version 1.0
* @date 2022-04-12
*
* @copyright Copyright (c) 2022
*
*/
#include "shape.h"
#include "matrix.h"
#include "x11context.h"
class Triangle: public Shape{
public:
// Triangle constructor
Triangle(int x0, int y0, int x1, int y1, int x2, int y2, uint32_t color);
Triangle(const Triangle& from);
~Triangle();
Triangle& operator=(const Triangle& rhs);
void draw(GraphicsContext *gc);
Shape * clone();
private:
Matrix * coords;
};
#endif