|
0.46.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, uint32 height, bool keepAspectRatio=true) |
| static bool | writePixmap (iPixmapPtr pixmap, const iaString &dst) |
| static iTexturePtr | pixmapToTexture (iPixmapPtr pixmap) |
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 |
|
static |
generates a texture from given pixmap
| shader | the given shader |
| width | width of texture |
| height | height of texture |
|
static |
writes pixmap to disc
| pixmap | the given pixmap data |
| dst | the file destination to write to |
|
friend |