2018-06-29 23:36:51 +02:00
|
|
|
/*
|
|
|
|
* This software is licensed under the terms of the MIT-License
|
|
|
|
* See COPYING for further information.
|
|
|
|
* ---
|
2019-01-23 21:10:43 +01:00
|
|
|
* Copyright (c) 2011-2019, Lukas Weber <laochailan@web.de>.
|
2019-07-03 20:00:56 +02:00
|
|
|
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@taisei-project.org>.
|
2018-06-29 23:36:51 +02:00
|
|
|
*/
|
|
|
|
|
2019-01-23 21:10:43 +01:00
|
|
|
#ifndef IGUARD_util_rectpack_h
|
|
|
|
#define IGUARD_util_rectpack_h
|
|
|
|
|
2018-06-29 23:36:51 +02:00
|
|
|
#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);
|
2019-01-23 21:10:43 +01:00
|
|
|
|
|
|
|
#endif // IGUARD_util_rectpack_h
|