mirror of
https://github.com/borgesdan/xn65
synced 2024-12-29 21:54:47 +01:00
Implementa serializer.hpp
This commit is contained in:
parent
9692d532b9
commit
066034e9f5
@ -9,6 +9,7 @@
|
||||
#include "xna/graphics/shared.hpp"
|
||||
|
||||
namespace xna {
|
||||
//Provides properties and methods for creating and maintaining a bitmap resource.
|
||||
class BitmapContent : public ContentItem {
|
||||
public:
|
||||
BitmapContent(int32_t width, int32_t height) {
|
||||
@ -79,6 +80,7 @@ namespace xna {
|
||||
int32_t height{ 0 };
|
||||
};
|
||||
|
||||
//Provides methods for maintaining a 2D array of pixel values.
|
||||
template <typename T>
|
||||
class PixelBitmapContent : public BitmapContent {
|
||||
public:
|
||||
|
17
includes/xna/content/serializer.hpp
Normal file
17
includes/xna/content/serializer.hpp
Normal file
@ -0,0 +1,17 @@
|
||||
#ifndef XNA_CONTENT_SERIALIZER_HPP
|
||||
#define XNA_CONTENT_SERIALIZER_HPP
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace xna {
|
||||
struct ContentSerializerAttribute {
|
||||
std::string ElementName;
|
||||
std::string CollectionItemName;
|
||||
bool FlatternContent{ false };
|
||||
bool Optional{ false };
|
||||
bool AllowNull{ true };
|
||||
bool SharedResource{ false };
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user