VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgImageUtils.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 #include <vrvOsg/vrvOsg.h>
12 
13 #include <osg/ref_ptr>
14 
15 #include <string>
16 #include <vector>
17 
18 namespace osg
19 {
20  class Image;
21 }
22 
23 namespace makVrv
24 {
26  {
27  public:
28  // user data tag for storing an Image's original source data location.
29  static const std::string TAG_SOURCE_LOCATION;
30 
31  // user data tag for storing the location from which an image was actually loaded.
32  static const std::string TAG_LOAD_LOCATION;
33 
34  public:
35 
37  static bool flattenImage(osg::Image* input, std::vector<osg::ref_ptr<osg::Image> >& output);
38 
40  static bool ts_setCompressionDisabledHint(osg::Image* image, bool val);
41 
43  static bool ts_compressionDisabledHint(osg::Image* image);
44  };
45 }
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
static const std::string TAG_LOAD_LOCATION
Definition: DtOsgImageUtils.h:32
Definition: DtOsgImageUtils.h:25
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))
static const std::string TAG_SOURCE_LOCATION
Definition: DtOsgImageUtils.h:29
Contains DLL export macros.

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)