/usr/include/globjects/globjects.inl is in libglobjects-dev 1.1.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | #pragma once
#include <utility>
#include <glbinding/gl/functions.h>
namespace globjects
{
template <int Count>
std::array<gl::GLint, Count> getIntegers(const gl::GLenum pname)
{
std::array<gl::GLint, Count> values;
gl::glGetIntegerv(pname, reinterpret_cast<gl::GLint*>(&values));
return values;
}
template <int Count>
std::array<gl::GLenum, Count> getEnums(const gl::GLenum pname)
{
std::array<gl::GLenum, Count> values;
gl::glGetIntegerv(pname, reinterpret_cast<gl::GLint*>(&values));
return values;
}
template <int Count>
std::array<gl::GLfloat, Count> getFloats(const gl::GLenum pname)
{
std::array<gl::GLfloat, Count> values;
gl::glGetFloatv(pname, reinterpret_cast<gl::GLfloat*>(&values));
return values;
}
template <int Count>
std::array<gl::GLdouble, Count> getDoubles(const gl::GLenum pname)
{
std::array<gl::GLdouble, Count> values;
gl::glGetDoublev(pname, reinterpret_cast<gl::GLdouble*>(&values));
return values;
}
template <int Count>
std::array<gl::GLboolean, Count> getBooleans(const gl::GLenum pname)
{
std::array<gl::GLboolean, Count> values;
gl::glGetBooleanv(pname, reinterpret_cast<gl::GLboolean*>(&values));
return values;
}
template <typename T, typename... Args>
void init(T strategy, Args... args)
{
init(args...);
initializeStrategy(strategy);
}
template <typename T, typename... Args>
void init(const glbinding::ContextHandle sharedContextId, T strategy, Args... args)
{
init(sharedContextId, args...);
initializeStrategy(strategy);
}
} // namespace globjects
|