FLTK logo

Re: [fltk.general] OpenGL - displayList - gl_draw

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: OpenGL - displayList - gl_draw "holm.h... Sep 25, 2020  
 
Duncan, I'm so embarrased you are right, the test can never be satisfied. However with these corrected lines still the text do still not show :
  static GLuint DisplayList=1000;
  if (DisplayList==1000){
    printf("Hi\n");
    DisplayList = glGenLists (1);
    glNewList(DisplayList, GL_COMPILE);
    gl_draw("FLTK is great!", -4.5f, -4.5f );
    glEndList();
  }
  glCallList(DisplayList);

Ian, you may be right that gl_draw is not slow. Still in my code I would like to put opengl-calls in a displaylist.

fredag 25. september 2020 kl. 21:35:05 UTC+2 skrev duncan:
  static GLuint DisplayList=-1;
  if (DisplayList<0){ glDeleteLists(DisplayList, 1);

 Surely a GLuint is an unsigned int, so assigning -1 will cause rollover and the test can never be satisfied?

D.

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/e9c53b66-e00a-48a7-b83f-e1d2f435a301n%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.