summaryrefslogtreecommitdiff
path: root/src/teapot.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/teapot.c')
-rw-r--r--src/teapot.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/teapot.c b/src/teapot.c
index 751eb55..ad5ecc5 100644
--- a/src/teapot.c
+++ b/src/teapot.c
@@ -37,19 +37,6 @@ void ta_teapot_init(void) {
ta_gpu_sample_count
);
ta_teapot_model.position[1] = 1.0f;
-
- ta_obj_model_init(
- &ta_dounut_model,
- ta_gpu_device,
- file_data_models_dounut_obj_start,
- file_data_models_dounut_obj_size,
- ta_gpu_swapchain_format,
- SDL_GPU_TEXTUREFORMAT_D32_FLOAT,
- ta_gpu_sample_count
- );
- ta_dounut_model.position[1] = -1.0f;
- ta_dounut_model.rotation[0] = -1.0f;
-
}
void ta_teapot_upload(SDL_GPUCommandBuffer *command_buffer) {
@@ -60,11 +47,8 @@ void ta_teapot_upload(SDL_GPUCommandBuffer *command_buffer) {
void ta_teapot_render(SDL_GPUCommandBuffer *command_buffer, SDL_GPURenderPass *render_pass) {
ta_teapot_model.rotation[1] = (float)SDL_GetTicks() * 0.01f;
ta_obj_model_render(&ta_teapot_model, command_buffer, render_pass, ta_window_width, ta_window_height);
- ta_dounut_model.rotation[1] = (float)SDL_GetTicks() * 0.01f;
- ta_obj_model_render(&ta_dounut_model, command_buffer, render_pass, ta_window_width, ta_window_height);
}
void ta_teapot_shutdown(void) {
ta_obj_model_destroy(&ta_teapot_model, ta_gpu_device);
- ta_obj_model_destroy(&ta_dounut_model, ta_gpu_device);
}