python: Allow writing to buffers.

This commit is contained in:
José Fonseca
2008-08-10 18:52:00 +01:00
parent e5a606883f
commit a304d27118
3 changed files with 76 additions and 8 deletions

View File

@@ -38,6 +38,13 @@ struct pipe_context;
struct st_winsys;
struct st_buffer {
struct st_device *st_dev;
struct pipe_buffer *buffer;
};
struct st_context {
struct st_device *st_dev;
@@ -65,6 +72,13 @@ struct st_device {
};
struct st_buffer *
st_buffer_create(struct st_device *st_dev,
unsigned alignment, unsigned usage, unsigned size);
void
st_buffer_destroy(struct st_buffer *st_buf);
struct st_context *
st_context_create(struct st_device *st_dev);