10.02.2014 Views

spec - OpenGL

spec - OpenGL

spec - OpenGL

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2.9. BUFFER OBJECTS 60<br />

Name<br />

Value<br />

BUFFER_SIZE<br />

size<br />

BUFFER_USAGE usage<br />

BUFFER_ACCESS READ_WRITE<br />

BUFFER_ACCESS_FLAGS 0<br />

BUFFER_MAPPED FALSE<br />

BUFFER_MAP_POINTER NULL<br />

BUFFER_MAP_OFFSET 0<br />

BUFFER_MAP_LENGTH 0<br />

Table 2.11: Buffer object initial state.<br />

STATIC_DRAW The data store contents will be <strong>spec</strong>ified once by the application,<br />

and used many times as the source for GL drawing and image <strong>spec</strong>ification<br />

commands.<br />

STATIC_READ The data store contents will be <strong>spec</strong>ified once by reading data from<br />

the GL, and queried many times by the application.<br />

STATIC_COPY The data store contents will be <strong>spec</strong>ified once by reading data from<br />

the GL, and used many times as the source for GL drawing and image <strong>spec</strong>ification<br />

commands.<br />

DYNAMIC_DRAW The data store contents will be re<strong>spec</strong>ified repeatedly by the application,<br />

and used many times as the source for GL drawing and image<br />

<strong>spec</strong>ification commands.<br />

DYNAMIC_READ The data store contents will be re<strong>spec</strong>ified repeatedly by reading<br />

data from the GL, and queried many times by the application.<br />

DYNAMIC_COPY The data store contents will be re<strong>spec</strong>ified repeatedly by reading<br />

data from the GL, and used many times as the source for GL drawing and<br />

image <strong>spec</strong>ification commands.<br />

usage is provided as a performance hint only. The <strong>spec</strong>ified usage value does<br />

not constrain the actual usage pattern of the data store.<br />

BufferData deletes any existing data store, and sets the values of the buffer<br />

object’s state variables as shown in table 2.11.<br />

Clients must align data elements consistent with the requirements of the client<br />

platform, with an additional base-level requirement that an offset within a buffer to<br />

a datum comprising N basic machine units be a multiple of N.<br />

<strong>OpenGL</strong> 4.2 (Compatibility Profile) - August 22, 2011

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!