igor::iTextureFactory Class Reference

#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 iaStringgetType () const
 
const std::vector< iaString > & getSupportedExtensions () const
 
- Protected Member Functions inherited from igor::iFactory
virtual iaString getHashData (const iParameters &parameters) const
 
virtual iResourcePtr createResource (const iParameters &parameters)=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
 

Detailed Description

this factory creates texture resources

Member Function Documentation

◆ createThumbnail()

bool igor::iTextureFactory::createThumbnail ( const iaString source,
const iaString destination,
uint32  width = 128,
uint32  height = 128,
bool  keepAspectRatio = true 
)
static

generate a thumbnail for given texture

Parameters
sourcethe source texture
destinationthe thumbnail
widththe new width
heightthe new height
keepAspectRatioif true thumbnail will keep aspect ratio
Returns
true if successful

◆ loadPixmap()

iPixmapPtr igor::iTextureFactory::loadPixmap ( const iaString filename)
static

loads pixmap from file

Parameters
filenamethe file to load
Returns
pixmap

Friends And Related Function Documentation

◆ iResourceManager

friend class iResourceManager
friend

The documentation for this class was generated from the following files: