FLTK logo

Re: [fltk.general] Re: Can custom box type functions handle their own high-DPI screen scaling? - [General Use]

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 ]

Re: Re: Can custom box type functions handle their own high-DPI screen scaling? - [General Use] Bill Spitzak Feb 25, 2021  
 
I think the existing fl_push_matrix and fl_pop_matrix should be reused.

However the idea of fl_set_scale(x), returning the old value, is probably good. The result is that the determinant of the matrix is x. I am unsure exactly what this should do to existing translation, rotation, and non-equal scaling (including mirror reflections which might mean the determinant is -x).


On Thu, Feb 25, 2021 at 11:29 AM Greg Ercolano <erco@seriss.com> wrote:


On 2/25/21 9:59 AM, Albrecht Schlosser wrote:
Or, what about this?

  float fl_set_scale(float s);    // returns old value
  void fl_restore_scale(float s); // as we have now


    I do like the 'save' and 'restore' wording in a non-stack situation.


--
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/d85fde75-504a-57cd-4fa7-0001aebe7af0%40seriss.com.

--
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/CAL-8oAhTMBsxjKkOuUPe8_-wHdNOtFieTMm%3DJn1Dhi-gD4ugLg%40mail.gmail.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'.