/[gzz]/gzz/gfx/libpaper/Paper.hxx
ViewVC logotype

Diff of /gzz/gfx/libpaper/Paper.hxx

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

revision 1.5 by tjl, Sat Aug 31 05:26:58 2002 UTC revision 1.6 by jvk, Mon Sep 9 11:19:14 2002 UTC
# Line 87  namespace Paper { Line 87  namespace Paper {
87         */         */
88        TexGen(const float *tex_mat) ;        TexGen(const float *tex_mat) ;
89        virtual void setUp(LightParam *param) ;        virtual void setUp(LightParam *param) ;
90    
91    
92          virtual void TexGen::setUpVP(int unit);
93    
94          virtual string TexGen::getVPCode(int unit);
95      };      };
96    
97      /** TexGen for embossing.      /** TexGen for embossing.
# Line 171  namespace Paper { Line 176  namespace Paper {
176        void tearDown() {        void tearDown() {
177          teardowncode();          teardowncode();
178        }        }
179    
180    
181          /** Vertex Program Version of the rendering interface
182           * XXX: currently only plain TexGens are implemented
183           * Note: most fields of *param will be ignored
184           */
185          void setUpVP(LightParam *param);
186          void tearDownVP();
187    
188          /** Paperpass vertex
189           * @param pos vertex position (vector of 4 floats)
190           * @param ppos position within paper (vector of 4 floats)
191           */
192          void vertex(float *pos, float *ppos) {
193            glTexCoord4fv(ppos);
194            glVertex4fv(pos);
195          }
196    
197          /** Generate and load the texgen vertex program
198           * Automatically called on first setUpVP unless already loaded */
199          void loadVP();
200    
201        protected:
202          VPCode texgenvp;
203      };      };
204    
205      /** A paper is simply a vector of passes.      /** A paper is simply a vector of passes.

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

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