progress at term deadline

This commit is contained in:
2022-05-13 22:28:41 -05:00
parent fecf12c97a
commit e45e884938
6 changed files with 137 additions and 18 deletions

View File

@@ -5,15 +5,41 @@
class ViewContext{
ViewContext();
void model_to_device();
public:
// Contructor - takes in current window width and height to account for origin
ViewContext(int width, int height);
// Destructor
~ViewContext();
void model_to_device(Matrix* coord);
// Rotation - Around center of screen
void rotate(int deg);
// Scaling - Around center of screen
void scale(int mult);
// Translation
void translate(int dx, int dy, int dz);
// Rotation - Around center of screen
// Scaling - Around center of screen
// Translation
// Reset
// Invert Colors
Matrix* compMatrix;
// Reset
void reset();
// Undo previous transform
void undo(Matrix* coord);
// Invert Colors
//void invert();
private:
// Window pixel width
int width;
// Window pixel height
int height;
// Matrix containing the composite of all current transformations
Matrix* compMatrix;
// Matrix containing the previous transformation
Matrix* prevTransform;
};
#endif