LargeTexture

Inherits: Texture < Resource < Reference < Object

类别: 核心

简要说明

A Texture 能够存储许多具有偏移的较小纹理。

方法

int

add_piece ( Vector2 ofs, Texture texture )

无效

clear ( )

int

get_piece_count ( ) const

Vector2

get_piece_offset ( int idx ) const

Texture

get_piece_texture ( int idx ) const

无效

set_piece_offset ( int idx, Vector2 ofs )

无效

set_piece_texture ( int idx, Texture texture )

无效

set_size ( Vector2 size )

描述

A Texture 能够存储许多具有偏移的较小纹理。

您可以动态添加片段 (Texture s)对此 LargeTexture 使用不同的偏移量。

方法说明

添加 texture 对此 LargeTexture ,从偏移开始 ofs .

  • void clear ( )

清除 LargeTexture .

  • int get_piece_count ( ) const

返回此中当前的件数 LargeTexture .

返回带有索引的工件的偏移量 idx .

返回 Texture 有索引的作品 idx .

使用索引设置工件的偏移量 idxofs .

  • void set_piece_texture ( int idx, Texture texture )

设置 Texture 有索引的作品 idxtexture .

设置此的大小 LargeTexture .