~darkxst/ubuntu/raring/cogl/lp1163025

« back to all changes in this revision

Viewing changes to cogl/cogl-attribute-buffer.h

  • Committer: Package Import Robot
  • Author(s): Jeremy Bicha
  • Date: 2012-03-13 19:11:11 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20120313191111-3hgk529qkh9m6uk2
Tags: 1.9.8-0ubuntu1
* New upstream release (LP: #941617)
* Updated symbols & library name for soname update
* debian/control.in: Bump minimum glib to 2.28
* debian/patches/02_disable_armv5t_specific_optimization.patch: Disabled

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#ifndef __COGL_ATTRIBUTE_BUFFER_H__
32
32
#define __COGL_ATTRIBUTE_BUFFER_H__
33
33
 
 
34
/* We forward declare the CoglAttributeBuffer type here to avoid some circular
 
35
 * dependency issues with the following headers.
 
36
 */
 
37
typedef struct _CoglAttributeBuffer CoglAttributeBuffer;
 
38
 
 
39
#include <cogl/cogl-context.h>
 
40
 
34
41
G_BEGIN_DECLS
35
42
 
36
43
/**
41
48
 * FIXME
42
49
 */
43
50
 
44
 
typedef struct _CoglAttributeBuffer           CoglAttributeBuffer;
 
51
#define COGL_ATTRIBUTE_BUFFER(buffer) ((CoglAttributeBuffer *)(buffer))
45
52
 
46
53
/**
47
54
 * cogl_attribute_buffer_new:
 
55
 * @context: A #CoglContext
48
56
 * @bytes: The number of bytes to allocate for vertex attribute data.
49
57
 * @data: An optional pointer to vertex data to upload immediately.
50
58
 *
59
67
 * Stability: Unstable
60
68
 */
61
69
CoglAttributeBuffer *
62
 
cogl_attribute_buffer_new (gsize bytes, const void *data);
 
70
cogl_attribute_buffer_new (CoglContext *context,
 
71
                           gsize bytes,
 
72
                           const void *data);
63
73
 
64
74
/**
65
75
 * cogl_is_attribute_buffer: