VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtGlTextureBufferObject.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2023 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 #pragma once
10 
14 
15 #include <vrvMath/DtDataFormat.h>
16 #include <vrvMath/DtCommonTypes.h>
17 
18 typedef unsigned int GLuint;
19 typedef unsigned int GLenum;
20 
21 
22 namespace makVrv {
23 
24  class Device;
25 
29  {
30  public:
33  const char * name,
34  DtDataFormat format
35  , DtUsage usage
36  , DtCpuAccess cpuAccess
37  );
38 
40  DtGlTextureBufferObject() = delete;
44  DtGlTextureBufferObject& operator=(const DtGlTextureBufferObject& rhs) = delete;
45 
47  virtual ~DtGlTextureBufferObject();
48  public:
50  virtual void copyAndOrphanStreamedData(void* pData, size_t sizeInBytes);
51 
52  virtual void bindTexture(void);
53 
54  virtual void tearDown(void);
55 
56  protected:
57  virtual void initialize();
58  protected:
59  std::string myName;
62  size_t mySizeInBytes;
63 
69  };
70 }
Wrapper for OpenGL Texture Buffer Object.
Definition: DtGlTextureBufferObject.h:28
size_t mySizeInBytes
Definition: DtGlTextureBufferObject.h:62
Dll export defines.
GLuint myTextureBufferObjectID
Definition: DtGlTextureBufferObject.h:60
DtDataFormat myFormat
Definition: DtGlTextureBufferObject.h:66
DtCpuAccess myCPUAccess
Definition: DtGlTextureBufferObject.h:65
unsigned int GLuint
Definition: DtGlTextureBufferObject.h:18
Buffer Usage enums.
DtUsage
Definition: DtUsage.h:13
std::string myName
Definition: DtGlTextureBufferObject.h:59
Enumerations for cpu access required by textures/buffers.
DtUsage myUsage
Definition: DtGlTextureBufferObject.h:64
GLenum myGLInternalFormat
Definition: DtGlTextureBufferObject.h:68
unsigned int GLenum
Definition: DtGlTextureBufferObject.h:19
Enumerations for various types of texture/buffer formats.
DtDataFormat
Definition: DtDataFormat.h:15
#define DT_DLL_VRVGRAPHICSUTILS
Definition: vrvGraphicsUtils.h:18
GLuint myTextureID
Definition: DtGlTextureBufferObject.h:61
DtCpuAccess
Definition: DtCpuAccess.h:13
GLenum myGLUsage
Definition: DtGlTextureBufferObject.h:67

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)