buffer: explicitly relate buffers to a context
All CoglBuffer constructors now take an explicit CoglContext constructor. This is part of the on going effort to adapt to Cogl API so it no longer depends on a global, default context. Reviewed-by: Neil Roberts <neil@linux.intel.com>
This commit is contained in:
@ -31,6 +31,8 @@
|
||||
#ifndef __COGL_INDEX_BUFFER_H__
|
||||
#define __COGL_INDEX_BUFFER_H__
|
||||
|
||||
#include <cogl/cogl-context.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
/**
|
||||
@ -45,6 +47,7 @@ typedef struct _CoglIndexBuffer CoglIndexBuffer;
|
||||
|
||||
/**
|
||||
* cogl_index_buffer_new:
|
||||
* @context: A #CoglContext
|
||||
* @bytes: The number of bytes to allocate for vertex attribute data.
|
||||
*
|
||||
* Declares a new #CoglIndexBuffer of @size bytes to contain vertex
|
||||
@ -56,7 +59,8 @@ typedef struct _CoglIndexBuffer CoglIndexBuffer;
|
||||
* Stability: Unstable
|
||||
*/
|
||||
CoglIndexBuffer *
|
||||
cogl_index_buffer_new (gsize bytes);
|
||||
cogl_index_buffer_new (CoglContext *context,
|
||||
gsize bytes);
|
||||
|
||||
/**
|
||||
* cogl_is_index_buffer:
|
||||
|
Reference in New Issue
Block a user