The GLP library

by Antoine Mine
 

What is the GLP library ?



The GLP library is a little library for doing Perlin's procedural textures under OpenGL using multipass rendering.
The GLP library is coded in C on top of the OpenGL and OpenGL Utility libraries, but it does not replace any of them : direct calls to the OpenGL and OpenGL Utility library are possible with a little care.
The GLP library works in the same way than OpenGL : it has states, a similar error system and uses OpenGL's types (GLfloat or GLuint for example).

Current version is 0.1 and must be used with OpenGL version 1.1 or greater.
Only true rgb mode is supported.
 

How use the GLP library ?



First of all you must include the files    

Examples & tricks



   
 

GLP Errors


 
 
 
 
 

 

GLP Rendering functions


void glpDrawNoise(GLuint list)

 

 void glpDoColormap(void)

void glpDrawPattern(GLuint scene,GLenum func)  
 
 
 
 

 
 

GLP state functions



 
void glpSetParameteri(GLenum param,GLuint value)
void glpSetParameterf(GLenum param,GLfloat value) void glpGetParameteri(GLenum param,GLuint* value)
void glpGetParameterf(GLenum param,GLfloat* value) void glpSetColormap(GLuint sizetab,GLuint nbtab,GLenum mode,GLuint size,float* tab) void glpResetColormap()  GLenum glpGetError()  
 
 

 GLP miscenaleous functions



 
GLboolean glpQueryExtension(const char *extName) void glpFinalize()  

void glpFLush()

const GLubyte* glpErrorString(GLenum error)  
 
 
 

GLP parameters


Noise parameters

Pattern parameters  
 Colormap parameters
   
 
 

To be continued (sometime)