VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtGlTextureUtils.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2019 VT-MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
12 #include <GL/glew.h>
13 #include <map>
14 
15 namespace makVrv
16 {
18  {
19  public:
20  typedef std::map<unsigned int, int> TexIDToCount;
21  typedef std::map<void*, TexIDToCount> ContextToTexID;
22 
23  static void MakeResidentIfNecessary(void* gContext, GLuint textureID);
27  static bool MakeNonResidentIfNecessary(void* gContext, GLuint textureID, bool canDelete);
28  static GLuint64 GetAddress(GLuint textureID);
29  static bool isTexture(GLuint textureID);
30  static void ContextToBeDeleted(void* gContext);
31 
34  };
35 }
Dll export defines.
unsigned int GLuint
Definition: DtGlTextureBufferObject.h:17
std::map< unsigned int, int > TexIDToCount
Definition: DtGlTextureUtils.h:20
static ContextToTexID theTextureCountByContext
Definition: DtGlTextureUtils.h:32
Definition: DtGlTextureUtils.h:17
static TexIDToCount theTextureCountAcrossContexts
Definition: DtGlTextureUtils.h:33
std::map< void *, TexIDToCount > ContextToTexID
Definition: DtGlTextureUtils.h:21
#define DT_DLL_VRVGRAPHICSUTILS
Definition: vrvGraphicsUtils.h:18

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)