Sha256: e1b8ecc2db36748b6277e8f5b98249c7a2275963607964fee6ec97113ae65c9e

Contents?: true

Size: 923 Bytes

Versions: 2

Compression:

Stored size: 923 Bytes

Contents

#ifndef SAY_BUFFER_RENDERER_H_
#define SAY_BUFFER_RENDERER_H_

#include "say_drawable.h"
#include "say_buffer.h"
#include "say_index_buffer.h"

typedef struct {
  say_buffer       *buffer;
  say_index_buffer *index_buffer;
  say_array        *drawables;

  size_t vtype;

  size_t current_vertex;
  size_t current_index;

  say_matrix *matrix;
} say_buffer_renderer;

say_buffer_renderer *say_buffer_renderer_create(GLenum type,
                                                size_t vtype);
void say_buffer_renderer_free(say_buffer_renderer *renderer);

void say_buffer_renderer_clear(say_buffer_renderer *renderer);
bool say_buffer_renderer_push(say_buffer_renderer *renderer,
                              say_drawable *drawable);
void say_buffer_renderer_update(say_buffer_renderer *renderer);

void say_buffer_renderer_render(say_buffer_renderer *renderer,
                                say_shader *shader);

#endif

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ray-0.1.1 ext/say_buffer_renderer.h
ray-0.1.0 ext/say_buffer_renderer.h