PixelBuffer Class Reference

Base class representing the pixel buffer. More...

Inheritance diagram for PixelBuffer:
ColorBuffer DepthBuffer Texture Texture2D TextureCube

List of all members.

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

Detailed Description

Base class representing the pixel buffer.


Member Function Documentation

int GetMipmapHeight ( int  level)

Obtains the height of the specified mipmap level.

Parameters:
levelMipmap level (0 to LevelCount-1)
Returns:
Height of the specified mipmap level
int GetMipmapWidth ( int  level)

Obtains the width of the specified mipmap level.

Parameters:
levelMipmap level (0 to LevelCount-1)
Returns:
Width of the specified mipmap level
virtual Object ShallowClone ( ) [virtual]

Creates a copy of the pixel buffer.

Returns:
Clones 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.