Fission FSN
Loading...
Searching...
No Matches
fsITexture Class Referenceabstract

#include <fsITexture.h>

Inheritance diagram for fsITexture:

Classes

struct  fsSOptions

Public Types

enum class  fsFilterMode {
  eNEAREST , eNEAREST_MIPMAP_NEAREST , eNEAREST_MIPMAP_LINEAR , eLINEAR ,
  eLINEAR_MIPMAP_LINEAR , eLINEAR_MIPMAP_NEAREST , eDONT_CARE
}
enum class  fsWrapMode { eREPEAT , eMIRROR_REPEAT , eCLAMP_TO_EDGE , eDONT_CARE }

Public Member Functions

void filterModeSet (fsFilterMode pNewMode)
void wrapModeSet (fsWrapMode pNewMode)
std::shared_ptr< fsITexturecloneSubSection (fsCBrush const *pBlend, fsPoint const &pOffset)
void blend (fsCBrush const *pBlend, fsPoint const &pOffset)
void finalise ()
fsSColour4B pixelGet (fsS32 pU, fsS32 pV, fsS32 pCol, fsS32 pRow)
void pixelSet (fsS32 pU, fsS32 pV, fsS32 pCol, fsS32 pRow, fsSColour4B const &pPixel)
void textureCopyThroughStencil (std::shared_ptr< fsITexture > pSrc, std::shared_ptr< fsITexture > pStencil, fsS32 pU, fsS32 pV, fsS32 pX, fsS32 pY, fsS32 pAlphaHitMaskThreshold)
void textureCopyInto (std::shared_ptr< fsITexture > pSrc, fsS32 pU, fsS32 pV, fsS32 pX, fsS32 pY)
virtual fsS32 imageWidthGet () const =0
virtual fsS32 imageHeightGet () const =0
virtual fsS32 textureWidthGet () const =0
virtual fsS32 textureHeightGet () const =0
fsBool hasHitMapGet () const
fsBool hitTest (fsPoint const &pLocalPoint) const
virtual fsU8 alphaGet (fsS32 pU, fsS32 pV, fsS32 pCol, fsS32 pRow) const
virtual fsBool hasAlphaChannelGet () const
virtual ~fsITexture ()

Protected Member Functions

virtual void createFromAlpha8Data (std::vector< fsU8 > &pAlphaData, fsS32 pImgW, fsS32 pImgH, fsPoint const &pPOTDimenions)
virtual void createFromImage (fsIImage const *pImage)=0
virtual void filterModeSetDo (fsFilterMode pNewMode)=0
virtual void wrapModeSetDo (fsWrapMode pNewMode)=0
virtual fsU8 alphaValueGet (fsS32 pImgX, fsS32 pImgY)
virtual std::shared_ptr< fsITexturedoCloneSubSection (fsCBrush const *pBlend, fsPoint const &pOffset) const =0
virtual void doBlend (fsCBrush const *pBlend, fsPoint const &pOffset)=0
virtual fsSColour4B pixelGetDo (fsS32 pU, fsS32 pV, fsS32 pCol, fsS32 pRow)
virtual void doPixelSet (fsS32 pU, fsS32 pV, fsS32 pCol, fsS32 pRow, fsSColour4B const &pPixel)
virtual void doTextureCopyThroughStencil (std::shared_ptr< fsITexture > pDest, std::shared_ptr< fsITexture > pStencil, fsS32 pU, fsS32 pV, fsS32 pX, fsS32 pY, fsS32 pAlphaHitMaskThreshold)
virtual void doTextureCopyInto (std::shared_ptr< fsITexture > pDest, fsS32 pU, fsS32 pV, fsS32 pX, fsS32 pY)
 fsITexture ()
void hitMapStore (fsU8 pAlphaThreshold=0)
void emptyImageCreate (fsS32 pWidth, fsS32 pHeight)
void imageLoad (fsCResourceName const &pImageFileName)
void imageFileLoad (fsCResourceName const &pImageFileName, fsBool pUVAnimation)
void maskFileLoad (fsCResourceName const &pImageFileName, fsBool pUVAnimation)

Static Protected Member Functions

