Skip to content

Jack-0/OpenGLSandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenGL Sandbox

Writing code to learn OpenGL via https://learnopengl.com/.
The project has now turned into a sort of small game engine. 🙈

Description

The code is compiled using cmake. Code compiles and runs on both Linux and Windows. include files maybe git submodules

How to install on linux

  1. git clone https://github.com/Jack-0/OpenGLSandbox
  2. cd OpenGLSandbox
  3. git submodule update --init --recursive
  4. mkdir build
  5. cd build
  6. cmake ..
  7. make -j7
  8. ./OpenGLSandbox

Dependencies

  • GLFW
  • ASSIMP
  • GLAD
  • GLM
  • harfbuzz (macos brew install harfbuzz)

Problems and solutions 🧐

Clion (project file is not linking correctly)

  1. When building using CLion it maybe necessary to delete cmake-build-debug
  2. Then right click within the project explorer and click reload cmake project

M1 Macos

Builds but hits a segfault, might be due to 5.2.5 assimp usage or arm arch

  • edit CMakeLists.txt to use assimp-5.2.5
  • cd build
  • cmake ..
  • make
  • open debugger lldb OpenGLSandbox
  • in lldb hit r to run

About

An OpenGL game engine endeavour

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published