VR-Forces 5.0.1 Developer's Guide
 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) 2021 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  public:
32  static void processTexture(osg::Texture& texture, const osg::Image* image
33  , bool unloadImageDataFlag, bool compressTextures, const std::string& filePath);
34 
38  static osg::Texture* createTexture(osg::Image* image);
39 
40  //Get the texture name from the first image, return "" if the first image didn't exist
41  static std::string getTextureFilePath(const osg::Texture* texture);
42  static std::string getTextureFileName(const osg::Texture* texture);
43  };
44 }
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 Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)