Fix naming conventions
Fixed some functions names that were not following my convention Signed-off-by: Piotr Krygier <piotrkrygier@everyonecancode@xyz>
This commit is contained in:
+12
-12
@@ -105,7 +105,7 @@ rse_err_t rse_graphics_init(struct rse_graphics_context_t** context)
|
||||
rse_memset(ctx_ptr->context, 0, sizeof(struct graphics_context_t));
|
||||
|
||||
STATUS_CHECK(window_init(&ctx_ptr->context->window_handle, &ctx_ptr->context->is_framebuffer_resized));
|
||||
STATUS_CHECK(init_vulkan(ctx_ptr->context));
|
||||
STATUS_CHECK(vulkan_init(ctx_ptr->context));
|
||||
|
||||
return status;
|
||||
}
|
||||
@@ -125,8 +125,8 @@ rse_err_t rse_graphics_test_function(struct rse_graphics_context_t* rse_context)
|
||||
uint32_t static_mesh_renderer = 0U;
|
||||
uint16_t vertex_shader_id, fragment_shader_id;
|
||||
|
||||
load_texture_from_file(context, "../../test_image.jpg", &textures[0]);
|
||||
load_texture_from_file(context, "../../test_image_2.jpg", &textures[1]);
|
||||
texture_load_from_file(context, "../../test_image.jpg", &textures[0]);
|
||||
texture_load_from_file(context, "../../test_image_2.jpg", &textures[1]);
|
||||
|
||||
STATUS_CHECK(fonts_init());
|
||||
STATUS_CHECK(fonts_load_from_file(context, "../../NotoSansMono-Regular.ttf", &font_id));
|
||||
@@ -146,33 +146,33 @@ rse_err_t rse_graphics_test_function(struct rse_graphics_context_t* rse_context)
|
||||
// FIXME: Temporary array of vertices, for testing purposes
|
||||
uint16_t indices[] = {0, 1, 2, 2, 3, 0};
|
||||
|
||||
create_mesh(context, vertices, indices, 4, 6, &mesh_id_1);
|
||||
mesh_create(context, vertices, indices, 4, 6, &mesh_id_1);
|
||||
if (RSE_ERROR_NO_ERROR !=
|
||||
create_mesh_instance(context,
|
||||
mesh_create_instance(context,
|
||||
mesh_id_1,
|
||||
(struct instance_data_t){{0.0f, 0.0f, 2.4f}, {0.0f, 0.0f, 0.0}, 1.0f, textures[1]})) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (RSE_ERROR_NO_ERROR !=
|
||||
create_mesh_instance(
|
||||
mesh_create_instance(
|
||||
context,
|
||||
mesh_id_1,
|
||||
(struct instance_data_t){{-0.5f, 0.0f, -1.0f}, {0.0f, 0.0f, glm_rad(10.0f)}, 1.0f, textures[0]})) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
create_mesh(context, vertices2, indices, 4, 6, &mesh_id_2);
|
||||
mesh_create(context, vertices2, indices, 4, 6, &mesh_id_2);
|
||||
|
||||
if (RSE_ERROR_NO_ERROR !=
|
||||
create_mesh_instance(
|
||||
mesh_create_instance(
|
||||
context,
|
||||
mesh_id_2,
|
||||
(struct instance_data_t){{1.0f, 1.0f, 0.0f}, {0.0f, 0.0f, glm_rad(0.0f)}, 1.0f, textures[0]})) {
|
||||
exit(1);
|
||||
}
|
||||
|
||||
create_uniform_buffer(context, &model_view_projection_buffer, sizeof(struct uniform_buffer_object_t));
|
||||
buffer_create_uniform(context, &model_view_projection_buffer, sizeof(struct uniform_buffer_object_t));
|
||||
model_view_projection_update(context, &model_view_projection_buffer);
|
||||
buffers_update(context);
|
||||
|
||||
@@ -221,7 +221,7 @@ rse_err_t rse_graphics_test_function(struct rse_graphics_context_t* rse_context)
|
||||
pipeline_add_dynamic_state(&pipeline, VK_DYNAMIC_STATE_SCISSOR);
|
||||
|
||||
pipeline_add_descriptor_sets(context, &pipeline, descriptor_set_handle);
|
||||
add_pipeline(context, &pipeline, &pipeline_infos);
|
||||
pipeline_add(context, &pipeline, &pipeline_infos);
|
||||
|
||||
pipelines_build(context, &pipeline_infos);
|
||||
|
||||
@@ -238,10 +238,10 @@ int rse_graphics_run(void* arg)
|
||||
struct rse_graphics_context_t* rse_context = (struct rse_graphics_context_t*)arg;
|
||||
struct graphics_context_t* context = rse_context->context;
|
||||
|
||||
STATUS_CHECK(run_vulkan(context));
|
||||
STATUS_CHECK(vulkan_run(context));
|
||||
STATUS_CHECK(window_loop(context));
|
||||
|
||||
deinit_vulkan(context);
|
||||
vulkan_deinit(context);
|
||||
|
||||
window_terminate(context->window_handle);
|
||||
rse_free(context->debug_overlay.pixels);
|
||||
|
||||
Reference in New Issue
Block a user