テクスチャページ内のバックグラウンドのテクスチャ座標を配列として返します
background_get_uvs(back);
この関数はテクスチャ座標のUVを配列として返します。[0]=left、[1]=top、[2]=right、[3]=bottomとなります。 この値は、一般的な3D用の関数やシェーダー関数、2Dプリミティブ描画関数で使用することができます。
var tex = background_get_uvs(back); tex_left = tex[0]; tex_top = tex[1]; tex_right = tex[2]; tex_left = tex[3];
The above code will store the UV coordinates for the given background in a local array and then assign the values to instance variables. 上記コードは指定したバックグラウンドのUV座標をインスタンス変数に格納します