#N canvas 395 396 626 458 10;
#X declare -lib Gem;
#X text 452 8 GEM object;
#X obj 8 335 cnv 15 430 80 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X text 39 338 Inlets:;
#X text 38 385 Outlets:;
#X obj 8 296 cnv 15 430 30 empty empty empty 20 12 0 14 #bcbcbc #404040 0;
#X text 17 295 Arguments:;
#X obj 7 76 cnv 15 430 210 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 #dce4fc #404040 0;
#X text 453 60 Example:;
#X obj 474 344 cnv 15 100 60 empty empty empty 20 12 0 14 #bcbcbc #404040 0;
#X obj 450 188 cnv 15 160 100 empty empty empty 20 12 0 14 #14e814 #404040 0;
#X obj 451 84 gemhead;
#X text 71 31 Class: pix object;
#X text 63 306 <none>;
#X text 56 398 Outlet 1: gemlist;
#X text 63 352 Inlet 1: gemlist;
#X obj 451 296 square 3;
#X text 50 12 Synopsis: [pix_coordinate];
#X text 13 76 Description: set the texture-coordinates for a pix;
#X text 34 94 pix_coordinate remaps the S \, T texture values from the default values. For instance \, a texture could repeat by increasing the texture S \, T values from 1 \, 1 to 2 \, 2 (See the examples).;
#X text 63 367 Inlet 2: list: 8 values (4 (s \, t)-pairs);
#X msg 461 237 \$1 \$1 0 \$1 0 0 \$1 0;
#X floatatom 461 220 3 0 256 0 - - - 0;
#X text 14 159 IMPORTANT NOTE-1: [pix_texture] sets the texture-coordinates to "appropriate" values \, so you probably want to use [pix_coordinate] afterwards;
#X obj 10 201 cnv 15 420 45 empty empty empty 20 12 0 14 #d8fcfc #404040 0;
#X obj 451 266 pix_coordinate;
#X msg 459 193 0 0 1 0 1 1 0 1;
#X text 14 248 IMPORTANT NOTE-3: Images with dimensions that are not powers-of-2 \, will not "repeat" properly in any case., f 60;
#X text 14 203 IMPORTANT NOTE-2: if your hardware supports it \, Gem tries to use "rectangle-texturing"\\\, which does not support "repeat" mode. This is an OpenGL limitation;
#N canvas 484 243 450 300 META 0;
#X obj 10 25 declare -lib Gem;
#X text 10 45 DESCRIPTION set the texture-coordinates for a pix;
#X text 10 65 KEYWORDS Gem pix image;
#X text 20 85 INLET_0 gemlist;
#X text 20 105 INLET_1 list;
#X text 20 125 OUTLET_0 gemlist;
#X text 10 145 AUTHOR IOhannes m zmölnig;
#X text 10 165 LICENSE GPL-2.0-or-later;
#X restore 518 8 pd META;
#X obj 451 113 pix_test;
#X obj 451 136 pix_texture \; rectangle 0 \; repeat 1;
#X obj 479 350 _gemwin;
#X connect 11 0 30 0;
#X connect 21 0 25 1;
#X connect 22 0 21 0;
#X connect 25 0 16 0;
#X connect 26 0 25 1;
#X connect 30 0 31 0;
#X connect 31 0 25 0;
