For today’s tutorial, we’re covering drawing a teapot in openGL, with both rotation and translation! A link to the code needed for today’s tutorial is here:Lab6.cpp
Also, I’ve been having difficulties figuring out how to use the ‘+’ operator in C++ with pointers. As a result, I’ve changed the Vector3.cpp and .h files to use references instead of pointers. I’ll post an updated version with pointers once I’ve resolved this. This files can be found here: Vector3.h, Vector3.cpp
You will have to create your own makefile for this class, to start off, and I will answer any questions you have, and help with any compiling issues. Also, #pragma once is from creating the Vector3.h in Visual Studio. To my knowledge, it should do the same as #ifndef, but, if this is not the case for you, switch it to using:
#ifndef VECTOR3_H
#define VECTOR3_H
…code…
#endif

Add A Comment