Skip to content

thitcc/opengl-kitchen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenGL Kitchen

Vídeo AB1

Vídeo AB2

Prerequisites

  • C Compiler
  • OpenGL, GLUT and GLEW
  • freeglut.dll in the same folder as main.c

How to compile and run by hand (Windows)

To compile, use the following command (remember to change the path to the freeglut library)

gcc main.c -o main -I"Your path to \freeglut\include" -L"Your path to \freeglut\lib" -lfreeglut -lopengl32 -lglu32 -lm

Once compiled, use the main file to run

./main

How to use Makefile

If you want, and you have make installed, you can change the freeglut path in the Makefile to use the make command. This command will compile and run the program in sequence.

make

Controls

Movement

Mouse -> Look around

W, A, S, D -> Move respectively to: Front, Back, Left, Right

SPACE, C -> Move respectively to: Up, Down

Objects

P opens the door

J opens the window

L enables the light

K disables the light

About

Computer graphics academic project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published