Adiciona libraries toml/fs, metadados .toml e build por library
- tinyblocks-toml: lexer + parser TOML (include/lexeme.h, include/ast.h, src/lexer.c, src/parser.c) e bloco Toml.Get. - tinyblocks-fs: categoria "Arquivos" com FS.Open/Read/Write/Append/Tell/Close. - library.toml em cada library com metadados (categoria, cor, descricao) e receita de build, sem precisar embutir isso no .so. - Makefiles proprios por library com build/ local; Makefile raiz delega. - Palco (tb_stage) movido para o core; pen deixa de depender do editor, o que torna os .so arrastaveis. - Editor linka com -rdynamic para resolver simbolos do core em .so via dlopen. - Testes: test-toml (parser) e test-plugin (dlopen de .so standalone).
This commit is contained in:
1 parent
90d47bf8a0
commit
dc23b92d15
48 files changed
+2405
-744
No files matched your search
@@ -35,8 +35,9 @@
|
||||
#include <tinyblocks/tinyblocks.h>
|
||||
#include <tinyblocks/tb_renderable_block.h>
|
||||
#include <tb_graphics.h>
|
||||
#include <tinyblocks/tb_stage.h>
|
||||
#include <tb_variables.h>
|
||||
#include "tb_stage.h"
|
||||
#include "tb_stage_widget.h"
|
||||
#include "../include/tb_editor.h"
|
||||
|
||||
|
||||
@@ -2555,7 +2556,7 @@ static void render_stage(Ed* ed, TinyBlocks_RenderableBlock* rb) {
|
||||
rb_text_c(rb, bx + (bw - tw(msg, FS_UI))*0.5f, by + ph*0.5f, msg, COL_TEXT_DIM, FS_UI);
|
||||
} else {
|
||||
TinyBlocks_RenderableBlock* sub = NULL;
|
||||
tb_stage_set_view(ed->stage, bw-2, ph-2);
|
||||
tb_stage_set_view(bw-2, ph-2);
|
||||
clip_set(ed, rb, bx+1, by+1, bw-2, ph-2);
|
||||
if (ed->stage->type->on_draw(ed->stage, ed->rt, &sub) && sub) {
|
||||
tb_draw_merge_offset(rb, sub, bx+1, by+1);
|
||||
|
||||
Reference in new issue
Block a user