8 #include <glbinding/gl/types.h> 10 #include <glbinding/ContextHandle.h> 12 #include <globjects/globjects_api.h> 38 GLOBJECTS_API
void init();
39 GLOBJECTS_API
void init(glbinding::ContextHandle sharedContextId);
48 template <
typename T,
typename... Args>
49 void init(T strategy, Args... args);
51 template <
typename T,
typename... Args>
52 void init(glbinding::ContextHandle sharedContextId, T strategy, Args... args);
56 GLOBJECTS_API
void setContext(glbinding::ContextHandle contextId);
59 GLOBJECTS_API std::string
getString(gl::GLenum pname);
60 GLOBJECTS_API std::string
getString(gl::GLenum pname, gl::GLuint index);
62 GLOBJECTS_API gl::GLint
getInteger(gl::GLenum pname);
63 GLOBJECTS_API gl::GLenum
getEnum(gl::GLenum pname);
64 GLOBJECTS_API gl::GLfloat
getFloat(gl::GLenum pname);
65 GLOBJECTS_API gl::GLdouble
getDouble(gl::GLenum pname);
66 GLOBJECTS_API gl::GLboolean
getBoolean(gl::GLenum pname);
68 GLOBJECTS_API gl::GLint
getInteger(gl::GLenum pname, gl::GLuint index);
69 GLOBJECTS_API gl::GLenum
getEnum(gl::GLenum pname, gl::GLuint index);
70 GLOBJECTS_API gl::GLfloat
getFloat(gl::GLenum pname, gl::GLuint index);
71 GLOBJECTS_API gl::GLdouble
getDouble(gl::GLenum pname, gl::GLuint index);
72 GLOBJECTS_API gl::GLboolean
getBoolean(gl::GLenum pname, gl::GLuint index);
74 GLOBJECTS_API std::string
vendor();
75 GLOBJECTS_API std::string
renderer();
77 GLOBJECTS_API glbinding::Version
version();
81 std::array<gl::GLint, Count>
getIntegers(gl::GLenum pname);
83 std::array<gl::GLenum, Count>
getEnums(gl::GLenum pname);
85 std::array<gl::GLfloat, Count>
getFloats(gl::GLenum pname);
87 std::array<gl::GLdouble, Count>
getDoubles(gl::GLenum pname);
89 std::array<gl::GLboolean, Count>
getBooleans(gl::GLenum pname);
94 GLOBJECTS_API
bool hasExtension(gl::GLextension extension);
95 GLOBJECTS_API
bool hasExtension(
const std::string & extensionName);
99 GLOBJECTS_API
void enable(gl::GLenum capability);
100 GLOBJECTS_API
void disable(gl::GLenum capability);
101 GLOBJECTS_API
bool isEnabled(gl::GLenum capability);
102 GLOBJECTS_API
void setEnabled(gl::GLenum capability,
bool enabled);
103 GLOBJECTS_API
void enable(gl::GLenum capability,
int index);
104 GLOBJECTS_API
void disable(gl::GLenum capability,
int index);
105 GLOBJECTS_API
bool isEnabled(gl::GLenum capability,
int index);
106 GLOBJECTS_API
void setEnabled(gl::GLenum capability,
int index,
bool enabled);
121 #include <globjects/globjects.inl> std::array< gl::GLdouble, Count > getDoubles(gl::GLenum pname)
Definition: glbindinglogging.h:11
GLOBJECTS_API gl::GLboolean getBoolean(gl::GLenum pname, gl::GLuint index)
GLOBJECTS_API std::string getString(gl::GLenum pname, gl::GLuint index)
GLOBJECTS_API void setContext(glbinding::ContextHandle contextId)
GLOBJECTS_API bool isInCoreProfile(gl::GLextension extension)
GLOBJECTS_API gl::GLenum getEnum(gl::GLenum pname, gl::GLuint index)
GLOBJECTS_API bool isCoreProfile()
Contains all the classes that wrap OpenGL functionality.
std::array< gl::GLfloat, Count > getFloats(gl::GLenum pname)
GLOBJECTS_API gl::GLfloat getFloat(gl::GLenum pname, gl::GLuint index)
GLOBJECTS_API std::string versionString()
GLOBJECTS_API bool isEnabled(gl::GLenum capability, int index)
void init(glbinding::ContextHandle sharedContextId, T strategy, Args...args)
GLOBJECTS_API void disable(gl::GLenum capability, int index)
GLOBJECTS_API void enable(gl::GLenum capability, int index)
GLOBJECTS_API gl::GLint getInteger(gl::GLenum pname, gl::GLuint index)
GLOBJECTS_API void setEnabled(gl::GLenum capability, int index, bool enabled)
GLOBJECTS_API std::string vendor()
std::array< gl::GLboolean, Count > getBooleans(gl::GLenum pname)
GLOBJECTS_API std::string renderer()
GLOBJECTS_API void registerCurrentContext(glbinding::ContextHandle sharedContextId)
GLOBJECTS_API const std::set< gl::GLextension > & availableExtensions()
GLOBJECTS_API gl::GLdouble getDouble(gl::GLenum pname, gl::GLuint index)
std::array< gl::GLint, Count > getIntegers(gl::GLenum pname)
GLOBJECTS_API const std::set< std::string > & unknownAvailableExtensions()
GLOBJECTS_API glbinding::Version version()
GLOBJECTS_API bool hasExtension(const std::string &extensionName)
GLOBJECTS_API void initializeStrategy(VertexArray::AttributeImplementation impl)
GLOBJECTS_API void setCurrentContext()
std::array< gl::GLenum, Count > getEnums(gl::GLenum pname)
GLOBJECTS_API void detachAllObjects()
calls detach on every registered object