Adiciona tipo imagem (core) + tinyblocks-ppm e previa de imagem no balao
This commit is contained in:
1 parent
f794d8b8c7
commit
959a4027c3
16 files changed
+721
-10
No files matched your search
@@ -28,6 +28,7 @@ typedef struct TinyBlocks_VectorBlock TinyBlocks_VectorBlock;
|
||||
typedef struct TinyBlocks_VectorData TinyBlocks_VectorData;
|
||||
typedef struct TinyBlocks_RenderableBlock TinyBlocks_RenderableBlock;
|
||||
typedef struct TinyBlocks_JsonValue TinyBlocks_JsonValue;
|
||||
typedef struct TinyBlocks_Image TinyBlocks_Image;
|
||||
|
||||
/* -- Kinds de bloco --- */
|
||||
typedef enum TinyBlocks_BlockKind {
|
||||
@@ -49,6 +50,7 @@ typedef enum TinyBlocks_ValueKind {
|
||||
TB_VALUE_BLOCK = 4, /* referência a qualquer bloco (handle opaco) */
|
||||
TB_VALUE_VECTOR = 5, /* dados de vetor 2D (ref-counted) */
|
||||
TB_VALUE_JSON = 6, /* valor JSON (ref-counted) */
|
||||
TB_VALUE_IMAGE = 7, /* imagem RGBA/cinza (ref-counted) */
|
||||
} TinyBlocks_ValueKind;
|
||||
|
||||
/* -- Valor com tag (flui entre slots) --- */
|
||||
@@ -61,6 +63,7 @@ typedef struct TinyBlocks_Value {
|
||||
TinyBlocks_Block* block; /* ponteiro não-owning */
|
||||
TinyBlocks_VectorData* vector; /* ref-counted (retain/release) */
|
||||
TinyBlocks_JsonValue* json; /* ref-counted (retain/release) */
|
||||
TinyBlocks_Image* image; /* ref-counted (retain/release) */
|
||||
} as;
|
||||
} TinyBlocks_Value;
|
||||
|
||||
|
||||
Reference in new issue
Block a user