Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support horizontally flipped TGA images #68

Merged
merged 8 commits into from
Jul 21, 2024
Merged

Commits on Jul 11, 2024

  1. test: add RLE TGA images

    The RLE TGA images were converted from raw TGA ones using GIMP and
    some tweaks as the GIMP exporter only support bottom-left and top-left:
    
    - Left ones are unmodified GIMP export.
    - Right ones are in-GIMP horizontally flipped images exported as left
      ones then the TGA X flip bit was modified by hand in a hex editor.
    illwieckz committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    a2a6678 View commit details
    Browse the repository at this point in the history
  2. stb_image: support horizontally flipped TGA images

    The TGA format is a bottom-left format by default: the first byte
    of the first column is expected to be displayed at the bottom-left
    of the screen, this behavior is inherited from devices painting the
    screen from the bottom left to the top right.
    
    The TGA format provides two bits in the image descriptor byte to paint
    the data from other sides. The 4th bit tells the device to paint the
    screen from right-to left and the 5th bit tells the device to paint
    the screen from top to bottom.
    
    So basically:
    
    - 00: from bottom-left to top-right
    - 01: from top-left to bottom-right
    - 10: from bottom-right to top-left
    - 11: from top-right to bottom-left
    
    Previously stb_image only read the 5th bit and then only supported the
    loading of vertically flipped images, stb_image was ignoring the 4th bit
    coding the horizontal flip. Now both flipping directions are supported
    for both raw and RLE storage.
    illwieckz committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    5545834 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a26263b View commit details
    Browse the repository at this point in the history
  4. ci: disable fast math

    illwieckz committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    a4ae6f1 View commit details
    Browse the repository at this point in the history
  5. ci: install pip packages

    illwieckz committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    487cb5f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0974162 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2024

  1. Configuration menu
    Copy the full SHA
    9fc7aa8 View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2024

  1. ci: minor changes in ways how things build or link

    - appveyor: do not build the shared library (it is unusable yet),
    - azure-pipelines: make all binaries use the same library,
    - codeql: use the shared library.
    illwieckz committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    a3e01ae View commit details
    Browse the repository at this point in the history