Moving PNG/JPEG code from 'graphics' to 'format', beginning work on audio format code
This commit is contained in:
27
project/include/utils/Resource.h
Normal file
27
project/include/utils/Resource.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef LIME_UTILS_RESOURCE_H
|
||||
#define LIME_UTILS_RESOURCE_H
|
||||
|
||||
|
||||
#include <utils/ByteArray.h>
|
||||
|
||||
|
||||
namespace lime {
|
||||
|
||||
|
||||
struct Resource {
|
||||
|
||||
|
||||
Resource (const char* path) : data (NULL), path (path) {}
|
||||
Resource (ByteArray *data) : data (data), path (NULL) {}
|
||||
|
||||
ByteArray *data;
|
||||
const char* path;
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user