Exemplo n.º 1
0
// ----------------------------------------------------------------------------
void
vertex_buffer_push_back_vertices ( vertex_buffer_t * self,
                                   const void * vertices,
                                   const size_t vcount )
{
    assert( self );

    self->state |= DIRTY;
    vector_push_back_data( self->vertices, vertices, vcount );
}
Exemplo n.º 2
0
// ----------------------------------------------------------------------------
void
vertex_buffer_push_back_indices ( vertex_buffer_t * self,
                                  const GLuint * indices,
                                  const size_t icount )
{
    assert( self );

    self->state |= DIRTY;
    vector_push_back_data( self->indices, indices, icount );
}
Exemplo n.º 3
0
// ----------------------------------------------------------------------------
void
vertex_buffer_push_back_indices ( vertex_buffer_t *self,
                                  GLuint *indices,
                                  size_t count )
{
    assert( self );

    self->dirty = 1;
    vector_push_back_data( self->indices, indices, count );
}
Exemplo n.º 4
0
// ----------------------------------------------------------------------------
void
vertex_buffer_push_back_vertices ( vertex_buffer_t *self,
                                   void *vertices,
                                   size_t count )
{
    assert( self );

    self->dirty = 1;
    vector_push_back_data( self->vertices, vertices, count );

}