Moving PNG/JPEG code from 'graphics' to 'format', beginning work on audio format code
This commit is contained in:
26
project/include/format/JPEG.h
Normal file
26
project/include/format/JPEG.h
Normal 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
|
||||
26
project/include/format/OGG.h
Normal file
26
project/include/format/OGG.h
Normal 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
|
||||
26
project/include/format/PNG.h
Normal file
26
project/include/format/PNG.h
Normal 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
|
||||
26
project/include/format/WAV.h
Normal file
26
project/include/format/WAV.h
Normal 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
|
||||
Reference in New Issue
Block a user