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

Static Public Member Functions

static void processTexture (osg::Texture &texture, const osg::Image *image, bool unloadImageDataFlag, bool compressTextures, const std::string &filePath)
 
static osg::Texture * createTexture (osg::Image *image)
 
static std::string getTextureFilePath (const osg::Texture *texture)
 
static std::string getTextureFileName (const osg::Texture *texture)
 

Member Function Documentation

static void makVrv::DtOsgTextureUtils::processTexture ( osg::Texture &  texture,
const osg::Image *  image,
bool  unloadImageDataFlag,
bool  compressTextures,
const std::string &  filePath 
)
static

set up the texture based on the image -loads the image from file into the texture -set up the load image on demand callbacks on the texture (taking compression into account) -set up the unref flags

static osg::Texture* makVrv::DtOsgTextureUtils::createTexture ( osg::Image *  image)
static

Creates a texture from an osg::Image. If the image has one layer (r==1) the method creates an osg::Texture2D. If the image has more than one layer (r>1) the method creates an osg::Texture2DArray.

static std::string makVrv::DtOsgTextureUtils::getTextureFilePath ( const osg::Texture *  texture)
static
static std::string makVrv::DtOsgTextureUtils::getTextureFileName ( const osg::Texture *  texture)
static

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

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)