CMakeLists for each C file

This commit is contained in:
2021-12-07 07:28:47 -08:00
parent a57e978f6c
commit 17b066e676
32 changed files with 321 additions and 38 deletions

View File

@ -0,0 +1,24 @@
# Copyright (c) 2021 Dominic Msters
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
# Sources
target_sources(${PROJECT_NAME}
PRIVATE
bitmapfont.c
camera.c
font.c
framebuffer.c
matrix.c
render.c
renderlist.c
shader.c
spritebatch.c
texture.c
tileset.c
)
# Subdirs
add_subdirectory(animation)
add_subdirectory(primitive)

View File

@ -0,0 +1,13 @@
# Copyright (c) 2021 Dominic Msters
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
# Sources
target_sources(${PROJECT_NAME}
PRIVATE
animation.c
easing.c
queue.c
timeline.c
)

View File

@ -0,0 +1,13 @@
# Copyright (c) 2021 Dominic Msters
#
# This software is released under the MIT License.
# https://opensource.org/licenses/MIT
# Sources
target_sources(${PROJECT_NAME}
PRIVATE
cube.c
primitive.c
quad.c
skywall.c
)

View File

@ -86,11 +86,8 @@ renderpass_t * renderListRenderPass(
*
* @param list List to render.
* @param shader Shader to use while rendering.
* @param uniforms Uniforms for the render list. [ view, proj, model, ...text ]
*/
void renderListRender(
renderlist_t *list, shader_t *shader, shaderuniform_t *uniforms
);
void renderListRender(renderlist_t *list, shader_t *shader);
/**
* Takes a previously rendered render list and renders it to the backbuffer.