Copy3DEngine/include/C3D/utils.h

19 lines
354 B
C
Raw Permalink Normal View History

2024-10-05 00:56:13 +02:00
// Voir README.md pour license précise, par Fcalva 2023-2024 et est sous GPLv3
2024-10-09 16:43:10 +02:00
// See README.md for the exact licensing, by ...
2024-10-05 00:56:13 +02:00
2024-10-10 17:53:09 +02:00
#pragma once
2024-10-05 00:56:13 +02:00
#include <stdint.h>
2024-10-22 12:27:16 +02:00
#include <stdbool.h>
#include "fixed.h"
2024-10-05 00:56:13 +02:00
2024-10-08 13:16:05 +02:00
#define min(x, xmin) (x > xmin ? xmin:x)
2024-10-05 00:56:13 +02:00
2024-10-22 12:27:16 +02:00
typedef struct {
2024-10-27 23:52:11 +01:00
int16_t x0,x1;
int16_t y0,y1;
2024-10-22 12:27:16 +02:00
} Rect;
2024-10-25 23:05:09 +02:00
int cmpfunc (const void * a, const void * b);