#include "main/glheader.h"
#include "main/imports.h"
#include "main/mtypes.h"
#include "vbo.h"
Defines | |
#define | REBASE(TYPE) |
Functions | |
GLboolean | vbo_all_varyings_in_vbos (const struct gl_client_array *arrays[]) |
void | vbo_rebase_prims (GLcontext *ctx, const struct gl_client_array *arrays[], const struct _mesa_prim *prim, GLuint nr_prims, const struct _mesa_index_buffer *ib, GLuint min_index, GLuint max_index, vbo_draw_func draw) |
#define REBASE | ( | TYPE | ) |
Value:
static void *rebase_##TYPE( const void *ptr, \ GLuint count, \ TYPE min_index ) \ { \ const TYPE *in = (TYPE *)ptr; \ TYPE *tmp_indices = malloc(count * sizeof(TYPE)); \ GLuint i; \ \ for (i = 0; i < count; i++) \ tmp_indices[i] = in[i] - min_index; \ \ return (void *)tmp_indices; \ }
GLboolean vbo_all_varyings_in_vbos | ( | const struct gl_client_array * | arrays[] | ) |
void vbo_rebase_prims | ( | GLcontext * | ctx, | |
const struct gl_client_array * | arrays[], | |||
const struct _mesa_prim * | prim, | |||
GLuint | nr_prims, | |||
const struct _mesa_index_buffer * | ib, | |||
GLuint | min_index, | |||
GLuint | max_index, | |||
vbo_draw_func | draw | |||
) |