VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgTextureUtils.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 #include <string>
14 #include <osg/ref_ptr>
15 
16 // forward declarations
17 namespace osg
18 {
19  class Texture;
20  class Image;
21 }
22 
23 namespace makVrv
24 {
26  {
27 
28  public:
30  static void processTexture( osg::Texture &texture, const osg::Image* img, bool unloadImageDataFlag, bool compressTextures, std::string filePath);
32  static unsigned int GetTextureID(unsigned int contextID, osg::ref_ptr<osg::Texture> texture);
33 
35  static unsigned int GetTextureIDIfDownloaded(unsigned int contextID, osg::ref_ptr<osg::Texture> texture);
36 
37  //Get the texture name from the first image, return "" if the first image didn't exist
38  static std::string getTextureFilePath(const osg::Texture* texture);
39  static std::string getTextureFileName(const osg::Texture* texture);
40 
41  };
42 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)