kraken_convert now takes an '-o' argument to specify the output bundle. Created cmake scripts to use kraken_convert to bundle standard assets. HRTF Kemar data is now bundled by cmake scripts. Added README.md for HRTF Kemar data

This commit is contained in:
2019-11-30 17:57:45 -08:00
parent 8abe05d950
commit 20121e7eaa
379 changed files with 509 additions and 29 deletions

View File

@@ -1,5 +1,6 @@
#include <windows.h>
#include "kraken.h"
#include "hello_cube.h"
using namespace kraken;
@@ -22,9 +23,32 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
0, 0, 640, 480, 0, 0, hInstance, NULL))
return 2;
KrInitializeInfo init_info = {};
init_info.sType = KR_STRUCTURE_TYPE_INITIALIZE;
init_info.resourceMapSize = 1024;
KrResult res = KrInitialize(&init_info);
if (res != KR_SUCCESS) {
// printf("Failed to initialize Kraken!\n");
return 1;
}
KrLoadResourceInfo load_resource_info = {};
load_resource_info.sType = KR_STRUCTURE_TYPE_LOAD_RESOURCE;
load_resource_info.resourceHandle = 1;
load_resource_info.pResourcePath = "kraken_standard_assets.krbundle";
res = KrLoadResource(&load_resource_info);
if (res != KR_SUCCESS) {
//printf("Failed to load resource: %s\n", arg);
KrShutdown();
return 1;
}
while (GetMessage(&msg, NULL, 0, 0) > 0)
DispatchMessage(&msg);
KrShutdown();
return 0;
}