Sha256: 6b1fdc8e24ac4efd4ef6f207750a52e874449369bb48bb8ce7a4d1e27e1c2ceb

Contents?: true

Size: 837 Bytes

Versions: 2

Compression:

Stored size: 837 Bytes

Contents

#ifndef SAY_INDEX_BUFFER_H_
#define SAY_INDEX_BUFFER_H_

#include "say_basic_type.h"

typedef struct {
  GLuint ibo;
  GLenum type;

  mo_array buffer;
} say_index_buffer;

say_index_buffer *say_index_buffer_create(GLenum type, size_t size);
void say_index_buffer_free(say_index_buffer *buf);

void say_index_buffer_bind(say_index_buffer *buf);
void say_index_buffer_unbind();
void say_index_buffer_rebind();

void say_index_buffer_update_part(say_index_buffer *buf, size_t index,
                                  size_t size);
void say_index_buffer_update(say_index_buffer *buf);

size_t say_index_buffer_get_size(say_index_buffer *buf);
void   say_index_buffer_resize(say_index_buffer *buf, size_t size);

GLuint *say_index_buffer_get(say_index_buffer *buf, size_t i);

GLuint say_index_buffer_get_ibo(say_index_buffer *buf);

#endif

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ray-0.2.1 ext/say_index_buffer.h
ray-0.2.0 ext/say_index_buffer.h