Пример #1
0
	/**
	 *  @glsymbols
	 *  @glfunref{DrawBuffers}
	 */
	static void DrawBuffers(const EnumArray<ColorBuffer>& buffers)
	{
		OGLPLUS_GLFUNC(DrawBuffers)(
			buffers.Count(),
			buffers.Values()
		);
		OGLPLUS_VERIFY(OGLPLUS_ERROR_INFO(DrawBuffers));
	}
Пример #2
0
	/**
	 *  @glvoereq{4,3,ARB,invalidate_subdata}
	 *  @glsymbols
	 *  @glfunref{InvalidateFramebuffer}
	 */
	static void Invalidate(
		Target target,
		const EnumArray<Property::Buffer>& buffers
	)
	{
		OGLPLUS_GLFUNC(InvalidateFramebuffer)(
			GLenum(target),
			buffers.Count(),
			buffers.Values()
		);
		OGLPLUS_CHECK(
			InvalidateFramebuffer,
			ObjectError,
			ObjectBinding(target)
		);
	}
Пример #3
0
	/**
	 *  @glvoereq{4,3,ARB,invalidate_subdata}
	 *  @glsymbols
	 *  @glfunref{InvalidateSubFramebuffer}
	 */
	static void Invalidate(
		Target target,
		const EnumArray<Property::Buffer>& buffers,
		GLint x,
		GLint y,
		GLsizei width,
		GLsizei height
	)
	{
		OGLPLUS_GLFUNC(InvalidateSubFramebuffer)(
			GLenum(target),
			buffers.Count(),
			buffers.Values(),
			x,
			y,
			width,
			height
		);
		OGLPLUS_CHECK(
			InvalidateSubFramebuffer,
			ObjectError,
			ObjectBinding(target)
		);
	}