[PD] [gem] how to fit a rectangle into gem-window in fullscreen-mode

Roman Haefeli reduzierer at yahoo.de
Fri Aug 19 19:59:13 CEST 2005


i'd like to show some images in fullscreen-mode with gem. since it is cheaper to use [pix_texture] than to draw the image directly, i draw a rectangle that fits exactly in the gem-window and apply the image as a texture. 
i plan to create an application that will be used on different machines with different displays. at the moment i have to change the dimensions of the [rectangle] manually when i use the patch on a machine with different display-resolution. 
i think there is a relation between the used resolution and x- and y-values of [rectangle], but i failed finding it. is there a way to calculate these values from the resolution in order to fit the [reactangle] exactly into the gem-window? this would allow to write the actual resolution in a config-file whitout the need of changing the patch.

thank you in advance



Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de

More information about the Pd-list mailing list