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,20 @@
#ifndef LIME_AUDIO_SOUND_H
#define LIME_AUDIO_SOUND_H
namespace lime {
class Sound {
public:
};
}
#endif

View File

@@ -1,9 +1,9 @@
#ifndef LIME_GRAPHICS_JPEG_H
#define LIME_GRAPHICS_JPEG_H
#ifndef LIME_FORMAT_JPEG_H
#define LIME_FORMAT_JPEG_H
#include <graphics/Image.h>
#include <io/Resource.h>
#include <utils/Resource.h>
namespace lime {

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

@@ -1,9 +1,9 @@
#ifndef LIME_GRAPHICS_PNG_H
#define LIME_GRAPHICS_PNG_H
#ifndef LIME_FORMAT_PNG_H
#define LIME_FORMAT_PNG_H
#include <graphics/Image.h>
#include <io/Resource.h>
#include <utils/Resource.h>
namespace lime {

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

View File

@@ -1,5 +1,5 @@
#ifndef LIME_IO_RESOURCE_H
#define LIME_IO_RESOURCE_H
#ifndef LIME_UTILS_RESOURCE_H
#define LIME_UTILS_RESOURCE_H
#include <utils/ByteArray.h>