virtual bool Upload(unsigned itex, unsigned level, const ImagePlane& plane);
Upload uploads the texture to the user/video memory for use in the application.
The ImagePlane structure contains data for the entire texture, but in GL, we need to upload each mip level individually.
Parameters |
Description |
unsigned itex |
The texture identifier for accessing the texture. |
unsigned level |
The mipmap level of the image. |
const ImagePlane& plane |
Pointer to image data that will be uploaded to the video memory. |
A Boolean value of true if the texture upload is successful and false if texture upload failed.