|
|
> El 18 nov. 2022, a las 03:51, Manolo <manolo.gouy@gmail.com> escribió:
>
>
>
> Le jeudi 17 novembre 2022 à 22:27:16 UTC+1, imacarthur a écrit :
>
>
> Did Manolo not have some mechanism for enabling GL.old drawing into a GL3 context?
> If that were done, then gl_draw() ought to then work I'd imagine?
>
> Yes. Here is this mechanism as an example.
> Replace line #142 of example/OpenGL3test.cxx by this :
>
Thanks, Manolo. It works great!
>
> and you'll see text drawn by gl_draw() above the GL3 scene in a partially transparent white
> (that color was defined before in function add_widgets()).
>
> But, the GL1 scene containing text doesn't use the same coordinates as
> those used in the GL3 scene below. Therefore, you would have to compute
> adequately the coordinates of the point where to draw text.
Duly noted. I am now struggling with the matrix transformations to make both things match. The thing that makes it difficult in my case is that I need to support zooming and panning in my viewer.
—
Gonzalo Garramuno
ggarra13@gmail.com
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/458040E2-5704-4F10-B80B-F64D97F94BD5%40gmail.com.
[ Direct Link to Message ] | |
|
| |