FLTK logo

Re: [fltk.coredev] gl_draw() on OpenGL 3

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.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: gl_draw() on OpenGL 3 Gonzalo Garramuno Nov 19, 2022  
 

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