enum cv::ogl::Buffer::Target

Overview

The target defines how you intend to use the buffer object. Moreā€¦

#include <opengl.hpp>

enum Target
{
    ARRAY_BUFFER         = 0x8892,
    ELEMENT_ARRAY_BUFFER = 0x8893,
    PIXEL_PACK_BUFFER    = 0x88EB,
    PIXEL_UNPACK_BUFFER  = 0x88EC,
};

Detailed Documentation

The target defines how you intend to use the buffer object.

Enum Values

ARRAY_BUFFER

The buffer will be used as a source for vertex data.

ELEMENT_ARRAY_BUFFER

The buffer will be used for indices (in glDrawElements, for example)

PIXEL_PACK_BUFFER

The buffer will be used for reading from OpenGL textures.

PIXEL_UNPACK_BUFFER

The buffer will be used for writing to OpenGL textures.