summaryrefslogtreecommitdiffstats
path: root/dev/snowman/snowman.cc
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2021-09-20 18:15:14 -0500
committerMatt Strapp <matt@mattstrapp.net>2021-09-20 18:15:14 -0500
commit342403a02f8063903d0f38327430721d4d0ae331 (patch)
tree29d020a27bc16939c568dd4b29166566d1c0e658 /dev/snowman/snowman.cc
parentFix parenthesis (diff)
downloadcsci4611-5a8b6d8538618b144e39618350ad06a4d9e232fa.tar
csci4611-5a8b6d8538618b144e39618350ad06a4d9e232fa.tar.gz
csci4611-5a8b6d8538618b144e39618350ad06a4d9e232fa.tar.bz2
csci4611-5a8b6d8538618b144e39618350ad06a4d9e232fa.tar.lz
csci4611-5a8b6d8538618b144e39618350ad06a4d9e232fa.tar.xz
csci4611-5a8b6d8538618b144e39618350ad06a4d9e232fa.tar.zst
csci4611-5a8b6d8538618b144e39618350ad06a4d9e232fa.zip
Diffstat (limited to 'dev/snowman/snowman.cc')
-rw-r--r--dev/snowman/snowman.cc96
1 files changed, 48 insertions, 48 deletions
diff --git a/dev/snowman/snowman.cc b/dev/snowman/snowman.cc
index 77ffa4d..0b6ab5e 100644
--- a/dev/snowman/snowman.cc
+++ b/dev/snowman/snowman.cc
@@ -1,48 +1,48 @@
-/** CSci-4611 In-Class Example */
-
-#include "snowman.h"
-
-#include <iostream>
-#include <sstream>
-
-
-
-Snowman::Snowman() : GraphicsApp(1024,768, "Do You Want to Build a Snowman?") {
-}
-
-
-Snowman::~Snowman() {
-}
-
-
-void Snowman::UpdateSimulation(double dt) {
-}
-
-
-void Snowman::InitOpenGL() {
- // Set up the camera in a good position to see the entire scene
- proj_matrix_ = Matrix4::Perspective(60.0f, aspect_ratio(), 0.01f, 100.0f);
- view_matrix_ = Matrix4::LookAt(Point3(0,2,10), Point3(0,0,0), Vector3(0,1,0));
- glClearColor(0.2f, 0.6f, 1.0f, 1.0f);
-}
-
-
-void Snowman::DrawUsingOpenGL() {
- Matrix4 identity;
-
- // draws a set of axes at the world origin, since we are passing the identity
- // matrix for the "model" matrix.
- quick_shapes_.DrawAxes(identity, view_matrix_, proj_matrix_);
-
-
- Matrix4 S_ground = Matrix4::Scale(Vector3(40.0f, 0.2f, 40.0f));
- Matrix4 T_ground = Matrix4::Translation(Vector3(0.0f, -0.2f, 0.0f));
- Matrix4 ground_combo = T_ground * S_ground;
- quick_shapes_.DrawCube(ground_combo, view_matrix_, proj_matrix_, Color(0.8f, 0.8f, 0.8f));
-
-}
-
-
-
-
-
+/** CSci-4611 In-Class Example */
+
+#include "snowman.h"
+
+#include <iostream>
+#include <sstream>
+
+
+
+Snowman::Snowman() : GraphicsApp(1024,768, "Do You Want to Build a Snowman?") {
+}
+
+
+Snowman::~Snowman() {
+}
+
+
+void Snowman::UpdateSimulation(double dt) {
+}
+
+
+void Snowman::InitOpenGL() {
+ // Set up the camera in a good position to see the entire scene
+ proj_matrix_ = Matrix4::Perspective(60.0f, aspect_ratio(), 0.01f, 100.0f);
+ view_matrix_ = Matrix4::LookAt(Point3(0,2,10), Point3(0,0,0), Vector3(0,1,0));
+ glClearColor(0.2f, 0.6f, 1.0f, 1.0f);
+}
+
+
+void Snowman::DrawUsingOpenGL() {
+ Matrix4 identity;
+
+ // draws a set of axes at the world origin, since we are passing the identity
+ // matrix for the "model" matrix.
+ quick_shapes_.DrawAxes(identity, view_matrix_, proj_matrix_);
+
+
+ Matrix4 S_ground = Matrix4::Scale(Vector3(40.0f, 0.2f, 40.0f));
+ Matrix4 T_ground = Matrix4::Translation(Vector3(0.0f, -0.2f, 0.0f));
+ Matrix4 ground_combo = T_ground * S_ground;
+ quick_shapes_.DrawCube(ground_combo, view_matrix_, proj_matrix_, Color(0.8f, 0.8f, 0.8f));
+
+}
+
+
+
+
+