Set C standard to C11 and add new assets

Changed CMakeLists.txt to set the C standard to C11.
Added multiple binary image files for new visual assets.
Added several new image files to enhance rendering capabilities.
Changed stb_image.h to improve support for various image formats.
Changed ray tracing engine to enhance ray creation and intersection.
Changed triangle structure to use a vertex array for better attribute handling.
Changed scene initialization to accommodate new texture management.
This commit is contained in:
2025-04-29 01:43:52 +09:00
parent 4db14ffdb0
commit 3de6b83d32
53 changed files with 8939 additions and 162671 deletions

View File

@@ -76,9 +76,8 @@ unsigned char* render_target_to_char(render_target_t* render_target)
void render_target_free(render_target_t* target)
{
if (target->buffer != NULL)
if (target != NULL && target->buffer != NULL)
{
free(target->buffer);
target->buffer = NULL;
}
}