Begin refactor.
This commit is contained in:
@ -16,10 +16,6 @@ bool sandboxSceneInit(sandboxscene_t *game, engine_t *engine) {
|
||||
"shaders/textured.vert", "shaders/textured.frag"
|
||||
);
|
||||
|
||||
scripterInit(&scripter, engine);
|
||||
assetScripterAppend(&scripter, "scripts/main.js");
|
||||
scripterInvokeMethodSimple(&scripter, "init");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -48,5 +44,4 @@ void sandboxSceneUpdate(sandboxscene_t *game, engine_t *engine) {
|
||||
}
|
||||
|
||||
void sandboxSceneDispose(sandboxscene_t *game) {
|
||||
scripterDispose(&scripter);
|
||||
}
|
@ -6,7 +6,7 @@
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include <dawn/dawn.h>
|
||||
#include "../../libs.h"
|
||||
#include "../../display/camera.h"
|
||||
#include "../../display/shader.h"
|
||||
#include "../../display/font.h"
|
||||
@ -26,6 +26,15 @@
|
||||
#include "../../ui/image.h"
|
||||
#include "../../ui/framedtextmenu.h"
|
||||
|
||||
typedef struct {
|
||||
camera_t camera;
|
||||
|
||||
primitive_t primitive;
|
||||
texture_t texture;
|
||||
shader_t shader;
|
||||
font_t font;
|
||||
} sandboxscene_t;
|
||||
|
||||
/**
|
||||
* Initialize the sandbox scene test game.
|
||||
*
|
||||
|
Reference in New Issue
Block a user