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.
This commit is contained in:
Robert Bragg
2010-07-03 21:30:33 +01:00
parent 7820842262
commit 57341dbb60
4 changed files with 9 additions and 71 deletions

View File

@@ -68,11 +68,6 @@ create_map_tile (TestTile *tile)
g_assert (cogl_is_pixel_buffer (buffer));
g_assert (cogl_is_buffer (buffer));
/* while at it, set/get the hints */
cogl_buffer_set_usage_hint (buffer, COGL_BUFFER_USAGE_HINT_TEXTURE);
g_assert_cmpint (cogl_buffer_get_usage_hint (buffer),
==,
COGL_BUFFER_USAGE_HINT_TEXTURE);
cogl_buffer_set_update_hint (buffer, COGL_BUFFER_UPDATE_HINT_DYNAMIC);
g_assert_cmpint (cogl_buffer_get_update_hint (buffer),
==,