CRM64Pro GDK v0.11.0
A free cross-platform game development kit built on top of SDL 3.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
CRM64Pro::ImageMgr

Image Manager class. More...

Inherits CRM64Pro::ManagerBase.

Public Member Functions

Sint32 info (Sint32 idImg=0)
 Request Image Manager information.
 
Sint32 create (const string &sName, Uint32 iVersion=10)
 Creates a new image.
 
Sint32 close (Sint32 idImg)
 Close and destroy an image.
 
Sint32 getNum ()
 Get number of loaded objects.
 
Sint32 setName (Sint32 idImg, const string &sName)
 Change the object name.
 
Sint32 closeEx (Sint32 idImg, Uint32 iOwner)
 Close and destroy an image.
 
Imageget (Sint32 idImg)
 Get a pointer to the image using its handler.
 
Sint32 duplicate (Sint32 idImg, const string &sName)
 Duplicate an image creating a new, identical and independent one.
 
Sint32 child (Sint32 idImg)
 Create a child image dependant on the provided one(the parent).
 
Sint32 isBMP (const string &sFile)
 Check if the file is a BMP.
 
Sint32 isPNG (const string &sFile)
 Check if the file is a PNG.
 
Sint32 loadFromFile (const string &sFile, const string &sName="")
 Load an image (BMP or PNG formats).
 
Sint32 load (const string &sFileCDC, const string &sName)
 Load an image stored in a CDC file.
 
Sint32 load (const Sint32 idCDC, const string &sName)
 Load an image stored in a CDC file.
 
Sint32 load (void *pBuffer, Sint32 iSize, const string &sName)
 Load an image (BMP or PNG formats) stored on a memory buffer.
 
Sint32 remove (Sint32 idCDC, const string &sName)
 Remove an image stored in a CDC file.
 
Sint32 exist (Sint32 idCDC, const string &sName)
 Check if an image is stored in a CDC file.
 

Detailed Description

Image Manager class.