24 lines
438 B
C
24 lines
438 B
C
#pragma once
|
|
|
|
#include "types.h"
|
|
#include "picture.h"
|
|
|
|
typedef struct {
|
|
union {
|
|
struct {
|
|
Picture *tl;
|
|
Picture *tr;
|
|
Picture *bl;
|
|
Picture *br;
|
|
};
|
|
Picture *pics[4];
|
|
};
|
|
struct int2 offset;
|
|
} Field;
|
|
|
|
void Field_init(Field *f, SDL_Renderer *rend, int w, int h);
|
|
|
|
void Field_scroll(Field *f, SDL_Renderer *rend);
|
|
|
|
void Field_draw(Field *f, SDL_Renderer *rend);
|