Base class representing the pixel buffer. More...
Public Member Functions | |
virtual Object | ShallowClone () |
Creates a copy of the pixel buffer. | |
void | Dispose () |
Frees the unmanaged resources of the pixel buffer. | |
int | GetMipmapWidth (int level) |
Obtains the width of the specified mipmap level. | |
int | GetMipmapHeight (int level) |
Obtains the height of the specified mipmap level. | |
Properties | |
PixelBufferType | Type [get] |
Pixel buffer type. | |
PixelBufferOption | Option [get] |
Pixel buffer creation option. | |
PixelFormat | Format [get] |
Pixel format. | |
int | Width [get] |
Pixel buffer width. | |
int | Height [get] |
Pixel buffer height. | |
int | LevelCount [get] |
Number of mipmap levels. | |
bool | IsRenderable [get] |
true if rendering is enabled | |
bool | IsPowerOfTwo [get] |
true if the width and height are a power of 2 |
Base class representing the pixel buffer.
int GetMipmapHeight | ( | int | level | ) |
Obtains the height of the specified mipmap level.
level | Mipmap level (0 to LevelCount-1) |
int GetMipmapWidth | ( | int | level | ) |
Obtains the width of the specified mipmap level.
level | Mipmap level (0 to LevelCount-1) |
virtual Object ShallowClone | ( | ) | [virtual] |
Creates a copy of the pixel buffer.
Creates a copy of the pixel buffer. The 2 pixel buffers will then share unmanaged resources. When Dispose() is called for all copies, the shared unmanaged resources will be freed.
Reimplemented in Texture, Texture2D, TextureCube, ColorBuffer, and DepthBuffer.