Added scene node structs to API
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -32,6 +32,6 @@
|
||||
#ifndef HELLO_CUBE_H
|
||||
#define HELLO_CUBE_H
|
||||
|
||||
void smoke_main();
|
||||
void smoke_load();
|
||||
|
||||
#endif // HELLO_CUBE_H
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user