/[libvob]/libvob/include/vob/vobs/Program.hxx
ViewVC logotype

Diff of /libvob/include/vob/vobs/Program.hxx

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

revision 1.1 by tjl, Wed Apr 9 15:05:24 2003 UTC revision 1.2 by tjl, Fri Apr 11 20:41:24 2003 UTC
# Line 30  namespace Vobs { Line 30  namespace Vobs {
30          }          }
31      };      };
32    
33  VOB_DEFINED(ProgramLocalParameterARB);      VOB_DEFINED(ProgramLocalParameterARB);
34    
35        class ProgramNamedParameterNV {
36        public:
37            enum { NTrans = 1 };
38    
39            int id;
40            std::string name;
41            template<class F> void params(F &f) {
42                f(id, name);
43            }
44            template<class T> void render(const T &t) const {
45                ZPt p1 = t.transform(ZPt(0,0,0));
46                ZPt p2 = t.transform(ZPt(1,1,0));
47                glProgramNamedParameter4fNV(
48                        id,
49                        name.length(),
50                        (const GLubyte *)name.data(),
51                        p1.x, p1.y, p2.x-p1.x, p2.y-p2.x);
52            }
53        };
54    
55        VOB_DEFINED(ProgramNamedParameterNV);
56    
57    
58  }  }
59  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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