HDK
|
#include <RE_OGLBuffer.h>
Static Public Member Functions | |
static RE_OGLBuffer * | newBuffer (RE_BufferType type, int num_elements, const char *name=nullptr, int capacity=-1) |
static int | getMaxVertexArraySize (RE_Render *r) |
static int | getMaxElementArraySize (RE_Render *r) |
Protected Member Functions | |
bool | initialize (RE_Render *r, const void *data, int length=0) |
void | resetBuffer () |
void | drawArraysCommon (RE_Render *r, RE_PrimType prim, int start, int num, unsigned int stride, int num_instances, int vertices_per_patch) |
bool | bindAttribute (RE_Render *r, int location, RE_GPUType type, int stride, const void *data) |
bool | enableAttribArray (RE_Render *r, const char *name, RE_GPUType datatype, int vectorsize, unsigned int stride, const void *data) |
void | disableAttribArray (RE_Render *r, const char *name) |
~RE_OGLBuffer () override | |
Additional Inherited Members | |
Public Attributes inherited from RE_CachedObjectBase | |
RE_CacheVersion | myVersion |
RE_CacheTagHandle | myCacheTagHandle |
bool | myCachedFlag |
RE_CachedExtraDataHandle | myExtraData |
Definition at line 100 of file RE_OGLBuffer.h.
RE_OGLBuffer::RE_OGLBuffer | ( | RE_BufferType | type, |
int | num_elements, | ||
int | capacity = -1 |
||
) |
|
overrideprotected |
|
inline |
Definition at line 307 of file RE_OGLBuffer.h.
|
protected |
bool RE_OGLBuffer::bindBuffer | ( | RE_Render * | r, |
RE_BufferBinding | point, | ||
int | bind_index = 0 |
||
) |
|
inline |
Definition at line 296 of file RE_OGLBuffer.h.
|
virtual |
Reimplemented in RE_OGLVertexBuffer.
|
virtual |
Reimplemented in RE_OGLVertexBuffer.
|
protected |
|
virtual |
Reimplemented in RE_OGLVertexBuffer.
|
virtual |
Reimplemented in RE_OGLVertexBuffer.
|
virtual |
Reimplemented in RE_OGLCopyPixelBuffer, and RE_OGLVertexBuffer.
|
protected |
|
inline |
Definition at line 270 of file RE_OGLBuffer.h.
|
inline |
Definition at line 278 of file RE_OGLBuffer.h.
|
inline |
Definition at line 279 of file RE_OGLBuffer.h.
|
inline |
Definition at line 263 of file RE_OGLBuffer.h.
|
inline |
Definition at line 268 of file RE_OGLBuffer.h.
|
inline |
Definition at line 264 of file RE_OGLBuffer.h.
|
inline |
Definition at line 277 of file RE_OGLBuffer.h.
|
inline |
Definition at line 269 of file RE_OGLBuffer.h.
|
inline |
Definition at line 267 of file RE_OGLBuffer.h.
|
inline |
Definition at line 274 of file RE_OGLBuffer.h.
|
inlineoverridevirtual |
Returns the amount of main memory owned by this RE_OGLBuffer.
Reimplemented from RE_CachedObjectBase.
Reimplemented in RE_OGLVertexBuffer.
Definition at line 255 of file RE_OGLBuffer.h.
|
inline |
Definition at line 248 of file RE_OGLBuffer.h.
|
inline |
Definition at line 302 of file RE_OGLBuffer.h.
int64 RE_OGLBuffer::getSizeBytes | ( | ) | const |
Graphics memory usage estimate.
|
inline |
Definition at line 266 of file RE_OGLBuffer.h.
|
inline |
Definition at line 305 of file RE_OGLBuffer.h.
|
inline |
Definition at line 283 of file RE_OGLBuffer.h.
|
inline |
Definition at line 314 of file RE_OGLBuffer.h.
|
inline |
Definition at line 265 of file RE_OGLBuffer.h.
|
inline |
Definition at line 295 of file RE_OGLBuffer.h.
|
inline |
Definition at line 271 of file RE_OGLBuffer.h.
|
inline |
Definition at line 280 of file RE_OGLBuffer.h.
|
inline |
Definition at line 273 of file RE_OGLBuffer.h.
|
inline |
Definition at line 272 of file RE_OGLBuffer.h.
|
inline |
Definition at line 313 of file RE_OGLBuffer.h.
void* RE_OGLBuffer::map | ( | RE_Render * | r, |
RE_BufferAccess | access = RE_BUFFER_WRITE_ONLY |
||
) |
void* RE_OGLBuffer::mapRange | ( | RE_Render * | r, |
int | offset, | ||
int | length, | ||
RE_BufferAccess | access = RE_BUFFER_WRITE_ONLY |
||
) |
|
inline |
Definition at line 312 of file RE_OGLBuffer.h.
|
inline |
Definition at line 311 of file RE_OGLBuffer.h.
|
static |
bool RE_OGLBuffer::rebindAttrib | ( | RE_Render * | r, |
int | location, | ||
int | stride = -1 , |
||
RE_GPUType * | type = nullptr |
||
) |
|
inline |
Definition at line 176 of file RE_OGLBuffer.h.
|
protected |
void RE_OGLBuffer::setAttributeName | ( | const char * | attrib | ) |
void RE_OGLBuffer::setBufferType | ( | RE_BufferType | type | ) |
bool RE_OGLBuffer::setCapacity | ( | int | size | ) |
|
inline |
Definition at line 291 of file RE_OGLBuffer.h.
bool RE_OGLBuffer::setFormat | ( | RE_GPUType | type, |
int | vectorsize | ||
) |
bool RE_OGLBuffer::setLength | ( | int | len | ) |
void RE_OGLBuffer::setNormalizedFormat | ( | bool | normalize = true | ) |
void RE_OGLBuffer::setPersistentBuffer | ( | RE_PersistentBufferMode | mode | ) |
void RE_OGLBuffer::setTBO | ( | RE_OGLTexture * | tbo | ) |
void RE_OGLBuffer::setUsage | ( | RE_BufferUsageHint | hint | ) |
bool RE_OGLBuffer::unbindAttrib | ( | RE_Render * | r | ) |
bool RE_OGLBuffer::unbindBuffer | ( | RE_Render * | r, |
RE_BufferBinding | point, | ||
int | bind_index = 0 |
||
) |
|
protected |
Definition at line 365 of file RE_OGLBuffer.h.
|
protected |
Definition at line 350 of file RE_OGLBuffer.h.
|
protected |
Definition at line 340 of file RE_OGLBuffer.h.
|
protected |
Definition at line 356 of file RE_OGLBuffer.h.
|
protected |
Definition at line 361 of file RE_OGLBuffer.h.
|
protected |
Definition at line 362 of file RE_OGLBuffer.h.
|
protected |
Definition at line 364 of file RE_OGLBuffer.h.
|
protected |
Definition at line 363 of file RE_OGLBuffer.h.
|
protected |
Definition at line 341 of file RE_OGLBuffer.h.
|
protected |
Definition at line 347 of file RE_OGLBuffer.h.
|
protected |
Definition at line 360 of file RE_OGLBuffer.h.
|
protected |
Definition at line 359 of file RE_OGLBuffer.h.
|
protected |
Definition at line 357 of file RE_OGLBuffer.h.
|
protected |
Definition at line 366 of file RE_OGLBuffer.h.
|
protected |
Definition at line 348 of file RE_OGLBuffer.h.
|
protected |
Definition at line 349 of file RE_OGLBuffer.h.
|
protected |
Definition at line 346 of file RE_OGLBuffer.h.
|
protected |
Definition at line 353 of file RE_OGLBuffer.h.
|
protected |
Definition at line 368 of file RE_OGLBuffer.h.
|
protected |
Definition at line 355 of file RE_OGLBuffer.h.
|
protected |
Definition at line 369 of file RE_OGLBuffer.h.
|
protected |
Definition at line 345 of file RE_OGLBuffer.h.
|
protected |
Definition at line 352 of file RE_OGLBuffer.h.
|
protected |
Definition at line 371 of file RE_OGLBuffer.h.
|
protected |
Definition at line 344 of file RE_OGLBuffer.h.
|
protected |
Definition at line 370 of file RE_OGLBuffer.h.
|
protected |
Definition at line 342 of file RE_OGLBuffer.h.
|
protected |
Definition at line 374 of file RE_OGLBuffer.h.
|
protected |
Definition at line 351 of file RE_OGLBuffer.h.
|
protected |
Definition at line 372 of file RE_OGLBuffer.h.
|
protected |
Definition at line 343 of file RE_OGLBuffer.h.