wblong / LearnOpenGL

LearnOpenGL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LearnOpenGL

Compiling steps

  1. Create conanfile.txt

query the required libs: https://conan.io/center/

[requires]
glfw/3.3.2
glad/0.1.34

[generators]
cmake
  1. Create a build directory:

    $ mkdir build && cd build
    
  2. Install dependencies (glfw -> glad -> opengl):

    $ conan install ..
    
  3. Configure the CMake project (Using MSVC 16 in this example):

    $ cmake .. -G "Visual Studio 16 2019"
    
  4. Build it:

    $ cmake --build . --config Release
    
  5. Run the application:

    $ .\bin\learnopengl01.exe
    

01

你好,窗口

result

02

你好,三角形

result

03

着色器

result

About

LearnOpenGL


Languages

Language:C++ 93.7%Language:CMake 3.7%Language:Batchfile 2.6%