Giter VIP home page Giter VIP logo

gldemoplatform's Introduction

GLDemoPlatform

基于Glitter项目搭建的面向对象OpenGL测试平台。

不需要写多个main函数,整个项目基于模板类和模板方法**搭建。 如果想要实现自己的渲染效果,只需要构造一个class,让这个class继承GLApplication这个类,然后在main函数里修改GLApplication指针指向的对象即可。

如果要提升更大的自由度,可以把GLApplicationlaunch方法改成virtual function,让子类重写这个方法。

Shader文件可以考虑写在Shaders文件夹中,用ShaderUtils这个类来处理.glsl文件

OpenGL相关的依赖(glfw、glad等)全都包含在Vendor文件夹中,因此不需要格外引入,直接根目录load cmake即可。

gldemoplatform's People

Contributors

fuwei-fighting 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.