Skip to content

My first project with openGL, learning how to render 2d and 3d objects, load textures, play sounds etc. with openGL (glfw and glew)

License

Notifications You must be signed in to change notification settings

DeeJack/opengl_first_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenGL First Project

My first project with openGL, learning how to render 2d and 3d objects, load textures, play sounds etc. with openGL (glfw and glew).

I learned OpenGL with the youtube channel The Cherno, so I took ispiration from his code (in other words, there may be some similar/identical code in some parts). Other resources I used:

I made several tests to... test what I can do with OpenGL, and they can be selected by the menu created with ImGUI.
The dependencies are:
- GLFW
- GLEW
- stbimage (image loading)
- glm (math stuff)
- irrKlang (audio)

The tests are created include:
- Sorting algorithms visualization (for now insertion sort and bubble sort)
- 2d and 3d rendering
- Camera movement with mouse and keyboard
- Texture loading

Issues:
- When changing positions and data of the shapes, I create another vertex buffer object with the full datas, instead of just adding another buffer object to the array object, since I don't understand how to do that.
- Everything calls a draw function, I have to learn batch rendering.

TODO:
- Rearrange code for the Pong game into more classes
- Smooth movement for the rackets in the Pong
- Load textures from blender
- Render a sphere

Test examples

Pong example

Pong example

Sort example

Bubble sort example

Seven segment display example

Seven segment display example

Others examples

Others examples

About

My first project with openGL, learning how to render 2d and 3d objects, load textures, play sounds etc. with openGL (glfw and glew)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published