VR-Forces 4.8 Class Documentation
 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) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvOsg/vrvOsg.h>
12 #include <string>
13 #include <vector>
14 #include <osg/ref_ptr>
15 
16 namespace osg
17 {
18  class Image;
19  class Texture;
20 }
21 
22 namespace makVrv
23 {
25  {
26  public:
27  // user data tag for storing an Image's original source data location.
28  static const std::string TAG_SOURCE_LOCATION;
29 
30  // user data tag for storing the location from which an image was actually loaded.
31  static const std::string TAG_LOAD_LOCATION;
32 
33  public:
34 
38  static osg::Texture* createTexture(osg::Image* image);
39 
41  static bool flattenImage(osg::Image* input, std::vector<osg::ref_ptr<osg::Image> >& output);
42 
48  static void configureTextureForAutoReload(osg::Texture* texture);
49  };
50 }
Diagonal crossing liens.
Definition: DtTacticalGraphicUtilities.h:93
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
static const std::string TAG_LOAD_LOCATION
Definition: DtOsgImageUtils.h:31
Definition: DtOsgImageUtils.h:24
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:28
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)