a8abb4afc9
The sprite inherits from Poseable. It is intended to allow for pure 2D rendering or integration of sprites/particles into 3D scenes. Eventually an ImageScene should be created to test out the image loading, sprite movement and rotation, and 2D camera functionality for the builtin engine.
18 lines
249 B
C++
18 lines
249 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
|
|
namespace charcoal
|
|
{
|
|
namespace image_loader
|
|
{
|
|
struct ImageRGBA
|
|
{
|
|
std::vector<unsigned char> data;
|
|
unsigned int width;
|
|
unsigned int height;
|
|
};
|
|
|
|
ImageRGBA load_file(const std::string& filename);
|
|
}
|
|
} |