VR-Forces 4.8 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) 2018 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,
31  bool compressTextures, std::string filePath);
33  static unsigned int GetTextureID(unsigned int contextID, const osg::Texture* texture);
34 
36  static unsigned int GetTextureIDIfDownloaded(unsigned int contextID, const osg::Texture* texture);
37 
38  //Get the texture name from the first image, return "" if the first image didn't exist
39  static std::string getTextureFilePath(const osg::Texture* texture);
40  static std::string getTextureFileName(const osg::Texture* texture);
41 
42  };
43 }
Diagonal crossing liens.
Definition: DtTacticalGraphicUtilities.h:93
Definition: DtOsgTextureUtils.h:25
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
IMGUI_API void Image(ImTextureID user_texture_id, const ImVec2 &size, const ImVec2 &uv0=ImVec2(0, 0), const ImVec2 &uv1=ImVec2(1, 1), const ImVec4 &tint_col=ImVec4(1, 1, 1, 1), const ImVec4 &border_col=ImVec4(0, 0, 0, 0))
Contains DLL export macros.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)