remove quad_instance
This commit is contained in:
parent
b1e657abc3
commit
f4418d94d9
@ -27,7 +27,6 @@ SDL_GPUBuffer *vertex_buffer;
|
|||||||
SDL_GPUBuffer *index_buffer;
|
SDL_GPUBuffer *index_buffer;
|
||||||
SDL_GPUBuffer *tiles_instance_buffer;
|
SDL_GPUBuffer *tiles_instance_buffer;
|
||||||
SDL_GPUBuffer *player_instance_buffer;
|
SDL_GPUBuffer *player_instance_buffer;
|
||||||
SDL_GPUBuffer *quad_instance_buffer;
|
|
||||||
|
|
||||||
Sint16 window_width;
|
Sint16 window_width;
|
||||||
Sint16 window_height;
|
Sint16 window_height;
|
||||||
@ -85,8 +84,6 @@ Player player = {
|
|||||||
.pos_y = 6,
|
.pos_y = 6,
|
||||||
};
|
};
|
||||||
|
|
||||||
Instance quad_instance = { {0.1f, 0.1f, 0.1f, 0.1f } };
|
|
||||||
|
|
||||||
struct PerFrame {
|
struct PerFrame {
|
||||||
float aspect_ratio;
|
float aspect_ratio;
|
||||||
float empty[3];
|
float empty[3];
|
||||||
@ -740,12 +737,6 @@ int main(int argc, char **argv) {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
quad_instance_buffer = create_buffer(SDL_GPU_BUFFERUSAGE_VERTEX, sizeof(quad_instance), &quad_instance, "quad_instance_buffer");
|
|
||||||
if (!quad_instance_buffer) {
|
|
||||||
log_error("Failed to create buffer. Exiting.");
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
load_map();
|
load_map();
|
||||||
|
|
||||||
IMGUI_CHECKVERSION();
|
IMGUI_CHECKVERSION();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user