Some basic examples of rendering 2D and 3D geometry using C++ and OpenGL.
The app is made while learning myself game programming by following tutorials made by TheCherno on YouTube.
The app requires Windows and Visual Studio to run.
- Git
- Visual Studio (Windows)
- Clone the repository:
git clone https://github.com/taardal/opengl-examples
- Open the solution file in Visual Studio:
opengldemo.sln
- Uncomment the example to run in
opengldemo/src/Main.cpp
:
application->PushLayer(new TriangleLayer());
//application->PushLayer(new TextureLayer());
//application->PushLayer(new Texture3DLayer());
//application->PushLayer(new TexturedCubeLayer());
- The Cherno: Game Engine Series (YouTube)
- The Cherno: OpenGL (YouTube)
- The Cherno: C++ (YouTube)
- OpenGL Tutorial (Website)
- Learn OpenGL (Website)