/[gzz]/gzz/gfx/libcallgl/callgl.hxx
ViewVC logotype

Diff of /gzz/gfx/libcallgl/callgl.hxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.19 by jvk, Thu Oct 31 14:59:18 2002 UTC revision 1.20 by jvk, Thu Oct 31 15:22:47 2002 UTC
# Line 179  namespace CallGL { Line 179  namespace CallGL {
179          NVProg() { }          NVProg() { }
180          NVProg(const char *source) : source(source) { compile(); }          NVProg(const char *source) : source(source) { compile(); }
181          string getSource() const { return source; }          string getSource() const { return source; }
182            GLuint getProgId() const { return progid.get() ? progid->name : 0; }
183          void bind(void) const {          void bind(void) const {
184  #ifdef GL_VERTEX_PROGRAM_NV  #ifdef GL_VERTEX_PROGRAM_NV
185              glBindProgramNV(TARGET, progid->name);              glBindProgramNV(TARGET, getProgId());
186  #endif  #endif
187          }          }
188          void operator () (const float *params) const {          void operator () (const float *params) const {
189  #ifdef GL_VERTEX_PROGRAM_NV  #ifdef GL_VERTEX_PROGRAM_NV
190              glExecuteProgramNV(TARGET, progid->name, params);              glExecuteProgramNV(TARGET, getProgId(), params);
191  #endif  #endif
192          }          }
193                    

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26