You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
538 B
29 lines
538 B
#ifndef BUCKET_H_
|
|
#define BUCKET_H_
|
|
#include "raylib.h"
|
|
|
|
#define SPRITE 0
|
|
#define TILE 1
|
|
|
|
typedef struct Sprite Sprite;
|
|
typedef struct Tile Tile;
|
|
|
|
typedef struct Bucket{
|
|
int type;
|
|
Sprite *sprite;
|
|
Tile *tile;
|
|
float depth;
|
|
|
|
struct Bucket *left;
|
|
struct Bucket *right;
|
|
} Bucket;
|
|
|
|
Bucket * BucketInit(void *data, int type);
|
|
|
|
void BucketInsert(struct Bucket *head, struct Bucket *new);
|
|
|
|
void BucketRemove(struct Bucket *head, struct Bucket *new);
|
|
|
|
void BucketChanged(struct Bucket *head, struct Bucket *changed);
|
|
|
|
#endif |