VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtGlObjects.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2023 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
13 
14 #include <tuple>
15 
16 namespace makVrv
17 {
19  typedef std::tuple<unsigned int, const void*> DtGlFboAndContext;
20 
22  typedef std::tuple<unsigned int, const void*> DtGlVaoAndContext;
23 
25  typedef std::tuple<unsigned int, const void*> DtGlObjectAndContext;
26 
31  {
32  public:
35  DtGlObject(const void* glContext);
37  virtual ~DtGlObject();
38  private:
40  DtGlObject() = delete;
42  DtGlObject(const DtGlObject& rhs) = delete;
44  DtGlObject& operator=(const DtGlObject& rhs) = delete;
45  public:
47  virtual void deleteGlObjects(void) = 0;
48  public:
49  const void* myGlContext = nullptr;
50  };
51 }
52 
Dll export defines.
A Generic object that needs clean up in the right context (the one it was created in) This can be use...
Definition: DtGlObjects.h:30
std::tuple< unsigned int, const void * > DtGlVaoAndContext
a vao and the context it was created in
Definition: DtGlObjects.h:22
std::tuple< unsigned int, const void * > DtGlObjectAndContext
an OpenGL object and the context it was created in
Definition: DtGlObjects.h:25
std::tuple< unsigned int, const void * > DtGlFboAndContext
an fbo and the context it was created in
Definition: DtGlObjects.h:19
#define DT_DLL_VRVGRAPHICSUTILS
Definition: vrvGraphicsUtils.h:18

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)