https://github.com/michochieng/opengl_sandbox
A collection of examples from learnopengl.com
https://github.com/michochieng/opengl_sandbox
opengl opengl-tutorial opengl3
Last synced: 3 months ago
JSON representation
A collection of examples from learnopengl.com
- Host: GitHub
- URL: https://github.com/michochieng/opengl_sandbox
- Owner: MichOchieng
- Created: 2024-12-29T07:05:32.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-02-23T19:22:25.000Z (4 months ago)
- Last Synced: 2025-02-23T20:19:17.400Z (4 months ago)
- Topics: opengl, opengl-tutorial, opengl3
- Language: C++
- Homepage:
- Size: 287 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenGL Sandbox
A collection of examples from [learn OpenGL](https://learnopengl.com)## Requirements
[Conan](https://conan.io/) \
[CMake](https://cmake.org/) \
C Compiler of your choice:
- [GCC](https://gcc.gnu.org/)
- [MSBuild](https://github.com/dotnet/msbuild)
- [Apple Clang (comes with XCode)](https://opensource.apple.com/projects/llvm-clang)
## Setup### Mac OS
#### Install Git##### Xcode
Apple ships a binary package of Git with [Xcode](https://developer.apple.com/xcode/)##### Homebrew
Install [homebrew](https://brew.sh/) if you don't already have it, then:```bash
brew install git
```
#### Install Conan
##### Python (Recommended as python is needed)
```bash
pip install conan
```
##### Homebrew
```bash
brew install conan
```
##### Adding a Profile to Conan
Once Conan is installed create a profile:
```bash
conan profile detect
```
#### Install Cmake
```bash
brew install cmake
```
## Installing dependancies and Building files
On a fresh pull from GitHub run the following in the root directory:
```bash
conan install . --build=missing
```
Use Cmake to build the files with:```bash
cmake --preset conan-release
```
Followed by
```bash
cmake --build --preset conan-release
```
Now you can run the build:
```bash
%% Inside the Build Directory %%
./hello_triangle```