VR-Forces 5.0.1 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtGlTexture.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 #pragma once
6 
10 
11 
14 
15 #include <string>
16 
17 namespace makVrv
18 {
21  {
22  public:
24  DtGlTexture(const std::string& name, int width, int height, int numLayers);
25 
27  virtual ~DtGlTexture();
28  private:
30  DtGlTexture();
31 
33  DtGlTexture(const DtGlTexture&);
34 
36  DtGlTexture& operator=(const DtGlTexture&);
37  public:
39  virtual bool init(unsigned int glColorTexId);
40 
42  virtual bool init(DtGlImageType colorFormat = RGB32F, GLenum minFilter = GL_LINEAR, GLenum wrapMode = GL_CLAMP_TO_EDGE);
43 
45  virtual bool initAsDepth(unsigned int glDepthTexId);
46 
48  virtual bool initAsDepth(DtGlImageType depthFormat);
49 
51  virtual GLenum glTextureFormat(void) const;
52 
54  virtual unsigned int id(void) const;
55 
57  virtual int width() const;
58 
60  virtual int height() const;
61 
63  virtual int layers(void) const;
64 
66  virtual void bind(int unit);
67  protected:
68  int myWidth;
69  int myHeight;
70  std::string myName;
71 
73 
74  unsigned int myId;
77  };
78 }
DT_DLL_EXAMPLESCENEROOTPLUGIN void init(DtDe &anIG)
Dll export defines.
unsigned int myId
Definition: DtGlTexture.h:74
bool myExternalTex
Definition: DtGlTexture.h:76
std::string myName
Definition: DtGlTexture.h:70
GLenum myFormat
Definition: DtGlTexture.h:75
binderNoArgs< _Fn > bind(const _Fn &_Func, const _Ty &_Left)
Definition: DtSTLUtilities.h:76
DtGlImageType
Definition: DtGlImageType.h:15
int myHeight
Definition: DtGlTexture.h:69
int myWidth
Definition: DtGlTexture.h:68
Definition: DtGlImageType.h:20
unsigned int GLenum
Definition: DtGlTextureBufferObject.h:18
int myNumLayers
Definition: DtGlTexture.h:72
#define DT_DLL_VRVGRAPHICSUTILS
Definition: vrvGraphicsUtils.h:18
enum representing an OpenGL image type
A helper classes for creating a RTT target, optionally including depth buffer.
Definition: DtGlTexture.h:20

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)