CRM64Pro GDK v0.11.0
A free cross-platform game development kit built on top of SDL 3.0
|
Inherits CRM64Pro::ObjectBase.
Public Member Functions | |
Sint32 | info (Sint32 iMode=0) |
Request Image object information. | |
Sint32 | getName (string &sName) |
Get the name. | |
Uint32 | getID () |
Get the ID. | |
Sint32 | assignSurface (SDL_Surface *pSurf, Sint32 iOwnership=0) |
Assign a SDL_Surface to this image. | |
Sint32 | setOwner (Sint32 iOwner) |
Set the owner of this image. | |
Sint32 | getOwner () |
Get the owner of this image. | |
Sint32 | optimize (Sint32 idScreen=0) |
Optimize the image for rendering on the screens on the most efficient way. | |
Sint32 | rebuild () |
Rebuild the current textures. | |
Sint32 | render (Sint32 idRes=0, SDL_Rect *rSrc=nullptr, SDL_Rect *rDst=nullptr) |
Render the image to the screen. | |
Sint32 | renderEx (const double dAngle, const SDL_Point *poCenter=nullptr, const SDL_FlipMode rf=SDL_FLIP_NONE, Sint32 idRes=0, SDL_Rect *rSrc=nullptr, SDL_Rect *rDst=nullptr) |
Render the image to the screen with extended attributes: can rotate and flipping the image. | |
Sint32 | applyFilter (eImageFilter eFilter, Sint32 iValue=0) |
Apply a filter to this image. | |
Sint32 | setBlendMode (SDL_BlendMode bmValue) |
Set blend mode used for rendering this image. | |
SDL_BlendMode | getBlendMode () |
Get blend mode used for rendering this image. | |
Sint32 | setAlphaMod (Sint32 iAlpha) |
Set alpha modulation used for rendering this image. | |
Sint32 | getAlphaMod () |
Get alpha modulation used for rendering this image. | |
Sint32 | setColorMod (Uint8 iR, Uint8 iG, Uint8 iB) |
Set color modulation used for rendering this image. | |
Sint32 | getColorMod (Uint8 &iR, Uint8 &iG, Uint8 &iB) |
Get color modulation used for rendering this image. | |
Sint32 | setColorKey (Sint16 iR=-1, Sint16 iG=-1, Sint16 iB=-1) |
Set colorkey used for rendering this image. | |
Sint32 | getColorKey (Sint16 &iR, Sint16 &iG, Sint16 &iB) |
Get colorkey used for rendering this image. | |
SDL_Surface * | getSurface () |
Get the source surface of this image. | |
Sint32 | findTex (Sint32 &iIndex, SDL_Texture *&pTex, Sint32 &idScreen) |
Get the texture for each screen of this image. | |
Sint32 | saveToBMP (const string &sFile="") |
Export the image to a BMP file. | |
Sint32 | saveToPNG (const string &sFile="") |
Save the image to an external PNG file. | |
Sint32 | save (const string &sFileCDC) |
Save the image to a CDC file. | |
Sint32 | save (Sint32 idCDC) |
Save the image to a CDC file. | |
Image Object class.