-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Material, Texture, Color && ColorFormat
- Removed type alias Mipmap. class Texture now represents Mipmap pyramid image. Added new functions to Texture class: - convert / converted: converts texture to a new ColorFormat - clearMipmaps: removes mipmap chain to LOD 0 - generateMipmap / makeMipmap: generates new mipmap chain - mipmap: returns texture at mipmap level number - scale / scaled: scales texture using box filtering algorithm (pixel averaging) - Added class TextureView - Refactored class Material which is represented now as a container of celluloid textures. - Refactored ColorFormat and renamed/added new ColorFormat global constants: RGB555, RGB555be RGB565, RGB565be RGBA4444, RGBA4444be, ARGBA4444, ARGBA4444be RGBA5551, RGBA5551be, ARGBA5551, ARGBA5551be RGB24, RGB24be, RGBA32, RGBA32be, ARGBA32, ARGBA32be - Refactored class AbstractColor - Added classes Color and ColorRgb which represent non-linear (gamma space) 8-bit/component RGB and RGBA color. - Added abstract class AbstractLinearColor which represens linear (space 32-bit/component color - Refactored classes LinearColor & LinearColorRgb to inherit from AbstractLinearColor class - Added texture utility functions for saving/loading texture to/from BMP and PNG image file formats. - Renamed Bitmap & BitmapPtr aliases to PixData & PixDataPtr - Added Pixdata utility functions
- Loading branch information
Showing
19 changed files
with
2,710 additions
and
585 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.