#include #include #include "rodeo.h" Rodeo__data_p state; const Rodeo__color_rgba_t red = { 1.0f, 0.0f, 0.0f, 1.0f }; const Rodeo__color_rgba_t green = { 0.0f, 1.0f, 0.0f, 1.0f }; const Rodeo__color_rgba_t blue = { 0.0f, 0.0f, 1.0f, 1.0f }; const Rodeo__color_rgba_t pink = { 1.0f, 0.0f, 1.0f, 1.0f }; const Rodeo__color_rgba_t red_clear = { 1.0f, 0.0f, 0.0f, 0.5f }; const Rodeo__color_rgba_t green_clear = { 0.0f, 1.0f, 0.0f, 0.5f }; const Rodeo__color_rgba_t blue_clear = { 0.0f, 0.0f, 1.0f, 0.5f }; const Rodeo__color_rgba_t pink_clear = { 1.0f, 0.0f, 1.0f, 0.5f }; int main() { Rodeo__init_window(&state, 480, 640, "Rodeo Window"); while(!Rodeo__should_quit(state)) { Rodeo__begin(state); Rodeo__draw_rectangle( state, 100, 100, 50, 50, red ); Rodeo__draw_rectangle( state, 100, 160, 50, 50, green ); Rodeo__draw_rectangle( state, 160, 100, 50, 50, blue ); Rodeo__draw_rectangle( state, 160, 160, 50, 50, pink ); Rodeo__draw_rectangle( state, 300, 300, 50, 50, red_clear ); Rodeo__draw_rectangle( state, 310, 310, 50, 50, green_clear ); Rodeo__draw_rectangle( state, 320, 320, 50, 50, blue_clear ); Rodeo__draw_rectangle( state, 330, 330, 50, 50, pink_clear ); Rodeo__draw_debug_text( 1, 1, " using %s renderer ", Rodeo__get_renderer_name_as_string() ); Rodeo__end(state); } Rodeo__deinit_window(state); Rodeo__quit(); return 0; }