Becoming a slave to the open graphics library.
This project is configured for Visual Studio 2022 (x64). All necessary dependencies (GLFW and GLAD) are included in the repository.
-
Clone the Repository:
git clone https://github.com/j-2k/Learn-OpenGL.git
-
Open the Project:
Navigate to the folder and double-click LearnOPGL.sln. -
Set Configuration:
Ensure the top toolbar in Visual Studio is set to Debug (or Release) and x64. -
Build and Run:
Press F5 or click the Local Windows Debugger button.
Please take note of the vertex slot rules when making new shaders!
click the link to check the file: vertex_layout.h
//Please abide by the rules of the vertex slots!
//This might change in the future make sure to check the vertex_layout.h file!
namespace VertexSlot {
constexpr int Position = 0;
constexpr int Color = 1;
constexpr int UV0 = 2;
constexpr int Normal = 3;
//constexpr int Tangent = 4;
//constexpr int UV1 = 5;
}This section will highlight what are the required dependencies & how to get them, for this project. This is here in the case that I decide to git ignore the dependencies folder.
Required Dependencies & Folder Architecture:
-
OpenGL 3.3 (Core Profile)
-
GLM (Math) - https://github.com/g-truc/glm/tags
- I used glm-0.9.8.5 I think from the learnopengl docs
-
GLFW (Window & Input Management) - https://www.glfw.org/download.html
- Version 3.4 or higher
- Just download the 64-bit Windows binaries (pre-compiled).
-
GLAD (Extension Loader) - https://glad.dav1d.de/
- Check the image below. First set the red boxes, then finally, press generate & download the glad.zip file.