Example #1
0
	static void ClearDepth(GLfloat d)
	{
		OGLPLUS_GLFUNC(ClearDepthf)(d);
		OGLPLUS_VERIFY_SIMPLE(ClearDepthf);
	}
Example #2
0
	/**
	 *  @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);
	}
Example #3
0
	/**
	 *  @throws Error
	 *
	 *  @glsymbols
	 *  @glfunref{ClearDepth}
	 */
	static void ClearDepth(GLclampd d)
	{
		OGLPLUS_GLFUNC(ClearDepth)(d);
		OGLPLUS_VERIFY_SIMPLE(ClearDepth);
	}
Example #4
0
	static void PolygonOffset(const PolygonOffsPara& para)
	{
		OGLPLUS_GLFUNC(PolygonOffset)(para.Factor(), para.Units());
		OGLPLUS_VERIFY_SIMPLE(PolygonOffset);
	}
Example #5
0
 /**
  *  @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);
 }
Example #6
0
	static void Delete(GLsizei count, GLuint* names)
	{
		assert(names != nullptr);
		OGLPLUS_GLFUNC(DeleteVertexArrays)(count, names);
		OGLPLUS_VERIFY_SIMPLE(DeleteVertexArrays);
	}
Example #7
0
	/**
	 *  @throws Error
	 *
	 *  @glsymbols
	 *  @glfunref{Hint}
	 */
	static void Hint(HintTarget target, HintOption option)
	{
		OGLPLUS_GLFUNC(Hint)(GLenum(target), GLenum(option));
		OGLPLUS_VERIFY_SIMPLE(Hint);
	}
Example #8
0
	/**
	 *  @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);
	}
Example #9
0
	/**
	 *  @glsymbols
	 *  @glfunref{BlendEquation}
	 */
	static void BlendEquation(oglplus::BlendEquation eq)
	{
		OGLPLUS_GLFUNC(BlendEquation)(GLenum(eq));
		OGLPLUS_VERIFY_SIMPLE(BlendEquation);
	}
Example #10
0
 /**
  *  @glsymbols
  *  @glfunref{WaitSync}
  */
 void Wait(GLuint64 timeout = GL_TIMEOUT_IGNORED) const {
     OGLPLUS_GLFUNC(WaitSync)(_sync, 0, timeout);
     OGLPLUS_VERIFY_SIMPLE(WaitSync);
 }
Example #11
0
	/**
	 *  @glsymbols
	 *  @glfunref{BlendFunc}
	 */
	static void BlendFunc(BlendFunction src, BlendFunction dst)
	{
		OGLPLUS_GLFUNC(BlendFunc)(GLenum(src), GLenum(dst));
		OGLPLUS_VERIFY_SIMPLE(BlendFunc);
	}
Example #12
0
 /**
  *  @glsymbols
  *  @glfunref{ClientWaitSync}
  */
 SyncWaitResult ClientWait(GLuint64 timeout) const {
     GLenum result = OGLPLUS_GLFUNC(ClientWaitSync)(_sync, 0, timeout);
     OGLPLUS_VERIFY_SIMPLE(ClientWaitSync);
     return SyncWaitResult(result);
 }
Example #13
0
 /**
  *  @glsymbols
  *  @glfunref{PopDebugGroup}
  */
 ~Group() {
     OGLPLUS_GLFUNC(PopDebugGroup)();
     OGLPLUS_VERIFY_SIMPLE(PopDebugGroup);
 }
Example #14
0
 /**
  *  @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);
 }
Example #15
0
	/**
	 *  @throws Error
	 *
	 *  @glsymbols
	 *  @glfunref{ClearStencil}
	 */
	static void ClearStencil(GLint s)
	{
		OGLPLUS_GLFUNC(ClearStencil)(s);
		OGLPLUS_VERIFY_SIMPLE(ClearStencil);
	}
Example #16
0
	/**
	 *  @glsymbols
	 *  @glfunref{PointSize}
	 */
	static void PointSize(GLfloat size)
	{
		OGLPLUS_GLFUNC(PointSize)(size);
		OGLPLUS_VERIFY_SIMPLE(PointSize);
	}
Example #17
0
	/** 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);
	}
Example #18
0
	/**
	 *  @glvoereq{3,2,ARB,provoking_vertex}
	 *  @glsymbols
	 *  @glfunref{ProvokingVertex}
	 */
	static void ProvokingVertex(ProvokeMode mode)
	{
		OGLPLUS_GLFUNC(ProvokingVertex)(GLenum(mode));
		OGLPLUS_VERIFY_SIMPLE(ProvokingVertex);
	}
Example #19
0
	/// Pops a debug group
	static void PopGroup(void)
	{
		OGLPLUS_GLFUNC(PopDebugGroup)();
		OGLPLUS_VERIFY_SIMPLE(PopDebugGroup);
	}
Example #20
0
	/**
	 *  @glverreq{4,0}
	 *  @glsymbols
	 *  @glfunref{MinSampleShading}
	 */
	static void MinSampleShading(GLfloat value)
	{
		OGLPLUS_GLFUNC(MinSampleShading)(value);
		OGLPLUS_VERIFY_SIMPLE(MinSampleShading);
	}
Example #21
0
	/**
	 *  @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);
	}
Example #23
0
	/**
	 *  @glsymbols
	 *  @glfunref{LineWidth}
	 */
	static void LineWidth(GLfloat width)
	{
		OGLPLUS_GLFUNC(LineWidth)(width);
		OGLPLUS_VERIFY_SIMPLE(LineWidth);
	}
Example #24
0
 /**
  *  @glsymbols
  *  @glfunref{DebugMessageCallback}
  */
 ~LogSink() {
     OGLPLUS_GLFUNC(DebugMessageCallback)(_prev_callback, _prev_context);
     OGLPLUS_VERIFY_SIMPLE(DebugMessageCallback);
 }