Sean Barrett
1ee679ca2e
update version numbers
ago%!(EXTRA string=4 years)
ocornut
818ac26785
stb_rect_pack: making functions cdecl for msvc qsort
ago%!(EXTRA string=4 years)
Fabian Giesen
2b667e4d30
stb_rect_pack: Several minor fixes
...
1. Always use large rects mode to avoid definition of stbrp_coord
in header file depending on implementation #defines
2. Expose STBRP__MAXVAL to users
3. Fix value of STBRP__MAXVAL for large rect mode (stbrp_coord
is a 32-bit int, so needs to be <=0x7fffffff, 0xffffffff
doesn't work)
4. Add comment at the top about which #define to set to get the
implementation.
Fixes issue #1143 , or rather, replaces that pull request.
ago%!(EXTRA string=4 years)
Sean Barrett
2bb4a0accd
Fix trailing whitespace
ago%!(EXTRA string=5 years)
Sean Barrett
c963e40972
update version numbers
ago%!(EXTRA string=6 years)
Fabian Giesen
ae431d75e0
stb_rect_pack: Fix two bugs.
...
stbrp__skyline_find_best_pos didn't correctly handle rects too
large to ever fit inside the context. Since that function also
pads the width up to a multiple of the alignment, it makes the
most sense to do that check right after (but before entering
the main packing loop).
While we're here, also fix an off-by-1 bug in the best-fit
heuristic where it didn't want to use the last row in
certain cases.
Fixes issue #701 .
ago%!(EXTRA string=6 years)
Sean Barrett
63b59b46b0
update version numbers
ago%!(EXTRA string=6 years)
rombankzero
f65ed67e89
stb_rect_pack: Remove always-true assert
ago%!(EXTRA string=7 years)
Omar Cornut
eb3c5db96c
stb_reck_pack: Removed unused assigned variables (under #ifdef _DEBUG wrap)
ago%!(EXTRA string=7 years)
Fabian Giesen
5ebeb38edb
stb_rect_pack: Remove unused rect_width_compare().
...
Fixes #416 .
ago%!(EXTRA string=8 years)
Sean Barrett
e895f6d3af
tweak previous PR merge
ago%!(EXTRA string=8 years)
Sean Barrett
e248e30954
change license to public-domain AND mit (based on twitter vote)
ago%!(EXTRA string=8 years)
IntellectualKitty
07fefa384a
Return all_rects_packed status from stbrp_pack_rects.
ago%!(EXTRA string=9 years)
Sean Barrett
996ccf2159
update version numbers
ago%!(EXTRA string=9 years)
Sean Barrett
5d9423f8fd
fix -Wcast-qual in stb_rect_pack, stb_textedit, stb_truetype
ago%!(EXTRA string=9 years)
Sean Barrett
6f72440159
bump version numbers
ago%!(EXTRA string=9 years)
Sean Barrett
19c9615e90
rect_pack patch;
...
fix typo in stb_textedit
ago%!(EXTRA string=9 years)
cosmy1
4e758682b0
Minor fixes.
ago%!(EXTRA string=9 years)
Craig Donner
ee6978cb68
Slightly modify the public domain license to keep it in the public domain, but make it clear that even when dedications might not be recognized that the code is still usable. Given that this isn't dual-licensing under a different license, I'm hoping this will be acceptable.
ago%!(EXTRA string=9 years)
Craig Donner
49b65c0873
Slightly modify the public domain license to keep it in the public domain, but make it clear that even when dedications might not be recognized that the code is still usable. Given that this isn't dual-licensing under a different license, I'm hoping this will be acceptable.
ago%!(EXTRA string=9 years)
Sean Barrett
8b7b845c4e
bump version number
ago%!(EXTRA string=10 years)
Sean Barrett
b74da797af
properly fix stb_rect_pack;
...
tweak formatting of FAQ list
ago%!(EXTRA string=10 years)
Sean Barrett
83d36fd28a
fix bug in handling rectangle with width or height of 0
ago%!(EXTRA string=10 years)
Ryan Whitworth
7effe64e45
Added public domain license text
ago%!(EXTRA string=10 years)
Sean Barrett
e927c3a07a
rename to STBRP_SORT for STBRP_ASSERT consistency;
...
version number, credits
ago%!(EXTRA string=10 years)
unknown
8bfd635220
Allow to replace qsort function with custom implementation
ago%!(EXTRA string=10 years)
Sean Barrett
d1c85eac78
update version numbers
ago%!(EXTRA string=11 years)
Sean Barrett
97037461d9
stb_truetype:
...
STBTT_POINT_SIZE
documentation for above
stb_rect_pack:
STBRP_ASSERT
ago%!(EXTRA string=11 years)
Fabian Giesen
d9e121f4c7
stb_rect_pack: Fix implicit conversion warnings.
ago%!(EXTRA string=11 years)
Fabian Giesen
ffbea74703
stb_rect_pack.h: Impl must include assert.h
ago%!(EXTRA string=11 years)
Sean Barrett
22dbcffef7
stbtt_Pack* documentation
...
oversample test tweaks
ago%!(EXTRA string=11 years)
Sean Barrett
f03e352093
stb_rect_pack: fix LARGE_RECT bug
...
stb_truetype: oversampling, including oversampling demo app
ago%!(EXTRA string=11 years)
Sean Barrett
37c95d8d55
add internal version number for use by stb_truetype
ago%!(EXTRA string=11 years)
Sean Barrett
e9151589ca
duh, best-fit should tiebreak using waste, not prioritize waste (which makes bizarre towers)
ago%!(EXTRA string=11 years)
nothings
36ef8be0be
fix typo
ago%!(EXTRA string=11 years)
Sean Barrett
2c56e11c59
doc tweaks
ago%!(EXTRA string=11 years)
Sean Barrett
a9e1f96765
rename 'stbrp_init_packer' to 'stbrp_init_target' since it must be called for every target;
...
clean up docs
ago%!(EXTRA string=11 years)
Sean Barrett
8d3ef72e3c
fixed bugs related to the best-fit heuristic
ago%!(EXTRA string=11 years)
Sean Barrett
0c10e7c40e
tested & debugged on two cases (both heuristics); unknown if BF is *correct*.
ago%!(EXTRA string=11 years)
Sean Barrett
b09f8186dc
non-working rectangle packer
ago%!(EXTRA string=11 years)