Coder Social home page Coder Social logo

glow's Introduction

OpenGL Object Wrapper (GLOW) -- a high-level layer for OpenGL.

With this side project, I want to provide a simple high-level interface to OpenGL's objects with the following goals in mind:

  1. simple resource management with automatic generation and deletion of OpenGL objects,
  2. object related functions should be related to the object without the need to bind the right object at the right time,
  3. catch potential errors or misuse of OpenGL functionality as early as possible,
  4. allow only access to core profile functionality, since I needed it at some point in time.

These goals should align with the main purpose of this framework: simple, effortless usage of OpenGL's functionality. However, it does not aim at providing some framework for GUI creation, etc. A OpenGL context has to be created independently by virtue of a context/window creation framework, like:

I only included a simple headless context for computations & testing.

This project is work in progress and will be extended over time. Most of the functionality included was implemented as it was needed by my own projects. Therefore, you cannot (or better should not) expect feature completness or stability of the interface.

Related work

This project is inspired by some other frameworks, which are perfectly fine, but lack some features or functionality that I want to have in my work. However, this framework is heavily inspired by these frameworks:

  • Pangolin (https://github.com/stevenlovegrove/Pangolin): Cross-platform GUI framework with OpenGL wrapper objects. Does not enforce the usage of core functionality. Furthermore, in some parts the code might not run on "pure" core profile contexts and due to the usage of NVIDIA specific extensions with context from other GPU vendors, like ATI and Intel.
  • OOGL (https://github.com/Overv/OOGL): didn't look deeply into this.
  • globjects (https://github.com/cginternals/globjects): Pretty complete high-level API for OpenGL. Also wrapping all objects into complete C++-classes.

Requirements

  • GLEW
  • Eigen 3

Features

  • Shader compilation: I usally have my shader files in separate text files and it's somehow annoying to move these stuff around and make it available relative to the executable. For this purpose, I build a solution based on CMAKE, which simply generates a statically initialized "storage" of shader strings, which can accessed by a call to a static method of GlShaderCache. It's somehow nice as it only needs cmake to generate the source, which can be then included in the build and therefore compiled into a library or executable.

Future work

  • More documentation, examples, etc.
  • Enable/disable functionality for given OpenGL version by virtue of compile flags.
  • Feature completness for OpenGL version 4.5 (core profile)
  • Cross-plattform functionality
  • Extend GLSL parser with additional convenience functions a la Pangolin.

glow's People

Contributors

jbehley avatar niosus 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.