move outline material to embedded binary
This commit is contained in:
@@ -77,6 +77,7 @@ extern "C"
|
||||
EMSCRIPTEN_KEEPALIVE TMaterial *Material_createImageMaterial(TEngine *tEngine);
|
||||
EMSCRIPTEN_KEEPALIVE TMaterial *Material_createGridMaterial(TEngine *tEngine);
|
||||
EMSCRIPTEN_KEEPALIVE TMaterial *Material_createGizmoMaterial(TEngine *tEngine);
|
||||
EMSCRIPTEN_KEEPALIVE TMaterial *Material_createOutlineMaterial(TEngine *tEngine);
|
||||
EMSCRIPTEN_KEEPALIVE bool Material_hasParameter(TMaterial *tMaterial, const char *propertyName);
|
||||
EMSCRIPTEN_KEEPALIVE bool MaterialInstance_isStencilWriteEnabled(TMaterialInstance *materialInstance);
|
||||
EMSCRIPTEN_KEEPALIVE void MaterialInstance_setStencilWrite(TMaterialInstance *materialInstance, bool enabled);
|
||||
|
||||
@@ -90,6 +90,7 @@ namespace thermion
|
||||
void Material_createInstanceRenderThread(TMaterial *tMaterial, void (*onComplete)(TMaterialInstance *));
|
||||
void Material_createImageMaterialRenderThread(TEngine *tEngine, void (*onComplete)(TMaterial *));
|
||||
void Material_createGizmoMaterialRenderThread(TEngine *tEngine, void (*onComplete)(TMaterial *));
|
||||
void Material_createOutlineMaterialRenderThread(TEngine *tEngine, void (*onComplete)(TMaterial *));
|
||||
|
||||
void ColorGrading_createRenderThread(TEngine *tEngine, TToneMapping toneMapping, void (*callback)(TColorGrading *));
|
||||
void View_pickRenderThread(TView *tView, uint32_t requestId, uint32_t x, uint32_t y, PickCallback callback);
|
||||
|
||||
12
thermion_dart/native/include/material/outline.S
Normal file
12
thermion_dart/native/include/material/outline.S
Normal file
@@ -0,0 +1,12 @@
|
||||
.global OUTLINE_OUTLINE_OFFSET;
|
||||
.global OUTLINE_OUTLINE_SIZE;
|
||||
|
||||
.global OUTLINE_PACKAGE
|
||||
.section .rodata
|
||||
OUTLINE_PACKAGE:
|
||||
.incbin "outline.bin"
|
||||
OUTLINE_OUTLINE_OFFSET:
|
||||
.int 0
|
||||
OUTLINE_OUTLINE_SIZE:
|
||||
.int 112782
|
||||
|
||||
12
thermion_dart/native/include/material/outline.apple.S
Normal file
12
thermion_dart/native/include/material/outline.apple.S
Normal file
@@ -0,0 +1,12 @@
|
||||
.global _OUTLINE_OUTLINE_OFFSET;
|
||||
.global _OUTLINE_OUTLINE_SIZE;
|
||||
|
||||
.global _OUTLINE_PACKAGE
|
||||
.section __TEXT,__const
|
||||
_OUTLINE_PACKAGE:
|
||||
.incbin "outline.bin"
|
||||
_OUTLINE_OUTLINE_OFFSET:
|
||||
.int 0
|
||||
_OUTLINE_OUTLINE_SIZE:
|
||||
.int 112782
|
||||
|
||||
BIN
thermion_dart/native/include/material/outline.bin
Normal file
BIN
thermion_dart/native/include/material/outline.bin
Normal file
Binary file not shown.
5650
thermion_dart/native/include/material/outline.c
Normal file
5650
thermion_dart/native/include/material/outline.c
Normal file
File diff suppressed because it is too large
Load Diff
13
thermion_dart/native/include/material/outline.h
Normal file
13
thermion_dart/native/include/material/outline.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#ifndef OUTLINE_H_
|
||||
#define OUTLINE_H_
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
extern "C" {
|
||||
extern const uint8_t OUTLINE_PACKAGE[];
|
||||
extern int OUTLINE_OUTLINE_OFFSET;
|
||||
extern int OUTLINE_OUTLINE_SIZE;
|
||||
}
|
||||
#define OUTLINE_OUTLINE_DATA (OUTLINE_PACKAGE + OUTLINE_OUTLINE_OFFSET)
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user