*/
virtual ~BitmapTexture();
-public: // Message interface
-
- /**
- * Upload an array of bitmaps
- * @param bitmapArray array of bitmap items
- */
- void UploadBitmapArray( const BitmapUploadArray& bitmapArray);
-
- /**
- * Clear an array of areas from bitmap to the given color
- * @param[in] areaArray Array of rects to clear
- * @param[in] blockSize Size of block to clear
- * @param[in] color Clear color
- */
- void ClearAreas( const BitmapClearArray& areaArray, std::size_t blockSize, uint32_t color );
-
+ /**
+ * Retrieve the bitmap
+ * @return The bitmap or NULL if already discarded
+ */
+ Integration::Bitmap* GetBitmap() { return mBitmap.Get(); }
+
public:
+
/**
* @copydoc Texture::Init
*/
void UpdateTexture( ResourceId id, Integration::BitmapPtr bitmap );
/**
- /**
- * Add an array of bitmaps to an existing texture used as an Atlas
- * @param[in] id Resource id of the texture
- * @param[in] uploadArray array of upload bitmap structures
- */
- void AddBitmapUploadArray( ResourceId id, const BitmapUploadArray& uploadArray );
-
+ * Update the part of a texture with a newly loaded bitmap
+ * May be called from Update thread
+ * @param[in] destId The ID of the texture to update
+ * @param[in] srcId The resource ID of the source bitmap
+ * @param [in] xOffset Specifies an offset in the x direction within the texture
+ * @param [in] yOffset Specifies an offset in the y direction within the texture
+ */
+ void UpdateTexture( ResourceId destId, ResourceId srcId, std::size_t xOffset, std::size_t yOffset );
+
+ /**
* Update the area of the texture from the associated bitmap
* @param[in] id Resource Id of the bitmap
* @param[in] area The area of the bitmap that has changed