|
|
On 2020-09-25 09:13, holm.h...@gmail.com wrote:
>
> 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);
Would need to see more code to weigh in.. can you supply a minimal
complete, compilable program so we can build and replicate?
Sometimes the problem is elsewhere, e.g. during setup.
--
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/3dccd123-38a8-1520-d6a4-b1b2d204e534%40seriss.com.
[ Direct Link to Message ] | |
|
| |