static void ClearDepth(GLfloat d) { OGLPLUS_GLFUNC(ClearDepthf)(d); OGLPLUS_VERIFY_SIMPLE(ClearDepthf); }
/** * @throws Error * * @glsymbols * @glfunref{ClearColor} */ static void ClearColor(GLclampf r, GLclampf g, GLclampf b, GLclampf a) { OGLPLUS_GLFUNC(ClearColor)(r, g, b, a); OGLPLUS_VERIFY_SIMPLE(ClearColor); }
/** * @throws Error * * @glsymbols * @glfunref{ClearDepth} */ static void ClearDepth(GLclampd d) { OGLPLUS_GLFUNC(ClearDepth)(d); OGLPLUS_VERIFY_SIMPLE(ClearDepth); }
static void PolygonOffset(const PolygonOffsPara& para) { OGLPLUS_GLFUNC(PolygonOffset)(para.Factor(), para.Units()); OGLPLUS_VERIFY_SIMPLE(PolygonOffset); }
/** * @overload * * @glsymbols * @glfunref{PushDebugGroup} */ Group(DebugOutputSource source, GLuint id, StrCRef message) { OGLPLUS_GLFUNC(PushDebugGroup) (GLenum(source), id, message.size(), message.begin()); OGLPLUS_VERIFY_SIMPLE(PushDebugGroup); }
static void Delete(GLsizei count, GLuint* names) { assert(names != nullptr); OGLPLUS_GLFUNC(DeleteVertexArrays)(count, names); OGLPLUS_VERIFY_SIMPLE(DeleteVertexArrays); }
/** * @throws Error * * @glsymbols * @glfunref{Hint} */ static void Hint(HintTarget target, HintOption option) { OGLPLUS_GLFUNC(Hint)(GLenum(target), GLenum(option)); OGLPLUS_VERIFY_SIMPLE(Hint); }
/** * @glsymbols * @glfunref{BlendColor} */ static void BlendColor(GLclampf r, GLclampf g, GLclampf b, GLclampf a) { OGLPLUS_GLFUNC(BlendColor)(r, g, b, a); OGLPLUS_VERIFY_SIMPLE(BlendColor); }
/** * @glsymbols * @glfunref{BlendEquation} */ static void BlendEquation(oglplus::BlendEquation eq) { OGLPLUS_GLFUNC(BlendEquation)(GLenum(eq)); OGLPLUS_VERIFY_SIMPLE(BlendEquation); }
/** * @glsymbols * @glfunref{WaitSync} */ void Wait(GLuint64 timeout = GL_TIMEOUT_IGNORED) const { OGLPLUS_GLFUNC(WaitSync)(_sync, 0, timeout); OGLPLUS_VERIFY_SIMPLE(WaitSync); }
/** * @glsymbols * @glfunref{BlendFunc} */ static void BlendFunc(BlendFunction src, BlendFunction dst) { OGLPLUS_GLFUNC(BlendFunc)(GLenum(src), GLenum(dst)); OGLPLUS_VERIFY_SIMPLE(BlendFunc); }
/** * @glsymbols * @glfunref{ClientWaitSync} */ SyncWaitResult ClientWait(GLuint64 timeout) const { GLenum result = OGLPLUS_GLFUNC(ClientWaitSync)(_sync, 0, timeout); OGLPLUS_VERIFY_SIMPLE(ClientWaitSync); return SyncWaitResult(result); }
/** * @glsymbols * @glfunref{PopDebugGroup} */ ~Group() { OGLPLUS_GLFUNC(PopDebugGroup)(); OGLPLUS_VERIFY_SIMPLE(PopDebugGroup); }
/** * @overload * * @glsymbols * @glfunref{PushDebugGroup} */ Group(DebugOutputSource source, GLuint id, const String& message) { OGLPLUS_GLFUNC(PushDebugGroup) (GLenum(source), id, message.size(), message.c_str()); OGLPLUS_VERIFY_SIMPLE(PushDebugGroup); }
/** * @throws Error * * @glsymbols * @glfunref{ClearStencil} */ static void ClearStencil(GLint s) { OGLPLUS_GLFUNC(ClearStencil)(s); OGLPLUS_VERIFY_SIMPLE(ClearStencil); }
/** * @glsymbols * @glfunref{PointSize} */ static void PointSize(GLfloat size) { OGLPLUS_GLFUNC(PointSize)(size); OGLPLUS_VERIFY_SIMPLE(PointSize); }
/** This function clears the specified buffers. * * example: * @code * Context gl; * gl.Clear(ClearBit::ColorBuffer); * gl.Clear(ClearBit::ColorBuffer|ClearBit::DepthBuffer); * gl.Clear({ClearBit::ColorBuffer}); * gl.Clear({ClearBit::ColorBuffer, ClearBit::DepthBuffer}); * gl.Clear({ClearBit::ColorBuffer, ClearBit::StencilBuffer}); * @endcode * * @throws Error * * @see ClearColor * @see ClearDepth * @see ClearStencil * * @glsymbols * @glfunref{Clear} */ static void Clear(Bitfield<oglplus::ClearBit> bits) { OGLPLUS_GLFUNC(Clear)(GLbitfield(bits)); OGLPLUS_VERIFY_SIMPLE(Clear); }
/** * @glvoereq{3,2,ARB,provoking_vertex} * @glsymbols * @glfunref{ProvokingVertex} */ static void ProvokingVertex(ProvokeMode mode) { OGLPLUS_GLFUNC(ProvokingVertex)(GLenum(mode)); OGLPLUS_VERIFY_SIMPLE(ProvokingVertex); }
/// Pops a debug group static void PopGroup(void) { OGLPLUS_GLFUNC(PopDebugGroup)(); OGLPLUS_VERIFY_SIMPLE(PopDebugGroup); }
/** * @glverreq{4,0} * @glsymbols * @glfunref{MinSampleShading} */ static void MinSampleShading(GLfloat value) { OGLPLUS_GLFUNC(MinSampleShading)(value); OGLPLUS_VERIFY_SIMPLE(MinSampleShading); }
/** * @glsymbols * @glfunref{PolygonOffset} */ static void PolygonOffset(GLfloat factor, GLfloat units) { OGLPLUS_GLFUNC(PolygonOffset)(factor, units); OGLPLUS_VERIFY_SIMPLE(PolygonOffset); }
static void Delete(GLsizei count, GLuint* names) { assert(names != nullptr); OGLPLUS_GLFUNC(DeletePerfMonitorsAMD)(count, names); OGLPLUS_VERIFY_SIMPLE(DeleteSamplers); }
/** * @glsymbols * @glfunref{LineWidth} */ static void LineWidth(GLfloat width) { OGLPLUS_GLFUNC(LineWidth)(width); OGLPLUS_VERIFY_SIMPLE(LineWidth); }
/** * @glsymbols * @glfunref{DebugMessageCallback} */ ~LogSink() { OGLPLUS_GLFUNC(DebugMessageCallback)(_prev_callback, _prev_context); OGLPLUS_VERIFY_SIMPLE(DebugMessageCallback); }