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

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)