VR-Forces 5.0.3 Developer's Guide
 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) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 #pragma once
10 
11 #include <osg/Texture1D>
12 #include <string>
13 
14 namespace makVrv
15 {
17  {
18  public:
20  DtLoadImageOnDemandCallback1D(const osg::Image& originalImage,
21  osg::Texture::InternalFormatMode mode,
22  const std::string& parentFilePath);
23 
26  private:
29 
32 
35  public:
36 
38  virtual void load(const osg::Texture1D& texture, osg::State& state) const override;
39 
41  virtual void subload(const osg::Texture1D& texture, osg::State& state) const override;
42  protected:
43 
44  const osg::Image::Origin myImageOrigin;
45 
46  const int myS, myT, myR;
47 
51  const osg::Texture::InternalFormatMode myMode;
52 
53  std::string myFileName;
54 
55  const unsigned int myPacking;
56  };
57 
58 }
const int myT
Definition: DtLoadImageOnDemandCallback1D.h:46
std::string myFileName
Definition: DtLoadImageOnDemandCallback1D.h:53
Definition: DtLoadImageOnDemandCallback1D.h:16
const int myR
Definition: DtLoadImageOnDemandCallback1D.h:46
virtual void load(const osg::Texture1D &texture, osg::State &state) const override
invoked on load, overridden
const GLenum myDataType
Definition: DtLoadImageOnDemandCallback1D.h:50
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))
const osg::Texture::InternalFormatMode myMode
Definition: DtLoadImageOnDemandCallback1D.h:51
const int myS
Definition: DtLoadImageOnDemandCallback1D.h:46
DtLoadImageOnDemandCallback1D & operator=(const DtLoadImageOnDemandCallback1D &)=delete
not allowed
DtLoadImageOnDemandCallback1D()=delete
not allowed
unsigned int GLenum
Definition: DtGlTextureBufferObject.h:18
const char int mode
Definition: ioapi.h:38
const GLint myInternalTextureFormat
Definition: DtLoadImageOnDemandCallback1D.h:48
virtual void subload(const osg::Texture1D &texture, osg::State &state) const override
invoked on sub-load, overridden
const GLenum myPixelFormat
Definition: DtLoadImageOnDemandCallback1D.h:49
const osg::Image::Origin myImageOrigin
Definition: DtLoadImageOnDemandCallback1D.h:44
const unsigned int myPacking
Definition: DtLoadImageOnDemandCallback1D.h:55

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)