Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cdefs/remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#include <dlfcn.h>

CFFI_DLLEXPORT uint32_t kickstart(void);
CFFI_DLLEXPORT int SDL_Init(uint32_t flags) {
kickstart();
return ((int(*)(uint32_t))dlsym(RTLD_NEXT, "SDL_Init"))(flags);
Expand Down
11 changes: 10 additions & 1 deletion rectbinpack/rbp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,21 @@ MaxRectsBinPack mbp;

std::vector<Rect> dst;

/*
int MaxRectsBestShortSideFit = MaxRectsBinPack::RectBestShortSideFit; ///< -BSSF: Positions the rectangle against the short side of a free rectangle into which it fits the best.
int MaxRectsBestLongSideFit = MaxRectsBinPack::RectBestLongSideFit; ///< -BLSF: Positions the rectangle against the long side of a free rectangle into which it fits the best.
int MaxRectsBestAreaFit = MaxRectsBinPack::RectBestAreaFit; ///< -BAF: Positions the rectangle into the smallest free rect into which it fits.
int MaxRectsBottomLeftRule = MaxRectsBinPack::RectBottomLeftRule; ///< -BL: Does the Tetris placement.
int MaxRectsContactPointRule = MaxRectsBinPack::RectContactPointRule; ///< -CP: Choosest the placement where the rectangle touches other rects as much as possible.

*/

enum MaxRectsFreeRectChoiceHeuristic {
MaxRectsBestShortSideFit, ///< -BSSF: Positions the rectangle against the short side of a free rectangle into which it fits the best.
MaxRectsBestLongSideFit, ///< -BLSF: Positions the rectangle against the long side of a free rectangle into which it fits the best.
MaxRectsBestAreaFit, ///< -BAF: Positions the rectangle into the smallest free rect into which it fits.
MaxRectsBottomLeftRule, ///< -BL: Does the Tetris placement.
MaxRectsContactPointRule ///< -CP: Choosest the placement where the rectangle touches other rects as much as possible.
};

extern "C" {

Expand Down