Graphics Reference
In-Depth Information
A
GLSLProgram C++ Class
The act of creating, compiling, linking, using, and passing parameters to shad-
ers is very repetitive. For some of our own work, we have found it helpful
to create a C++ class called GLSLProgram that implements this process. This
class has the tools to manage all the steps of shader program development
and use, including source file opening, loading, and compilation. Some of the
individual methods were presented in Chapter 14. It also has methods that
implement seting atribute and uniform variables. This source is available on
the topic's website.
The following methods are supported by the class
bool Create( char *, char * = NULL, char * = NULL,
char * = NULL, char * = NULL );
bool IsValid( );
465
 
 
Search WWH ::




Custom Search