Skip to content

dev'http_api'reference'GeoObject.GetTextureSource

Usagi Ito edited this page Nov 15, 2017 · 3 revisions

GeoObject.SetTextureSource

GeoObject のテクスチャーソースを取得します。

Params

Pattern 1: テクスチャーソース群を完全なリストとして設定する場合

<number;id>

Pattern 2: 既存のテクスチャーソース1つを取得する場合

{ "id": <number>
, "index": <number>
}

Result

Pattern 1:

[ { "data": [ <number> ]
  , "width": <number>
  , "height": <number>
  , "type": <string> // "R-UINT8", "RG-UINT8", "RGB-UINT8", "RGBA-UINT8", "R-F32", "RG-F32", "RGB-F32", "RGBA-F32"
  , "no_tiling": <bool>
  , "preserve_border": <bool>
  , "material_textre_id": <string>
  , "shared_texture_name": <string>
  }
]

Pattern 1:

{ "data": [ <number> ]
, "width": <number>
, "height": <number>
, "type": <string> // "R-UINT8", "RG-UINT8", "RGB-UINT8", "RGBA-UINT8", "R-F32", "RG-F32", "RGB-F32", "RGBA-F32"
, "no_tiling": <bool>
, "preserve_border": <bool>
, "material_textre_id": <string>
, "shared_texture_name": <string>
}

Error

Clone this wiki locally
You can’t perform that action at this time.