/[libvob]/libvob/org/nongnu/libvob/vobs/TextVob.java
ViewVC logotype

Diff of /libvob/org/nongnu/libvob/vobs/TextVob.java

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

revision 1.1 by benja, Sun Mar 16 15:55:05 2003 UTC revision 1.2 by tjl, Mon Mar 17 12:48:19 2003 UTC
# Line 156  String rcsid = "$Id$"; Line 156  String rcsid = "$Id$";
156    
157      static private Vob start, stop;      static private Vob start, stop;
158      private Vob setColor;      private Vob setColor;
159      /**  
160      static public Vob getStartCode() {      static public Vob getStartCode() {
161          if(start == null) {          if(start == null) {
162              if (GL.hasExtension("GL_NV_register_combiners")) {              if (GL.hasExtension("GL_NV_register_combiners")) {
163                  start = GLCache.getCallList(                  start = GLCache.getCallList(
164  "   PushAttrib ENABLE_BIT TEXTURE_BIT CURRENT_BIT  \n"+  "   PushAttrib ENABLE_BIT TEXTURE_BIT CURRENT_BIT  \n"+
165  "   Enable REGISTER_COMBINERS_NV                        \n" +  "   Enable REGISTER_COMBINERS_NV                        \n" +
166    "   Enable BLEND                        \n" +
167  "   CombinerParameterNV NUM_GENERAL_COMBINERS_NV 1      \n" +  "   CombinerParameterNV NUM_GENERAL_COMBINERS_NV 1      \n" +
168  "   CombinerParameterNV CONSTANT_COLOR0_NV 0 0 0 0.4    \n" +  "   CombinerParameterNV CONSTANT_COLOR0_NV 0 0 0 0.4    \n" +
169  "   CombinerInputNV COMBINER0_NV ALPHA VARIABLE_A_NV TEXTURE0 UNSIGNED_IDENTITY_NV ALPHA  \n" +  "   CombinerInputNV COMBINER0_NV ALPHA VARIABLE_A_NV TEXTURE0 UNSIGNED_IDENTITY_NV ALPHA  \n" +
# Line 188  String rcsid = "$Id$"; Line 189  String rcsid = "$Id$";
189              stop = GLCache.getCallList("PopAttrib");              stop = GLCache.getCallList("PopAttrib");
190          }          }
191          return stop;          return stop;
192          } **/      }
193    
194      private Vob setColor() {      private Vob setColor() {
195          if(setColor == null) {          if(setColor == null) {
# Line 204  String rcsid = "$Id$"; Line 205  String rcsid = "$Id$";
205       */       */
206      private Vob ht;      private Vob ht;
207      public int putGL(VobScene vs, int coordsys1) {      public int putGL(VobScene vs, int coordsys1) {
         throw new Error("Cannot render TextVob in GL yet");  
         /*  
208          if(dbg) pa("Addtolistgl text "+text);          if(dbg) pa("Addtolistgl text "+text);
209          if(ht == null) {          if(ht == null) {
210              GLTextStyle gls = (GLTextStyle)style;              GLTextStyle gls = (GLTextStyle)style;
211              ht = GLRen.createHorizText(              ht = GLRen.createText1(
212                      gls.theFont,                      gls.theFont,
213                      text,                      text,
                     0,  
214                      (baselined ? 1 : gls.theFont.getYOffs()),                      (baselined ? 1 : gls.theFont.getYOffs()),
                     0,  
215                      0);                      0);
216          }          }
217          vs.map.put(getStartCode());          vs.map.put(getStartCode());
# Line 222  String rcsid = "$Id$"; Line 219  String rcsid = "$Id$";
219          vs.map.put(ht, coordsys1);          vs.map.put(ht, coordsys1);
220          vs.map.put(getStopCode());          vs.map.put(getStopCode());
221          return 0;          return 0;
         */  
222      }      }
223    
224    

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