C# Класс OpenMetaverse.TexturePipeline

Texture request download handler, allows a configurable number of download slots
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AbortDownload ( UUID textureID ) : void
GetTextureToRender ( UUID textureID ) : ImageDownload

retrieve texture information from dictionary

RemoveFromPipeline ( UUID textureID ) : bool

Remove no longer necessary texture from dictionary

RequestTexture ( UUID textureID, ImageType type ) : void

Request a texture be downloaded, once downloaded OnImageRenderReady event will be fired containing texture key which can be used to retrieve texture with GetTextureToRender method

Shutdown ( ) : void
TexturePipeline ( GridClient client, int maxRequests ) : System

Default constructor

Приватные методы

Метод Описание
Assets_OnImageReceiveProgress ( UUID image, int lastPacket, int recieved, int total ) : void
Assets_OnImageReceived ( ImageDownload image, AssetTexture asset ) : void
DownloadThread ( ) : void

Master Download Thread, Queues up downloads in the threadpool

TextureRequestDoWork ( Object threadContext ) : void

Описание методов

AbortDownload() публичный Метод

public AbortDownload ( UUID textureID ) : void
textureID UUID
Результат void

GetTextureToRender() публичный Метод

retrieve texture information from dictionary
public GetTextureToRender ( UUID textureID ) : ImageDownload
textureID UUID Texture ID
Результат ImageDownload

RemoveFromPipeline() публичный Метод

Remove no longer necessary texture from dictionary
public RemoveFromPipeline ( UUID textureID ) : bool
textureID UUID
Результат bool

RequestTexture() публичный Метод

Request a texture be downloaded, once downloaded OnImageRenderReady event will be fired containing texture key which can be used to retrieve texture with GetTextureToRender method
public RequestTexture ( UUID textureID, ImageType type ) : void
textureID UUID Texture to request
type ImageType Type of the requested texture
Результат void

Shutdown() публичный Метод

public Shutdown ( ) : void
Результат void

TexturePipeline() публичный Метод

Default constructor
public TexturePipeline ( GridClient client, int maxRequests ) : System
client GridClient Reference to SecondLife client
maxRequests int Maximum number of concurrent texture requests
Результат System