static std::shared_ptr< fsITexturecreateFromImageFile (fsSOptions const &pOptions)
static std::shared_ptr< fsITexturecreateAlpha8FromTextureWithHitmap (std::shared_ptr< fsITexture > pTextureWithHitmap, fsS32 pU, fsS32 pV, fsS32 pW, fsS32 pH)
static std::shared_ptr< fsITexturecreateWithEmptyImage (fsS32 pWidth, fsS32 pHeight)

Protected Attributes

std::unique_ptr< fsIImagemImage
fsS32 mWidth
fsS32 mHeight

Friends

class fsCBrushManager
class fsCParticleData
class fsCParticleCloud
class fsIParticleCloud
class fsCSequenceParticleCloud
class gfCMazeSolution

Member Enumeration Documentation

◆ fsFilterMode

enum class fsITexture::fsFilterMode
strong
Enumerator
eNEAREST 
eNEAREST_MIPMAP_NEAREST 
eNEAREST_MIPMAP_LINEAR 
eLINEAR 
eLINEAR_MIPMAP_LINEAR 
eLINEAR_MIPMAP_NEAREST 
eDONT_CARE 

◆ fsWrapMode

enum class fsITexture::fsWrapMode
strong
Enumerator
eREPEAT 
eMIRROR_REPEAT 
eCLAMP_TO_EDGE 
eDONT_CARE 

Constructor & Destructor Documentation

◆ ~fsITexture()

fsITexture::~fsITexture ( )
virtual

◆ fsITexture()

fsITexture::fsITexture ( )
protected

Member Function Documentation

◆ alphaGet()

virtual fsU8 fsITexture::alphaGet ( fsS32 pU,
fsS32 pV,
fsS32 pCol,
fsS32 pRow ) const
inlinevirtual

◆ alphaValueGet()

virtual fsU8 fsITexture::alphaValueGet ( fsS32 pImgX,
fsS32 pImgY )
inlineprotectedvirtual

◆ blend()

void fsITexture::blend ( fsCBrush const * pBlend,
fsPoint const & pOffset )

◆ cloneSubSection()

std::shared_ptr< fsITexture > fsITexture::cloneSubSection ( fsCBrush const * pBlend,
fsPoint const & pOffset )

◆ createAlpha8FromTextureWithHitmap()

std::shared_ptr< fsITexture > fsITexture::createAlpha8FromTextureWithHitmap ( std::shared_ptr< fsITexture > pTextureWithHitmap,
fsS32 pU,
fsS32 pV,
fsS32 pW,
fsS32 pH )
staticprotected

◆ createFromAlpha8Data()

virtual void fsITexture::createFromAlpha8Data ( std::vector< fsU8 > & pAlphaData,
fsS32 pImgW,
fsS32 pImgH,
fsPoint const & pPOTDimenions )
inlineprotectedvirtual

◆ createFromImage()

virtual void fsITexture::createFromImage ( fsIImage const * pImage)
protectedpure virtual

◆ createFromImageFile()

std::shared_ptr< fsITexture > fsITexture::createFromImageFile ( fsSOptions const & pOptions)
staticprotected

◆ createWithEmptyImage()

std::shared_ptr< fsITexture > fsITexture::createWithEmptyImage ( fsS32 pWidth,
fsS32 pHeight )
staticprotected

◆ doBlend()

virtual void fsITexture::doBlend ( fsCBrush const * pBlend,
fsPoint const & pOffset )
protectedpure virtual

◆ doCloneSubSection()

virtual std::shared_ptr< fsITexture > fsITexture::doCloneSubSection ( fsCBrush const * pBlend,
fsPoint const & pOffset ) const
protectedpure virtual

◆ doPixelSet()

virtual void fsITexture::doPixelSet ( fsS32 pU,
fsS32 pV,
fsS32 pCol,
fsS32 pRow,
fsSColour4B const & pPixel )
inlineprotectedvirtual

◆ doTextureCopyInto()

virtual void fsITexture::doTextureCopyInto ( std::shared_ptr< fsITexture > pDest,
fsS32 pU,
fsS32 pV,
fsS32 pX,
fsS32 pY )
inlineprotectedvirtual

◆ doTextureCopyThroughStencil()

