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

Improve renderer-independent texture format handling, and initial work on indirect texture assets #192

Merged
merged 23 commits into from Jan 3, 2021

Commits on Dec 30, 2020

  1. Configuration menu
    Copy the full SHA
    922c711 View commit details
    Browse the repository at this point in the history
  2. Added TextureBuilder interface to TextureManager.

    Need to implement texture loading support for all formats in tryLoadTextureBuilders().
    afritz1 committed Dec 30, 2020
    Configuration menu
    Copy the full SHA
    5859124 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fa691f1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7e0f56f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    cb4ccd0 View commit details
    Browse the repository at this point in the history

Commits on Dec 31, 2020

  1. Configuration menu
    Copy the full SHA
    304d13c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2082d5f View commit details
    Browse the repository at this point in the history
  3. Moved PaletteIdGroup out of TextureUtils namespace.

    Going to keep it alongside TextureBuilderIdGroup and eventually delete the others.
    afritz1 committed Dec 31, 2020
    Configuration menu
    Copy the full SHA
    7eb1f81 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    73501c4 View commit details
    Browse the repository at this point in the history
  5. Removed TextureBuilder palette ID.

    Probably going to always pass a palette with texture builders no matter what, since the renderer interfaces need to work with both paletted and true color.
    afritz1 committed Dec 31, 2020
    Configuration menu
    Copy the full SHA
    06bc7ae View commit details
    Browse the repository at this point in the history
  6. Removed unnecessary include.

    afritz1 committed Dec 31, 2020
    Configuration menu
    Copy the full SHA
    7a39f5b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    797874b View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    3412409 View commit details
    Browse the repository at this point in the history
  9. Renamed TextureDefinition to TextureAssetReference.

    Each frame of an entity animation, etc. should be able to use this for indirect texture references with the texture manager.
    afritz1 committed Dec 31, 2020
    Configuration menu
    Copy the full SHA
    3ac697e View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    0c1f079 View commit details
    Browse the repository at this point in the history

Commits on Jan 1, 2021

  1. Configuration menu
    Copy the full SHA
    1531d9a View commit details
    Browse the repository at this point in the history
  2. Added TextureFileMetadata.

    This should be useful when trying to allocate entity animation keyframes without worrying about texel data.
    afritz1 committed Jan 1, 2021
    Configuration menu
    Copy the full SHA
    423240e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e18c9ca View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2021

  1. Redesigned TextureManager for TextureBuilders.

    The Renderer drawing API is currently broken with several not-implemented macro placeholders and will need to be changed to internally allocate Texture instances for TextureBuilderID + PaletteID pairs as an interim solution to the renderer returning allocated texture handles. Much less of the codebase makes assumptions about textures being 8-bit now, which is a big improvement.
    afritz1 committed Jan 2, 2021
    Configuration menu
    Copy the full SHA
    d98a5ab View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2021

  1. Reworked TextureFile, PaletteFile, and enums.

    ArenaPaletteName and ArenaTextureName provide direct string references to original assets, instead of having to go through an unnecessary enum-to-string step.
    afritz1 committed Jan 3, 2021
    Configuration menu
    Copy the full SHA
    c9531bc View commit details
    Browse the repository at this point in the history
  2. Added Renderer TextureInstance and helper functions.

    The renderer will handle converting texture builders to SDL textures temporarily until a better design is used where the renderer returns allocated texture handles for users of the renderer to keep track of.
    afritz1 committed Jan 3, 2021
    Configuration menu
    Copy the full SHA
    3f9a1fd View commit details
    Browse the repository at this point in the history
  3. Moved Texture::generate() to TextureUtils.

    Cleaning up the Texture class a bit.
    afritz1 committed Jan 3, 2021
    Configuration menu
    Copy the full SHA
    f03d48b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    91856be View commit details
    Browse the repository at this point in the history