daque.graphics.opengl

Members

Classes

Buffer
class Buffer

Represents a buffer opengl object. A buffer opengl object is the mechanism through which data can be stored in the GPU, usually vertex data of the models to be rendered.

GpuArray
class GpuArray

Represents an array of things to be stored in the GPU

Program
class Program

Represents and handles a Program Opengl Object. A Program is a group of Opengl Shaders which will be linked together. A Program is a program to be executed by the GPU to each of the Vertices of a model.

Shader
class Shader

Represents a 'shader' OpenGL object.

Texture
class Texture

Represents a 2D opengl texture

VertexArray
class VertexArray

Represents an opengl Vertex Array Object (VAO). A VAO relates Opengl Buffers and Vertex Formats.

Functions

render
void render(GpuArray vertices)

Renders an Array of vertices already on GPU memory

setTextureUnit
void setTextureUnit(int textureUnit, Texture texture)

Assigns texture to textureUnit.

setup
void setup(AttributeFormat format)

Given the Buffer and the VertexArray currently bound to the OpenGL context, this function provides format info about the attribute format.index of the vertices in the VertexArray.

Structs

AttributeFormat
struct AttributeFormat

Data needed to represent a particular attribute for a Vertex.

Meta

Authors

Miguel Ángel (quevangel), quevangel@protonmail.com