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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user