[Renderers/SDL2] Create initial SDL2 renderer (#115)

Co-authored-by: Junior Rantila <junior.rantila@gmail.com>
This commit is contained in:
Nic Barker 2024-12-28 19:15:22 +13:00 committed by GitHub
parent bec56e68a4
commit ac473d6fe7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 574 additions and 26 deletions

View file

@ -4,9 +4,6 @@
#include "string.h"
#include "stdio.h"
#include "stdlib.h"
#ifdef CLAY_OVERFLOW_TRAP
#include "signal.h"
#endif
#define CLAY_RECTANGLE_TO_RAYLIB_RECTANGLE(rectangle) (Rectangle) { .x = rectangle.x, .y = rectangle.y, .width = rectangle.width, .height = rectangle.height }
#define CLAY_COLOR_TO_RAYLIB_COLOR(color) (Color) { .r = (unsigned char)roundf(color.r), .g = (unsigned char)roundf(color.g), .b = (unsigned char)roundf(color.b), .a = (unsigned char)roundf(color.a) }
@ -229,9 +226,6 @@ void Clay_Raylib_Render(Clay_RenderCommandArray renderCommands)
}
default: {
printf("Error: unhandled render command.");
#ifdef CLAY_OVERFLOW_TRAP
raise(SIGTRAP);
#endif
exit(1);
}
}