Commit 31a61df2 authored by Christian Forfang's avatar Christian Forfang

Added text_buffer_delete

parent 1e0e8cb5
......@@ -71,6 +71,15 @@ text_buffer_new( size_t depth )
return self;
}
// ----------------------------------------------------------------------------
void
text_buffer_delete( text_buffer_t * self )
{
vertex_buffer_delete( self->buffer );
glDeleteProgram( self->shader );
free( self );
}
// ----------------------------------------------------------------------------
void
text_buffer_clear( text_buffer_t * self )
......
......@@ -208,6 +208,14 @@ typedef struct {
text_buffer_t *
text_buffer_new( size_t depth );
/**
* Deletes texture buffer and its associated shader and vertex buffer.
*
* @param self texture buffer to delete
*
*/
void
text_buffer_delete( text_buffer_t * self );
/**
* Render a text buffer.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment