background_get_uvs()


リソース操作・バックグラウンド

background_get_uvs

テクスチャページ内のバックグラウンドのテクスチャ座標を配列として返します

構文

background_get_uvs(back);
back
バックグラウンドのリソース番号

戻り値

Array
テクスチャ座標の配列

説明

この関数はテクスチャ座標の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座標をインスタンス変数に格納します

Wiki内検索

#search(): You already view a search box

MENU

ドキュメント

GMLリファレンス

2ch

その他



最新の30件

2024-03-07 2023-08-09 2023-05-21 2023-05-20 2023-05-04 2022-10-13 2022-07-21 2022-07-02 2022-04-06 2021-11-30 2021-11-26 2021-10-03 2021-09-23 2021-08-15 2021-06-02 2021-01-23 2021-01-21 2021-01-19 2021-01-18 2021-01-16 2021-01-15

人気の10件

今日の10件



これまでの訪問者: 655
今日の訪問者: 1
昨日の訪問者: 2
閲覧者: 4