2023-05-25 21:12:18 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "alolcator.h"
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
alo_ring_t ring;
|
|
|
|
uint32_t frame_offsets[2];
|
|
|
|
} r_flipping_buffer_t;
|
|
|
|
|
|
|
|
void R_FlippingBuffer_Init(r_flipping_buffer_t *flibuf, uint32_t size);
|
|
|
|
uint32_t R_FlippingBuffer_Alloc(r_flipping_buffer_t* flibuf, uint32_t size, uint32_t align);
|
|
|
|
|
2023-05-30 21:14:44 +02:00
|
|
|
// (╯°□°)╯︵ ┻━┻
|
2023-05-25 21:12:18 +02:00
|
|
|
void R_FlippingBuffer_Flip(r_flipping_buffer_t* flibuf);
|
|
|
|
|
2023-05-30 21:14:44 +02:00
|
|
|
// ┬─┬ノ( º _ ºノ)
|
2023-05-25 21:12:18 +02:00
|
|
|
void R_FlippingBuffer_Clear(r_flipping_buffer_t *flibuf);
|