FLTK logo

[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 ]

OpenGL - displayList - gl_draw "holm.h... Sep 25, 2020  
 

Hello,

I tried to call gl_draw into a displaylist. That was not a sucsess.Can be examplified by the cube.cxx test-code. I but the gl_draw in a displaylist (code below), but then nothing show in the screen.

Suprise to me. Should that be expected, or is this a bug? Btw. to me it seems like gl_draw is pretty he heavy function/draw a lot of cpu.

  static GLuint DisplayList=-1;
  if (DisplayList<0){ glDeleteLists(DisplayList, 1);
    DisplayList = glGenLists (1);
    glNewList(DisplayList, GL_COMPILE);
    gl_draw(wire ? "Cube: wire" : "Cube: flat", -4.5f, -4.5f );
    glEndList();
  }
  glCallList(DisplayList);
 
Best regards
Håvard

--
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/229772c0-053b-44f3-9c54-d43fa289723an%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'.