1
0
mirror of https://github.com/borgesdan/xn65 synced 2024-12-29 21:54:47 +01:00

Implementa serializer.hpp

This commit is contained in:
Danilo Borges Santos 2024-11-20 14:45:03 -03:00
parent 9692d532b9
commit 066034e9f5
2 changed files with 19 additions and 0 deletions

View File

@ -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:

View 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