Skip to content

.ase loader for Aseprite, an alternative to Photoshop

Notifications You must be signed in to change notification settings

dmoa/Aseprite_Loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Aseprite Loader

Aseprite Loader is a C++11 library that loads .ase files, the file format used in the pixel editor Aseprite.

Usage

  • Copy ase_loader.h and decompressor.h into your project folder (or copy the single file under releases)
  • Include ase_loader.h and define implementation:
#include "ase_loader.h"
#define ASE_LOADER_IMPLEMENTATION // define only in one file
  • Available functions:
Ase_Output* Ase_Load(std::string path);
void Ase_Destroy_Output(Ase_Output* output);
void Ase_SetFlipVerticallyOnLoad(bool input_flag);

Example

#include <stdio.h>
#include "ase_loader.h"

int main() {

    Ase_Output* output = Ase_Load("example.ase");
    if (output) {
        std::cout << "Success!\n";
    }
    else {
        std::cout << "Failure.\n";
    }
    Ase_Destroy_Output(output);

    return 0;
}

Contributing

Pull requests are welcome, but I do not plan or want this library to grow any bigger than it needs to be.

License

MIT

About

.ase loader for Aseprite, an alternative to Photoshop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages