Added scene node structs to API

This commit is contained in:
2020-06-12 18:49:07 -07:00
parent 18a2bb5688
commit 0fc6ec1357
4 changed files with 159 additions and 14 deletions

View File

@@ -1,7 +1,13 @@
#include "hello_cube.h"
#include "kraken.h"
#include <assert.h>
void smoke_main()
void smoke_load()
{
KrCreateSceneInfo create_scene_info = {};
create_scene_info.sType = KR_STRUCTURE_TYPE_CREATE_SCENE;
create_scene_info.resourceHandle = 10;
create_scene_info.pSceneName = "cube";
KrResult res = KrCreateScene(&create_scene_info);
assert(res == KR_SUCCESS);
}

View File

@@ -32,6 +32,6 @@
#ifndef HELLO_CUBE_H
#define HELLO_CUBE_H
void smoke_main();
void smoke_load();
#endif // HELLO_CUBE_H

View File

@@ -44,6 +44,8 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
return 1;
}
smoke_load();
while (GetMessage(&msg, NULL, 0, 0) > 0)
DispatchMessage(&msg);