pgvalle / OpenGLCppTemplate

A simple C++ and OpenGL project template to quickstart your graphics programming without hassles. I hope you enjoy it.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

C++ OpenGL Template Project

Components:
    1. OpenGL:  https://www.opengl.org/ (Obviously)
    2. GLFW:    https://github.com/glfw/glfw (from what I know, we can't run away of needing GLFW or an equivalent)
    3. linmath: https://github.com/datenwolf/linmath.h (a simple linear algebra library)

Building:
    First, make sure you have cmake installed.
    Windows installer: https://github.com/Kitware/CMake/releases/download/v3.26.1/cmake-3.26.1-windows-x86_64.msi

    Go to you terminal/cmd and move to the root directory of the cloned repo.
    Then type one of the following commands depending on your platform:
        - linux/macos:     cmake -S. -Bbuild
        - windows (mingw): cmake -S. -Bbuild -G"MinGW Makefiles"
        - windows (msvc):  cmake -S. -Bbuild -G"Visual Studio {major-version-number} {release-year}"
    
    This command should take a while to finish if you don't have glfw installed. But don't worry if you don't.
    Now, if no errors happened, just type:
        cmake --build build

    You should see and be able to execute "exampleProgram" inside the newly created build directory.

PLEASE READ THIS:
    Jesus loves you and wants to help, protect, bring happiness and save us from hell.
    Give him the chance. Give yourself the chance!
    If you remotely feel something, please watch this: https://www.youtube.com/watch?v=ZXqQGuAt7SE.
    It's just 3 minutes long.

About

A simple C++ and OpenGL project template to quickstart your graphics programming without hassles. I hope you enjoy it.

License:MIT License


Languages

Language:C 97.7%Language:C++ 2.0%Language:CMake 0.3%