Just going through learning opengl. https://learnopengl.com/ Creating a c++ wrapper for opengl. Supposed to make it use c++ syntax better and print errors to help debugging. Uses GLFW 3.3 and glad. Utils uses stb_image, stb_true_type as wrappers for STB_IMAGE and STB_TRUETYPE from https://github.com/nothings/stb by Sean Barrette.
TOODS:
- Change utils functions that generate 2d coords to gen pseudo-2d in 3d coords and compare performance.
- Auto-change sens variables based on fps.
- Change references to const char * to also allow std::string_view and convertibles to it.
MAYBES: ?. Use filesystem api to get filenames for test shaders
Go to https://github.com/Rashnan/wrap_g.git and download the zip or clone the repo using git.
If using vsocde/vscodium fix the c++ compiler path, include path and the gdb path to your specific pc.
Note that wrap_g only supports opengl 4.5+ and uses both glad and GLFW. Download the appropriate glad header and source files from https://glad.dav1d.de/ and add them to the include path.
(Optional) Compile the glad.c into a library (libglad.a) and add it to the compiler linker args (add -lglad).
Download GLFW3 from https://www.glfw.org/ and also add it to the include path.
Now start your project in the index.cpp file.