VR-Forces 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) 2022 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 
69  virtual int format(void) const;
70  protected:
71  int myWidth;
72  int myHeight;
73  std::string myName;
74 
76 
77  unsigned int myId;
80  };
81 }
DT_DLL_EXAMPLESCENEROOTPLUGIN void init(DtDe &anIG)
Dll export defines.
unsigned int myId
Definition: DtGlTexture.h:77
bool myExternalTex
Definition: DtGlTexture.h:79
std::string myName
Definition: DtGlTexture.h:73
GLenum myFormat
Definition: DtGlTexture.h:78
binderNoArgs< _Fn > bind(const _Fn &_Func, const _Ty &_Left)
Definition: DtSTLUtilities.h:76
DtGlImageType
Definition: DtGlImageType.h:15
int myHeight
Definition: DtGlTexture.h:72
int myWidth
Definition: DtGlTexture.h:71
Definition: DtGlImageType.h:22
unsigned int GLenum
Definition: DtGlTextureBufferObject.h:19
int myNumLayers
Definition: DtGlTexture.h:75
#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 Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)