![]() Home Page Toolkit Overview Using GML User Input Services Finger Tracker Calibrator Frame Grabber Service protocol Obtaining GML Installing GML Licence Developer Documentation Tcl/Tk API The GML Canvas Image processing Tcl Scripts Library List of Classes List of Files C/C++ API List of Classes List of Files |
gml_GL_Program_GLSL.h00001 // gml_GL_Program.h -- 00002 // 00003 // Define the gmlGL_TProgram class. 00004 // 00005 // Copyright (c) 2006 CLIPS-IMAG 00006 // 00007 // See the file "gml_LicenseTerms.txt" for information on usage and redistribution 00008 // of this file, and for a DISCLAIMER OF ALL WARRANTIES. 00009 // 00010 00011 #ifndef __GML_GL_PROGRAM_GLSL__ 00012 #define __GML_GL_PROGRAM_GLSL__ 00013 00014 // project includes 00015 #include "gml/base/gml_Types.h" 00016 #include "gml/image/gml_Bitmap.h" 00017 #include "gml/image/gml_Geometry.h" 00018 #include "gml/gl/gml_GL_Base.h" 00019 #include "gml/gl/gml_GL_Texture.h" 00020 #include "gml/gl/gml_GL_Program.h" 00021 00022 00023 /** 00024 * gmlGL_TProgram_GLSL -- 00025 * 00026 * Programs to be run by the GPU, using GLSL. 00027 * Warning: all calls will change the current GL context to the super context. 00028 * 00029 */ 00030 class gmlGL_TProgram_GLSL : public gmlGL_TProgram 00031 { 00032 public: 00033 00034 00035 /// Init -- 00036 00037 gml_TError Init (); 00038 00039 00040 /// Dispose -- 00041 00042 void Dispose (); 00043 00044 00045 /// Compile -- 00046 00047 gml_TError Compile (char* program, int* loglen, char** log); 00048 00049 00050 /// Configure -- 00051 00052 gml_TError Configure (char* parameter, int stride, int nbdata, Float32* data); 00053 00054 00055 /// Run -- 00056 00057 gml_TError Run (gmlGL_TTexture* output, int nbinput, gmlGL_TTexture** inputs); 00058 00059 00060 00061 private: 00062 00063 bool fCompiled; 00064 GLuint fGLShader; 00065 GLuint fGLProgram; 00066 00067 static char* sLogString; 00068 }; 00069 00070 #endif /* __GML_GL_PROGRAM_GLSL__ */
Generated on Tue Jun 12 14:03:27 2007 for gml by
Doxygen 1.5.2.
|
Contact: julien (dot) letessier (at) gmail (dot) com.
Copyright (c) 2000-2007 CLIPS-IMAG Laboratory, Grenoble, France. All rights reserved. W3CXHTML 1.0 W3CCSS 2.0 |