VR-Forces 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) 2022 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  class Texture;
22 }
23 
24 namespace makVrv
25 {
27  {
28  public:
29  // user data tag for storing an Image's original source data location.
30  static const std::string TAG_SOURCE_LOCATION;
31 
32  // user data tag for storing the location from which an image was actually loaded.
33  static const std::string TAG_LOAD_LOCATION;
34 
35  public:
36 
38  static bool flattenImage(osg::Image* input, std::vector<osg::ref_ptr<osg::Image> >& output);
39 
41  static bool ts_setCompressionDisabledHint(osg::Image* image, bool val);
42 
44  static bool ts_compressionDisabledHint(const osg::Image* image);
45 
47  static void zeroOutImagesIfUnrefImages(osg::Texture* srcOsgTexture, bool gltf);
48  };
49 }
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
static const std::string TAG_LOAD_LOCATION
Definition: DtOsgImageUtils.h:33
Definition: DtOsgImageUtils.h:26
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:30
Contains DLL export macros.

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)