Coder Social home page Coder Social logo

glslincludes's Introduction

A Small utility to add the include feature to glsl

How to use it

  • Download the latest release
  • Usage example : GLSLInclude.exe filea.glsl fileb.glsl -o {fileNameNoExt}.generated{ext}
  • This will output the file with includes copy pasted into the "generated" file where the include line lies.

What it does

  • Handle multiple includes in one file
  • The syntax is the same as in C language
  • Handle deep includes correctly
  • Handle relative paths
  • Detects circular references
  • It does allow diamond shaped includes

What it does not / have not been tested

  • Absolute paths
  • Not tested spaces / tab robustness
  • Not tested comments robustness
  • Not tested multiline include
  • Not tested <> includes

Roadmap

  • Clean it a bit
  • Handle line returns in a cleaner way
  • Provide it as a single file dependency along the executable
  • Support as many .net platform as possible (at least down to .net standard 1.0)
  • Publish it as a nuget package
  • More unit tests
  • Open to suggestions :)

glslincludes's People

Contributors

seb776 avatar

Stargazers

paopeaw avatar  avatar vjblind avatar George Corney avatar Atsushi Hashimoto avatar Ben Houston 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.