From 77337049740437d1f707018c862fc2d891f29abf Mon Sep 17 00:00:00 2001 From: realtradam Date: Fri, 16 Jun 2023 23:47:57 -0400 Subject: create interface for adding custom vertices and indices --- include/rodeo/gfx.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'include/rodeo/gfx.h') diff --git a/include/rodeo/gfx.h b/include/rodeo/gfx.h index 74a5b87..5ca19b0 100644 --- a/include/rodeo/gfx.h +++ b/include/rodeo/gfx.h @@ -62,11 +62,23 @@ rodeo_gfx_rectangle_draw( void rodeo_gfx_vertex_add(rodeo_gfx_vertex_t vertex); +uint16_t +rodeo_gfx_vertex_size(void); + +uint16_t +rodeo_gfx_vertex_maxSize(void); + void rodeo_gfx_index_add(rodeo_gfx_index_t index); rodeo_gfx_index_t -rodeo_gfx_index_count(void); +rodeo_gfx_index_count_get(void); + +void +rodeo_gfx_index_count_increment(uint16_t amount); + +uint16_t +rodeo_gfx_index_maxSize(void); void rodeo_gfx_texture_2d_draw( -- cgit v1.2.3