|
| IImage (ECOLOR_FORMAT format, const core::dimension2d< u32 > &size, bool deleteMemory) |
| constructor
|
|
virtual | ~IImage () |
| destructor
|
|
ECOLOR_FORMAT | getColorFormat () const |
| Returns the color format.
|
|
const core::dimension2d< u32 > & | getDimension () const |
| Returns width and height of image data.
|
|
u32 | getBitsPerPixel () const |
| Returns bits per pixel.
|
|
u32 | getBytesPerPixel () const |
| Returns bytes per pixel.
|
|
size_t | getImageDataSizeInBytes () const |
| Returns image data size in bytes.
|
|
u32 | getImageDataSizeInPixels () const |
| Returns image data size in pixels.
|
|
u32 | getPitch () const |
| Returns pitch of image.
|
|
u32 | getRedMask () const |
| Returns mask for red value of a pixel.
|
|
u32 | getGreenMask () const |
| Returns mask for green value of a pixel.
|
|
u32 | getBlueMask () const |
| Returns mask for blue value of a pixel.
|
|
u32 | getAlphaMask () const |
| Returns mask for alpha value of a pixel.
|
|
void * | getData () const |
| Use this to get a pointer to the image data.
|
|
NIRT_DEPRECATED void * | lock () |
| Lock function. Use this to get a pointer to the image data.
|
|
NIRT_DEPRECATED void | unlock () |
| Unlock function.
|
|
core::dimension2du | getMipMapsSize (u32 mipmapLevel) const |
| Get the mipmap size for this image for a certain mipmap level.
|
|
void * | getMipMapsData (nirt::u32 mipLevel=1) const |
| Get mipmaps data.
|
|
void | setMipMapsData (void *data, bool ownForeignMemory, bool deleteMemory) |
| Set mipmaps data.
|
|
virtual SColor | getPixel (u32 x, u32 y) const =0 |
| Returns a pixel.
|
|
virtual void | setPixel (u32 x, u32 y, const SColor &color, bool blend=false)=0 |
| Sets a pixel.
|
|
virtual void | copyToScaling (void *target, u32 width, u32 height, ECOLOR_FORMAT format=ECF_A8R8G8B8, u32 pitch=0)=0 |
| Copies the image into the target, scaling the image to fit.
|
|
virtual void | copyToScaling (IImage *target)=0 |
| Copies the image into the target, scaling the image to fit.
|
|
virtual void | copyTo (IImage *target, const core::position2d< s32 > &pos=core::position2d< s32 >(0, 0))=0 |
| copies this surface into another
|
|
virtual void | copyTo (IImage *target, const core::position2d< s32 > &pos, const core::rect< s32 > &sourceRect, const core::rect< s32 > *clipRect=0)=0 |
| copies this surface into another
|
|
virtual void | copyToWithAlpha (IImage *target, const core::position2d< s32 > &pos, const core::rect< s32 > &sourceRect, const SColor &color, const core::rect< s32 > *clipRect=0, bool combineAlpha=false)=0 |
| copies this surface into another, using the alpha mask and cliprect and a color to add with
|
|
virtual void | copyToScalingBoxFilter (IImage *target, s32 bias=0, bool blend=false)=0 |
| copies this surface into another, scaling it to fit, applying a box filter
|
|
virtual void | flip (bool topBottom, bool leftRight)=0 |
| Flips (mirrors) the image in one or two directions.
|
|
virtual void | fill (const SColor &color)=0 |
| fills the surface with given color
|
|
NIRT_DEPRECATED bool | isCompressed () const |
| Inform whether the image is compressed.
|
|
NIRT_DEPRECATED bool | hasMipMaps () const |
| Check whether the image has MipMaps.
|
|
| IReferenceCounted () |
| Constructor.
|
|
virtual | ~IReferenceCounted () |
| Destructor.
|
|
void | grab () const |
| Grabs the object. Increments the reference counter by one.
|
|
bool | drop () const |
| Drops the object. Decrements the reference counter by one.
|
|
s32 | getReferenceCount () const |
| Get the reference count.
|
|
const c8 * | getDebugName () const |
| Returns the debug name of the object.
|
|
|
static core::dimension2du | getMipMapsSize (const core::dimension2du &sizeLevel0, u32 mipmapLevel) |
| Calculate mipmap size for a certain level.
|
|
static u32 | getBitsPerPixelFromFormat (const ECOLOR_FORMAT format) |
| get the amount of Bits per Pixel of the given color format
|
|
static bool | checkDataSizeLimit (size_t dataSize) |
| You should not create images where the result of getDataSizeFromFormat doesn't pass this function.
|
|
static size_t | getDataSizeFromFormat (ECOLOR_FORMAT format, u32 width, u32 height) |
| calculate image data size in bytes for selected format, width and height.
|
|
static bool | isCompressedFormat (const ECOLOR_FORMAT format) |
| check if this is compressed color format
|
|
static bool | isDepthFormat (const ECOLOR_FORMAT format) |
| check if the color format is only viable for depth/stencil textures
|
|
static bool | isFloatingPointFormat (const ECOLOR_FORMAT format) |
| Check if the color format uses floating point values for pixels.
|
|
Interface for software image data.
Image loaders create these images from files. IVideoDrivers convert these images into their (hardware) textures. NOTE: Floating point formats are not well supported yet. Basically only getData() works for them.