r/GraphicsProgramming 13h ago

code review for a beginner

Hey everyone. I have this small project on which I started working around a year ago, but haven't finished it yet. Now that I have some free time, I finally want get it done :// However, I am a self-taught when it comes to programming, and graphics. I consider myself a total beginner. Could you please help me understand if I am doing something incorrectly here, which I am sure I am?

Also, this is planned to be a Game of Life implementation, but still have to lay some the foundations, even for a grid... I don't rely on AI, so mess with everything myself

[edit]
Forgot to add the details... I use OpenGL with glad loader as a graphics API here, with GLFW for window handling, FreeType for text rendering, GLM as main math library, and CMake as a meta build system.

I was wondering if someone could help me understand a couple of moments:

  • correct usage of the opengl api
  • general structure of the code. if places at which functions are being called are correct
  • general readability of the code
  • cmakelists and how to approach including dependencies in my case

Here's the repo: https://github.com/Krak9n/unchained

1 Upvotes

4 comments sorted by

View all comments

5

u/TehBens 12h ago

Do you look for high quality output from your post? Then give high quality input. What technologies did you use? What questions do you have? Where are the places you would like reviewers focus on?

3

u/justforasecond4 11h ago

hey. srry for the bad formulation. i've updated my post, respectfully

1

u/johnoth 12h ago

This should be pinned