PrevUpHomeNext

DSA vertex attributes

#include <oglplus/dsa/vertex_attrib.hpp>

Vertex array attribute

#if GL_VERSION_4_5 || GL_ARB_direct_state_access

class DSAVertexArrayAttrib
 : public ProgVarCommonOps<tag::VertexAttrib>
{
public:
	DSAVertexArrayAttrib(
		VertexArrayName vao,
		VertexAttribSlot location
	); 1

	DSAVertexArrayAttrib(
		VertexArrayName vao,
		ProgramName program,
		StrCRef identifier
	); 2

	DSAVertexArrayAttrib& Enable(void); 3

	DSAVertexArrayAttrib& Disable(void); 4

	DSAVertexArrayAttrib& VertexBuffer(
		BufferName buffer,
		GLintptr offset,
		SizeType stride
	); 5

	DSAVertexArrayAttrib& Format(
		GLint values_per_vertex,
		DataType data_type,
		Boolean normalized,
		GLuint relative_offset
	); 6

	DSAVertexArrayAttrib& IFormat(
		GLint values_per_vertex,
		DataType data_type,
		GLuint relative_offset
	); 7

	DSAVertexArrayAttrib& LFormat(
		GLint values_per_vertex,
		DataType data_type,
		GLuint relative_offset
	); 8
};

#endif

1

See glGetAttribLocation.

2

See glGetAttribLocation.

3

Enables this vertex array attribute. See glEnableVertexArrayAttrib.

4

Disables this specified vertex array attribute See glDisableVertexArrayAttrib.

5

Sets the vertex buffer for this vertex array attribute. See glVertexArrayVertexBuffer.

6

Sets up the properties of this vertex array attribute. See glVertexArrayAttribFormat.

7

Sets up the properties of this vertex array attribute. See glVertexArrayAttribIFormat.

8

Sets up the properties of this vertex array attribute. See glVertexArrayAttribLFormat.


PrevUpHomeNext