OpenGL Code
W
e will be placing up to date code here for viewing and download. Our current
C/OpenGL code skeletons are online now.
'cabin.c' - [download]
#include <GL/glut.h>
void beamSides(){
/*here would be the code for a single side of our logs */
}
void beam() {
/*here is where we put together our actual beam that makes up half of a log peice*/
}
void log() {
/*construction of the cylindar and the end peices of the log are in this block of code along with putting these on to the beams we previously created.*/
}
void window() {
/*windows of various dimensions. These windows may need to be made out of several peices.*/
}
void door() {
/*several doors are to be placed throughout the cabin. These doors may need to be make out of several pieces.*/
}
void wall() {
/*this section is constructed out of a series of logs stacked on top of each other. These will be adjustable in length by the parameters called, although we haven't worked out the exact parameters yet.*/
}
void roof() {
/*here we will use a collection of smaller beams to create a single side of the roof.*/
}
void cabin() {
/*this is where the majority of the work actually takes place, we will be putting together all of the elements we just built and arranging them as we want them.*/
}
void frame() {
/*our cabin will be sitting in a very hilly terrain so we need to have some way of supporting it in this environment.*/
}
void furniture() {
/*this constructor will probably be located outside of this file and inported in because of it's complexity.*/
}
void display(){
/*here is where all of the components, from inside and outside will be put together, including our terrain. We will put these all here and then instead of calling a few functions in main we can limit it down to just one*/
}
void init() {
/*we all know what this file is.... i hope*/
}
void main() {
/*going to call the display function in here to build our lovely house.*/
}
void beamSides(){
/*here would be the code for a single side of our logs */
}
void beam() {
/*here is where we put together our actual beam that makes up half of a log peice*/
}
void log() {
/*construction of the cylindar and the end peices of the log are in this block of code along with putting these on to the beams we previously created.*/
}
void window() {
/*windows of various dimensions. These windows may need to be made out of several peices.*/
}
void door() {
/*several doors are to be placed throughout the cabin. These doors may need to be make out of several pieces.*/
}
void wall() {
/*this section is constructed out of a series of logs stacked on top of each other. These will be adjustable in length by the parameters called, although we haven't worked out the exact parameters yet.*/
}
void roof() {
/*here we will use a collection of smaller beams to create a single side of the roof.*/
}
void cabin() {
/*this is where the majority of the work actually takes place, we will be putting together all of the elements we just built and arranging them as we want them.*/
}
void frame() {
/*our cabin will be sitting in a very hilly terrain so we need to have some way of supporting it in this environment.*/
}
void furniture() {
/*this constructor will probably be located outside of this file and inported in because of it's complexity.*/
}
void display(){
/*here is where all of the components, from inside and outside will be put together, including our terrain. We will put these all here and then instead of calling a few functions in main we can limit it down to just one*/
}
void init() {
/*we all know what this file is.... i hope*/
}
void main() {
/*going to call the display function in here to build our lovely house.*/
}
