VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
makVrv::DtTextureInterface Class Referenceabstract

Interface for a texture. Used to pass in a texture to vrvGraphics.

Inheritance diagram for makVrv::DtTextureInterface:
Inheritance graph
[legend]

Public Member Functions

 DtTextureInterface ()
 
virtual ~DtTextureInterface ()
 
 DtTextureInterface (const DtTextureInterface &)=delete
 
DtTextureInterfaceoperator= (const DtTextureInterface &)=delete
 
virtual bool loadTextureFromFile (const std::string &fileName)=0
 
virtual bool loadTextureFromFile (const std::string &fileName, const DtFileCache::LoadFileOptions &loadFileOptions)=0
 
virtual const std::string & filename () const =0
 
virtual float textureWidth () const =0
 
virtual void scaleTexture (int w, int h)=0
 
virtual bool getStipplePattern (char **stipplePattern)=0
 
virtual bool valid () const =0
 
virtual DtVector4< float > color (unsigned int x, unsigned int y) const =0
 

Constructor & Destructor Documentation

makVrv::DtTextureInterface::DtTextureInterface ( )

Constructor.

virtual makVrv::DtTextureInterface::~DtTextureInterface ( )
virtual

Destructor.

makVrv::DtTextureInterface::DtTextureInterface ( const DtTextureInterface )
delete

not allowed - copy constructor

Member Function Documentation

DtTextureInterface& makVrv::DtTextureInterface::operator= ( const DtTextureInterface )
delete

not allowed - equals operator

virtual bool makVrv::DtTextureInterface::loadTextureFromFile ( const std::string &  fileName)
pure virtual

Attempt to load a texture from file OSG overrides Returns true if loaded successfully // XXX TODO Add async loading.

Implemented in makVrv::DtOsgTextureWrapper.

virtual bool makVrv::DtTextureInterface::loadTextureFromFile ( const std::string &  fileName,
const DtFileCache::LoadFileOptions loadFileOptions 
)
pure virtual

Implemented in makVrv::DtOsgTextureWrapper.

virtual const std::string& makVrv::DtTextureInterface::filename ( ) const
pure virtual

Returns the name of the file that the texture was created from. Returns "" by default, for example if the texture was not initialized.

Implemented in makVrv::DtOsgTextureWrapper.

virtual float makVrv::DtTextureInterface::textureWidth ( ) const
pure virtual

Implemented in makVrv::DtOsgTextureWrapper.

virtual void makVrv::DtTextureInterface::scaleTexture ( int  w,
int  h 
)
pure virtual

Implemented in makVrv::DtOsgTextureWrapper.

virtual bool makVrv::DtTextureInterface::getStipplePattern ( char **  stipplePattern)
pure virtual

Get the 32x32 stipple pattern representation of this texture.

Implemented in makVrv::DtOsgTextureWrapper.

virtual bool makVrv::DtTextureInterface::valid ( ) const
pure virtual

Returns whether or not this wrapper contains a valid texture.

Implemented in makVrv::DtOsgTextureWrapper.

virtual DtVector4<float> makVrv::DtTextureInterface::color ( unsigned int  x,
unsigned int  y 
) const
pure virtual

Returns color at a texel value.

Implemented in makVrv::DtOsgTextureWrapper.


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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)