improve sw renderer
This commit is contained in:
parent
415d424057
commit
39ee0fefb7
89 changed files with 9380 additions and 2307 deletions
|
|
@ -6,6 +6,7 @@
|
|||
#include "pxl8_gfx.h"
|
||||
#include "pxl8_log.h"
|
||||
#include "pxl8_math.h"
|
||||
#include "pxl8_mem.h"
|
||||
|
||||
pxl8_transition* pxl8_transition_create(pxl8_transition_type type, f32 duration) {
|
||||
if (duration <= 0.0f) {
|
||||
|
|
@ -13,7 +14,7 @@ pxl8_transition* pxl8_transition_create(pxl8_transition_type type, f32 duration)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
pxl8_transition* transition = (pxl8_transition*)calloc(1, sizeof(pxl8_transition));
|
||||
pxl8_transition* transition = (pxl8_transition*)pxl8_calloc(1, sizeof(pxl8_transition));
|
||||
if (!transition) {
|
||||
pxl8_error("Failed to allocate transition");
|
||||
return NULL;
|
||||
|
|
@ -33,7 +34,7 @@ pxl8_transition* pxl8_transition_create(pxl8_transition_type type, f32 duration)
|
|||
|
||||
void pxl8_transition_destroy(pxl8_transition* transition) {
|
||||
if (!transition) return;
|
||||
free(transition);
|
||||
pxl8_free(transition);
|
||||
}
|
||||
|
||||
f32 pxl8_transition_get_progress(const pxl8_transition* transition) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue