123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- mergeInto(LibraryManager.library, {
- WebGLPlaceOrigin: function(camPosStr)
- {
- window.wTracker.placeOrigin(UTF8ToString(camPosStr));
- },
- WebGLResetOrigin: function()
- {
- window.wTracker.resetOrigin();
- },
- StartWebGLwTracker: function(name)
- {
- if(!window.wTracker){
- console.error('%cwTracker not found! Please make sure to use the wTracker WebGLTemplate in your ProjectSettings','font-size: 32px; font-weight: bold');
- throw new Error("Tracker not found! Please make sure to use the wTracker WebGLTemplate in your ProjectSettings");
- return;
- }
- window.wTracker.startTracker(UTF8ToString(name));
- },
- StopWebGLwTracker: function()
- {
- window.wTracker.stopTracker();
- },
- IsWebGLwTrackerReady: function()
- {
- return window.wTracker != null;
- },
- SetWebGLwTrackerSettings: function(settings)
- {
- window.wTracker.setTrackerSettings(UTF8ToString(settings),"1.5.0.150238");
- },
- WebGLSetViewportPos: function(vStr){
- window.wTracker.setViewportPos(UTF8ToString(vStr));
- },
- WebGLGetGPSPosition: function(){
- window.wTracker.getGPSPosition();
- },
- WebGLSubscribeToGPSPositionUpdates: function(){
- window.wTracker.subscribeToGPSPositionChanges();
- },
- WebGLUnsubscribeToGPSPositionUpdates: function(){
- window.wTracker.unsubscribeToGPSPositionChanges();
- },
- });
|