VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtLoadImageOnDemandCallback2D.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtLoadImageOnDemandCallback2D.h,v $ $Revision: 1.7 $ $State: Exp $
7 ******************************************************************************/
8 
12 #pragma once
13 
14 #include <osg/Texture2D>
15 
16 namespace makVrv
17 {
18  class DtLoadImageOnDemandCallback2D : public osg::Texture2D::SubloadCallback
19  {
20  public:
21 
22 
23  DtLoadImageOnDemandCallback2D(const osg::Image& originalImage,
24  osg::Texture::InternalFormatMode mode, const std::string& parentFilePath);
25 
26 
27  virtual void load(const osg::Texture2D& texture, osg::State& state) const;
28  virtual void subload(const osg::Texture2D& texture, osg::State& state) const;
29 
30  private:
31 
32  std::string _fileName;
33  osg::Image::Origin _origin;
34  int _s, _t, _r;
36  GLenum _pixelFormat;
37  GLenum _dataType;
38  unsigned int _packing;
39  osg::Texture::InternalFormatMode _mode;
41  };
42 }

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)