View Code? Open in Web Editor
NEW
mini libraries / experimental tools and reusable snippets
License: Other
C 91.68%
JavaScript 4.66%
Shell 1.42%
C++ 0.92%
Batchfile 1.32%
apg's People
Contributors
apg's Issues
|
*face_num = tmin > 0 ? imin + 1 : imax + 1; |
Would you mind adding a license to this very nice collection of reusable bits ?
Something like ISC/MIT/BSD would be nice :)
Thanks! ๐ธ
- e.g. in case you want to use fast BMP output to dump a screenshot without much of a stutter in your app.
- and don't wan't a folder of massive uncompressed true-colour images.
- note that this would only support 24-bit RGB indexed images, so more code may be required there than for RGBA 32-bit true-colours.
- the palette would have to be created using a table of colour distances, which might not be so fast.
- if an existing 256-colour palette was supplied as a field, then this would speed up the output using colour-distances.
- therefore 2 functions could be created:
- create_palette( from image )
- write_bmp( using palette )
- this might be more expedient to use in external tools to compress existing images or apply a palette to a folder of images
- Pull in glyph changes from gfx repo (quotations, brackets, etc).
- Code for ampersand 1 pixel wider spacing.
- Atlas gen tool start at space (32).
- Atlas gen tool skip control codes between ASCII and Latin-1.
- Update codepoint fetch to accom the above mapping changes.
- Put spacing for atlas function in interface so that apg_pixfont can be used for atlas rasterisation as well.
- Add missing Latin-1 glyph images - might be tricky to add to strip image.
might throw a warning in some compilers. perhaps return 0 instead.
- update any build scripts and makefiles
- and instructions about compilation in code headers
- test
use one from class - single with shift and double hash perhaps
it suffers from integer overflow and .: UB
- should be _WIN32
- maybe it should rather detect GCC / mingw and use the unix/posix version on windows if that is true
too confusing/specific.
make sure its not used anywhere/in tests.
- for non-palette RGB/RGBA images
- try with palette indexed option and compare size
- find spec somewhere - presume this doesnt work with bitwise encoded/older formats
- alternative - make a custom RLE compression implementation option using e.g. 3 or 4-byte clusters of image data/indexes.
needs to be "rb" for wintendo