Giter Site home page Giter Site logo

apg's Introduction

Hi there ๐Ÿ‘‹

  • ๐Ÿ“š I wrote a couple of books; one for learning 3D graphics, and one explaining a range of programming tools.
  • ๐Ÿ”ญ Iโ€™m working on a hobby voxel video game (working title Antonkraft).
  • ๐ŸŒฑ Iโ€™m learning PyTorch.

apg's People

Contributors

capnramses avatar jacmoe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

apg's Issues

License?

Would you mind adding a license to this very nice collection of reusable bits ?

Something like ISC/MIT/BSD would be nice :)

Thanks! ๐Ÿ˜ธ

[apg_bmp] RLE flag for apg_bmp_write

  • 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:
    1. create_palette( from image )
    2. 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

[apg_pixfont]

  • 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.

hash function is bad

use one from class - single with shift and double hash perhaps
it suffers from integer overflow and .: UB

[apg_bmp] support GIMP's RLE compression

  • 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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.