OGLplus (0.52.0) a C++ wrapper for OpenGL

ATI_meminfo.hpp
Go to the documentation of this file.
1 
12 #pragma once
13 #ifndef OGLPLUS_EXT_ATI_MEMINFO_1203031902_HPP
14 #define OGLPLUS_EXT_ATI_MEMINFO_1203031902_HPP
15 
16 #include <oglplus/extension.hpp>
17 
18 namespace oglplus {
19 
20 #if OGLPLUS_DOCUMENTATION_ONLY || GL_ATI_meminfo
21 
29 {
30 public:
33  {
34  // private implementation detail. Do NOT use
35  GLint _v[4];
36 
38  GLint TotalFree(void) const
39  {
40  return _v[0];
41  }
42 
44  GLint LargestFreeBlock(void) const
45  {
46  return _v[1];
47  }
48 
50  GLint TotalAuxFree(void) const
51  {
52  return _v[2];
53  }
54 
56  GLint LargestAuxFreeBlock(void) const
57  {
58  return _v[3];
59  }
60  };
61 
62  OGLPLUS_EXTENSION_CLASS(ATI, meminfo)
63 
64 
65 
71  {
72  AvailableMemory result;
73  OGLPLUS_GLFUNC(GetIntegerv)(
74  GL_VBO_FREE_MEMORY_ATI,
75  result._v
76  );
77  OGLPLUS_VERIFY_SIMPLE(GetIntegerv);
78  return result;
79  }
80 
82 
88  {
89  AvailableMemory result;
90  OGLPLUS_GLFUNC(GetIntegerv)(
91  GL_TEXTURE_FREE_MEMORY_ATI,
92  result._v
93  );
94  OGLPLUS_VERIFY_SIMPLE(GetIntegerv);
95  return result;
96  }
97 
99 
105  {
106  AvailableMemory result;
107  OGLPLUS_GLFUNC(GetIntegerv)(
108  GL_RENDERBUFFER_FREE_MEMORY_ATI,
109  result._v
110  );
111  OGLPLUS_VERIFY_SIMPLE(GetIntegerv);
112  return result;
113  }
114 };
115 #endif
116 
117 } // namespace oglplus
118 
119 #endif // include guard
static AvailableMemory RenderbufferFreeMemory(void)
Returns information about free memory usable for renderbuffers.
Definition: ATI_meminfo.hpp:104
GLint LargestFreeBlock(void) const
Largest free memory block in kB.
Definition: ATI_meminfo.hpp:44
GLint TotalFree(void) const
Total free memory in kB.
Definition: ATI_meminfo.hpp:38
Funcions and classes for handling and wrapping OpenGL extensions.
GLint LargestAuxFreeBlock(void) const
Largest free block in auxiliary memory in kB.
Definition: ATI_meminfo.hpp:56
static AvailableMemory TextureFreeMemory(void)
Returns information about free memory usable for textures.
Definition: ATI_meminfo.hpp:87
Structure storing information about available memory.
Definition: ATI_meminfo.hpp:32
GLint TotalAuxFree(void) const
Total free auxiliary memory in kB.
Definition: ATI_meminfo.hpp:50
static AvailableMemory VBOFreeMemory(void)
Returns information about free memory usable for VBOs.
Definition: ATI_meminfo.hpp:70
Wrapper for the ATI_meminfo extension.
Definition: ATI_meminfo.hpp:28

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).