gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz/gfx/libcallgl callgl.hxx


From: Janne V. Kujala
Subject: [Gzz-commits] gzz/gfx/libcallgl callgl.hxx
Date: Thu, 31 Oct 2002 10:22:47 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Janne V. Kujala <address@hidden>        02/10/31 10:22:47

Modified files:
        gfx/libcallgl  : callgl.hxx 

Log message:
        Add NVProg::getProgId method

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/libcallgl/callgl.hxx.diff?tr1=1.19&tr2=1.20&r1=text&r2=text

Patches:
Index: gzz/gfx/libcallgl/callgl.hxx
diff -u gzz/gfx/libcallgl/callgl.hxx:1.19 gzz/gfx/libcallgl/callgl.hxx:1.20
--- gzz/gfx/libcallgl/callgl.hxx:1.19   Thu Oct 31 09:59:18 2002
+++ gzz/gfx/libcallgl/callgl.hxx        Thu Oct 31 10:22:47 2002
@@ -179,14 +179,15 @@
        NVProg() { }
        NVProg(const char *source) : source(source) { compile(); }
        string getSource() const { return source; }
+       GLuint getProgId() const { return progid.get() ? progid->name : 0; }
        void bind(void) const {
 #ifdef GL_VERTEX_PROGRAM_NV
-           glBindProgramNV(TARGET, progid->name);
+           glBindProgramNV(TARGET, getProgId());
 #endif
        }
        void operator () (const float *params) const {
 #ifdef GL_VERTEX_PROGRAM_NV
-           glExecuteProgramNV(TARGET, progid->name, params);
+           glExecuteProgramNV(TARGET, getProgId(), params);
 #endif
        }
        




reply via email to

[Prev in Thread] Current Thread [Next in Thread]