OpenMetaverse Protocol Library Developers API Documentation
RequestTexture Method (textureID, imageType, priority, discardLevel, packetStart, callback, progressive)
NamespacesOpenMetaverseTexturePipelineRequestTexture(UUID, ImageType, Single, Int32, UInt32, TextureDownloadCallback, Boolean)
Request a texture asset from the simulator using the TexturePipelinesystem to manage the requests and re-assemble the image from the packets received from the simulator
Declaration Syntax
C#
public 
void 
RequestTexture(
        
UUID 
textureID,
        
ImageType 
imageType,
        
float 
priority,
        
int 
discardLevel,
        
uint 
packetStart,
        

TextureDownloadCallback 
callback,
        
bool 
progressive
)
Parameters
textureID ( UUID)
The UUIDof the texture asset to download
imageType ( ImageType)
The ImageTypeof the texture asset. Use Normalfor most textures, or Bakedfor baked layer texture assets
priority ( Single)
A float indicating the requested priority for the transfer. Higher priority values tell the simulator to prioritize the request before lower valued requests. An image already being transferred using the TexturePipelinecan have its priority changed by resending the request with the new priority value
discardLevel ( Int32)
Number of quality layers to discard. This controls the end marker of the data sent
packetStart ( UInt32)
The packet number to begin the request at. A value of 0 begins the request from the start of the asset texture
callback ( TextureDownloadCallback)
The TextureDownloadCallbackcallback to fire when the image is retrieved. The callback will contain the result of the request and the texture asset data
progressive ( Boolean)
If true, the callback will be fired for each chunk of the downloaded image. The callback asset parameter will contain all previously received chunks of the texture asset starting from the beginning of the request

Assembly: OpenMetaverse(Module: OpenMetaverse.dll) Version: 0.9.3.3318 (0.9.3.3318)