virtual void fsITexture::doTextureCopyThroughStencil ( std::shared_ptr< fsITexture > pDest,
std::shared_ptr< fsITexture > pStencil,
fsS32 pU,
fsS32 pV,
fsS32 pX,
fsS32 pY,
fsS32 pAlphaHitMaskThreshold )
inlineprotectedvirtual

◆ emptyImageCreate()

void fsITexture::emptyImageCreate ( fsS32 pWidth,
fsS32 pHeight )
protected

◆ filterModeSet()

void fsITexture::filterModeSet ( fsFilterMode pNewMode)

◆ filterModeSetDo()

virtual void fsITexture::filterModeSetDo ( fsFilterMode pNewMode)
protectedpure virtual

◆ finalise()

void fsITexture::finalise ( )

◆ hasAlphaChannelGet()

virtual fsBool fsITexture::hasAlphaChannelGet ( ) const
inlinevirtual

◆ hasHitMapGet()

fsBool fsITexture::hasHitMapGet ( ) const

◆ hitMapStore()

void fsITexture::hitMapStore ( fsU8 pAlphaThreshold = 0)
protected

◆ hitTest()

fsBool fsITexture::hitTest ( fsPoint const & pLocalPoint) const

◆ imageFileLoad()

void fsITexture::imageFileLoad ( fsCResourceName const & pImageFileName,
fsBool pUVAnimation )
protected

◆ imageHeightGet()

virtual fsS32 fsITexture::imageHeightGet ( ) const
pure virtual

◆ imageLoad()

void fsITexture::imageLoad ( fsCResourceName const & pImageFileName)
protected

◆ imageWidthGet()

virtual fsS32 fsITexture::imageWidthGet ( ) const
pure virtual

◆ maskFileLoad()

void fsITexture::maskFileLoad ( fsCResourceName const & pImageFileName,
fsBool pUVAnimation )
protected

◆ pixelGet()

fsSColour4B fsITexture::pixelGet ( fsS32 pU,
fsS32 pV,
fsS32 pCol,
fsS32 pRow )

◆ pixelGetDo()

virtual fsSColour4B fsITexture::pixelGetDo ( fsS32 pU,
fsS32 pV,
fsS32 pCol,
fsS32 pRow )
inlineprotectedvirtual

◆ pixelSet()

void fsITexture::pixelSet ( fsS32 pU,
fsS32 pV,
fsS32 pCol,
fsS32 pRow,
fsSColour4B const & pPixel )

◆ textureCopyInto()

void fsITexture::textureCopyInto ( std::shared_ptr< fsITexture > pSrc,
fsS32 pU,
fsS32 pV,
fsS32 pX,
fsS32 pY )

◆ textureCopyThroughStencil()

void fsITexture::textureCopyThroughStencil ( std::shared_ptr< fsITexture > pSrc,
std::shared_ptr< fsITexture > pStencil,
fsS32 pU,
fsS32 pV,
fsS32 pX,
fsS32 pY,
fsS32 pAlphaHitMaskThreshold )

◆ textureHeightGet()

virtual fsS32 fsITexture::textureHeightGet ( ) const
pure virtual

◆ textureWidthGet()

virtual fsS32 fsITexture::textureWidthGet ( ) const
pure virtual

◆ wrapModeSet()

void fsITexture::wrapModeSet ( fsWrapMode pNewMode)

◆ wrapModeSetDo()

virtual void fsITexture::wrapModeSetDo ( fsWrapMode pNewMode)
protectedpure virtual

◆ fsCBrushManager

friend class fsCBrushManager
friend

◆ fsCParticleCloud

friend class fsCParticleCloud
friend

◆ fsCParticleData

friend class fsCParticleData
friend

◆ fsCSequenceParticleCloud

friend class fsCSequenceParticleCloud
friend

◆ fsIParticleCloud

friend class fsIParticleCloud
friend

◆ gfCMazeSolution

friend class gfCMazeSolution
friend

Member Data Documentation

◆ mHeight

fsS32 fsITexture::mHeight
protected

◆ mImage

std::unique_ptr<fsIImage> fsITexture::mImage
protected

◆ mWidth

fsS32 fsITexture::mWidth
protected

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