Coder Social home page Coder Social logo

gllab's Introduction

基于OpenGL的简易渲染器

开始

需要的配置
  • CMake 3.0 以上版本
  • C++ 17 支持的编译器

程序内集成第三方依赖库,不需要额外下载依赖

经过测试的编译器
  • MinGW-W64 8.1.0

  • MSVC-2022-amd64

构建

对于满足要求的工具链,可以在主目录下使用以下命令进行构建

cmake -S . -B build 
cd build
cmake --build . --config Debug -j 8

工程结构

GLlab2
    |--bin
    	|--Debug
    	|--Release
    |--ext
    |--shader
    |--src
        |--common.h
        |--common.cpp
        |--loadShader.h
		...
        |--main.cpp
    .editorconfig
    CMakeLists.txt

默认工作目录位于/bin/Debug目录下

使用的第三方库

glfw 开源跨平台窗口库

glad 可用于OpenGL的函数加载库

glm 基于 GLSL规范的 C++ Header-only数学库

imgui 轻量C++界面库

stb_image 单头文件图片加载库

tinyobjloader 单头文件obj加载库

gllab's People

Contributors

ayanami7 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.