|
0.45.0
|
#include <iTextureFactory.h>
Inherits igor::iFactory.
Static Public Member Functions | |
| static iPixmapPtr | loadPixmap (const iaString &filename) |
| static bool | createThumbnail (const iaString &source, const iaString &destination, uint32 width=128, uint32 height=128, bool keepAspectRatio=true) |
Friends | |
| class | iResourceManager |
Additional Inherited Members | |
Public Member Functions inherited from igor::iFactory | |
| iFactory (const iaString &type, const std::vector< iaString > &supportedExtensions) | |
| virtual | ~iFactory ()=default |
| const iaString & | getType () const |
| const std::vector< iaString > & | getSupportedExtensions () const |
Protected Member Functions inherited from igor::iFactory | |
| virtual iaString | getHashData (const iParameters ¶meters) const |
| virtual iResourcePtr | createResource (const iParameters ¶meters)=0 |
| virtual iResourcePtr | createResource () |
| virtual bool | loadResource (iResourcePtr resource)=0 |
| virtual void | unloadResource (iResourcePtr resource)=0 |
| virtual bool | saveResource (iResourcePtr resource, const iaString &filename="") |
| virtual void | init () |
| virtual void | deinit () |
Protected Attributes inherited from igor::iFactory | |
| iaString | _type |
| std::vector< iaString > | _supportedExtensions |
this factory creates texture resources
|
static |
generate a thumbnail for given texture
| source | the source texture |
| destination | the thumbnail |
| width | the new width |
| height | the new height |
| keepAspectRatio | if true thumbnail will keep aspect ratio |
|
static |
loads pixmap from file
| filename | the file to load |
|
friend |