23 lines
623 B
C
23 lines
623 B
C
/*
|
|
* This software is licensed under the terms of the MIT-License
|
|
* See COPYING for further information.
|
|
* ---
|
|
* Copyright (c) 2011-2019, Lukas Weber <laochailan@web.de>.
|
|
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@alienslab.net>.
|
|
*/
|
|
|
|
#ifndef IGUARD_util_rectpack_h
|
|
#define IGUARD_util_rectpack_h
|
|
|
|
#include "taisei.h"
|
|
|
|
#include "geometry.h"
|
|
|
|
typedef struct RectPack RectPack;
|
|
|
|
RectPack* rectpack_new(double width, double height);
|
|
void rectpack_reset(RectPack *rp);
|
|
void rectpack_free(RectPack *rp);
|
|
bool rectpack_add(RectPack *rp, double width, double height, Rect *out_rect);
|
|
|
|
#endif // IGUARD_util_rectpack_h
|