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