Skip to content

CPGA with shader helper interface

Latest
Compare
Choose a tag to compare
@LessComplexity LessComplexity released this 08 Mar 14:52
· 2 commits to master since this release

Additions

An interface added to the GLRenderer class that allows you to:

  • Create an empy program (GLRenderer::createProgram)
  • Create and add shaders (GLRenderer::addShader)
  • Link a program to make it complete (GLRenderer::linkProgram)
  • Safely use a program at runtime (GLRenderer::useProgram)

Programs are saved in the GLRenderer using an unordered_map with string keys representing the program name.