Moving PNG/JPEG code from 'graphics' to 'format', beginning work on audio format code

This commit is contained in:
Joshua Granick
2014-07-28 08:29:11 -07:00
parent f0a5f254ef
commit d8a0eed472
12 changed files with 353 additions and 15 deletions

View File

@@ -0,0 +1,26 @@
#ifndef LIME_FORMAT_JPEG_H
#define LIME_FORMAT_JPEG_H
#include <graphics/Image.h>
#include <utils/Resource.h>
namespace lime {
class JPEG {
public:
static bool Decode (Resource *resource, Image *image);
};
}
#endif

View File

@@ -0,0 +1,26 @@
#ifndef LIME_FORMAT_OGG_H
#define LIME_FORMAT_OGG_H
#include <audio/Sound.h>
#include <utils/Resource.h>
namespace lime {
class OGG {
public:
static bool Decode (Resource *resource, Sound *sound);
};
}
#endif

View File

@@ -0,0 +1,26 @@
#ifndef LIME_FORMAT_PNG_H
#define LIME_FORMAT_PNG_H
#include <graphics/Image.h>
#include <utils/Resource.h>
namespace lime {
class PNG {
public:
static bool Decode (Resource *resource, Image *image);
};
}
#endif

View File

@@ -0,0 +1,26 @@
#ifndef LIME_FORMAT_WAV_H
#define LIME_FORMAT_WAV_H
#include <audio/Sound.h>
#include <utils/Resource.h>
namespace lime {
class WAV {
public:
static bool Decode (Resource *resource, Sound *sound);
};
}
#endif