33#ifndef DVD_GL_RESOURCES_INL_
34#define DVD_GL_RESOURCES_INL_
40void getGLValue(
const gl46core::GLenum param, T& value,
const gl46core::GLint index)
42 gl46core::GLint valueTemp = 0;
45 gl46core::glGetIntegerv(param, &valueTemp);
49 gl46core::glGetIntegeri_v(param,
static_cast<gl46core::GLuint
>(index), &valueTemp);
52 value =
static_cast<T
>(valueTemp);
58 gl46core::glGetIntegerv(param, value);
62inline void getGLValue(
const gl46core::GLenum param,
U32& value,
const gl46core::GLint index)
64 value =
static_cast<U32>(getGLValueIndexed<gl46core::GLint>(param, index));
68inline void getGLValue(
const gl46core::GLenum param,
F32& value,
const gl46core::GLint index)
72 gl46core::glGetFloatv(param, &value);
76 gl46core::glGetFloati_v(param,
static_cast<gl46core::GLuint
>(index), &value);
81inline void getGLValue(
const gl46core::GLenum param, gl46core::GLboolean& value,
const gl46core::GLint index)
85 gl46core::glGetBooleanv(param, &value);
89 gl46core::glGetBooleani_v(param,
static_cast<gl46core::GLuint
>(index), &value);
94inline void getGLValue(
const gl46core::GLenum param,
D64& value,
const gl46core::GLint index)
98 gl46core::glGetDoublev(param, &value);
102 gl46core::glGetDoublei_v(param,
static_cast<gl46core::GLuint
>(index), &value);
107inline void getGLValue(
const gl46core::GLenum param, gl46core::GLint64& value,
const gl46core::GLint index)
111 gl46core::glGetInteger64v(param, &value);
115 gl46core::glGetInteger64i_v(param,
static_cast<gl46core::GLuint
>(index), &value);
void getGLValue(gl46core::GLenum param, T &value, gl46core::GLint index=-1)
Wrapper for glGetIntegerv.
T getGLValueIndexed(gl46core::GLenum param, gl46core::GLint index=-1)
Handle console commands that start with a forward slash.