-
-
-
GLFW
- Install glfw in Linux (Debian based)
sudo apt install libglfw3 libglfw3-dev
- Install glfw in Linux (Debian based)
-
GLAD
- Go to glad link
Language
:C/C++
Specification
:OpenGL
gl
:Version 4.5
gles1
:Version 1.0
gles2
:Version 3.2
Profile
:Core
- Select
Add All
under extensions and click Generate and Download the zip file generated. - Copy contents of
include/
folder in the downloaded directory to/usr/local/include/
src/glad.c
should be always compiled along with your OpenGL code
-
GLM
- Download the zip file from glm link
- Unzip it and copy the folder
glm/glm/
to/usr/local/include
-
GLUT
- Install glut in
Linux
(Debian based)sudo apt install freeglut3
- Install glut in
-
GLEW
- Install glew in
Linux
(Debian based)sudo apt install libglew-dev
- Install glew in
-
-
It is recommended to use GLFW+GLAD+GLM on all OSes.
-
Ubuntu users can also install these libraries using apt-get.
-
-
-
Compile
- generate executable using makefile
make
- generate executable using makefile
-
Run
- execute
Sample2D
- execute
-
Controls
S
move canonUP
F
move canonDOWN
space
canonSHOOT
A
rotate canonANTI CLOCKWISE
D
rotate canonCLOCKWISE
LEFT CTRL
move green bucketLEFT
RIGHT CTRL
move green bucketRIGHT
LEFT ALT
move red bucketLEFT
RIGHT ALT
move green bucketRIGHT
q
gameQUIT
-
clean
- removes executable for a fresh compilation
make clean
- removes executable for a fresh compilation
-
-
Notifications
You must be signed in to change notification settings - Fork 0
sudheerachary/OpenGL-2D-LaserShootingGame
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Laser Shooting Game
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published