Giter VIP home page Giter VIP logo

glsl-processor's Introduction

Glsl-processor is a tool to inspect GLSL shaders. Its intended use is as part
of build setups, to generate interfaces to the shaders. Glsl-processor can
increase developer productivity because it enables automation of the tedious
process of compiling, linking, and using shaders. Enough information is
provided to allow writing wrappers that set uniforms and attribute pointers in
a type-safe way. There is also is some experimental ode for handling of
#include directives.

Glsl-processor is written in pure C and weighs about 2000 lines. Only
dependency is a C99 compiler and a libc.

Building
--------

Typical use will be that you write a custom C program that links against the
glsl-processor code. You can either build glsl-processor as a static library,
using the provided Makefile / .vcxproj file. Or, you can just add all the files
under src/ to your program and build everything at once. If you use your own
method, just make sure to build the glsl-processor code as C99, and make sure
to add the include/ directory to the list of include directories.

For an example of a program that uses glsl-processor, look at example.c. You
can compile it using "make example" (Linux) or by compiling the
glsl-processor-example project that is included in the .sln (Windows). Or
again, just compile and link all of example.c and src/*.

Once you compiled the example, you can run it and look at the output produced
in the autogenerated/ directory.

glsl-processor's People

Contributors

jstimpfle avatar

Stargazers

Masked Man avatar

Watchers

James Cloos avatar  avatar  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.