diff options
author | Robert Bragg <robert@linux.intel.com> | 2010-07-03 21:30:33 +0100 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2010-07-05 15:20:04 +0100 |
commit | cafeb025313b02472ddaeb5499d84acbb6068264 (patch) | |
tree | 2c3857f97c6d1c01f7a5b7dfd873eea4a856a78b /cogl/cogl-buffer-private.h | |
parent | 9ceb0edf26654f259eab4be640db491d9b3948a4 (diff) | |
download | cogl-cafeb025313b02472ddaeb5499d84acbb6068264.tar.gz |
cogl-buffer: make the COGL_BUFFER_USAGE_HINT private
The usage hint should be implied by the CoglBuffer subclass type so the
public getter and setter APIs for manually changing the usage hint of a
CoglBuffer have now been removed.
Diffstat (limited to 'cogl/cogl-buffer-private.h')
-rw-r--r-- | cogl/cogl-buffer-private.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cogl/cogl-buffer-private.h b/cogl/cogl-buffer-private.h index ebd512ca..4682e2f9 100644 --- a/cogl/cogl-buffer-private.h +++ b/cogl/cogl-buffer-private.h @@ -68,6 +68,11 @@ typedef enum _CoglBufferFlags COGL_BUFFER_FLAG_MAPPED = 1UL << 1 } CoglBufferFlags; +typedef enum { + COGL_BUFFER_USAGE_HINT_TEXTURE, + COGL_BUFFER_USAGE_HINT_VERTICES +} CoglBufferUsageHint; + struct _CoglBuffer { CoglObject _parent; @@ -103,6 +108,10 @@ void _cogl_buffer_initialize (CoglBuffer *buffer, CoglBufferUsageHint usage_hint, CoglBufferUpdateHint update_hint); void _cogl_buffer_fini (CoglBuffer *buffer); + +CoglBufferUsageHint +_cogl_buffer_get_usage_hint (CoglBuffer *buffer); + void _cogl_buffer_bind (CoglBuffer *buffer, GLenum target); GLenum _cogl_buffer_access_to_gl_enum (CoglBufferAccess access); |