Added VR libraries
This commit is contained in:
27
Assets/GoogleVR/Plugins/iOS/GvrAudioAppController.h
Normal file
27
Assets/GoogleVR/Plugins/iOS/GvrAudioAppController.h
Normal file
@@ -0,0 +1,27 @@
|
||||
// Copyright 2017 Google Inc. All rights reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#import "UnityAppController.h"
|
||||
#import "UnityAppController+ViewHandling.h"
|
||||
|
||||
#import "UnityAppController+UnityInterface.h"
|
||||
#include "PluginBase/UnityViewControllerListener.h"
|
||||
|
||||
@interface GvrAudioAppController : UnityAppController<UnityViewControllerListener>
|
||||
|
||||
- (UnityView *)createUnityView;
|
||||
|
||||
- (UIViewController *)unityViewController;
|
||||
|
||||
@end
|
||||
23
Assets/GoogleVR/Plugins/iOS/GvrAudioAppController.h.meta
Normal file
23
Assets/GoogleVR/Plugins/iOS/GvrAudioAppController.h.meta
Normal file
@@ -0,0 +1,23 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b764ba158c511407fbc195fb36b34bc6
|
||||
timeCreated: 1494024789
|
||||
licenseType: Pro
|
||||
PluginImporter:
|
||||
serializedVersion: 1
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
platformData:
|
||||
Any:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
Editor:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
iOS:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
43
Assets/GoogleVR/Plugins/iOS/GvrAudioAppController.mm
Normal file
43
Assets/GoogleVR/Plugins/iOS/GvrAudioAppController.mm
Normal file
@@ -0,0 +1,43 @@
|
||||
// Copyright 2017 Google Inc. All rights reserved.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#import "GvrAudioAppController.h"
|
||||
|
||||
extern "C" {
|
||||
|
||||
// We have to manually register the Unity Audio Effect plugin.
|
||||
struct UnityAudioEffectDefinition;
|
||||
typedef int (*UnityPluginGetAudioEffectDefinitionsFunc)(
|
||||
struct UnityAudioEffectDefinition*** descptr);
|
||||
extern void UnityRegisterAudioPlugin(
|
||||
UnityPluginGetAudioEffectDefinitionsFunc getAudioEffectDefinitions);
|
||||
extern int UnityGetAudioEffectDefinitions(UnityAudioEffectDefinition*** definitionptr);
|
||||
|
||||
} // extern "C"
|
||||
|
||||
@implementation GvrAudioAppController
|
||||
|
||||
- (UnityView *)createUnityView {
|
||||
UnityRegisterViewControllerListener(self);
|
||||
UnityRegisterAudioPlugin(UnityGetAudioEffectDefinitions);
|
||||
return [super createUnityView];
|
||||
}
|
||||
|
||||
- (UIViewController *)unityViewController {
|
||||
return UnityGetGLViewController();
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
IMPL_APP_CONTROLLER_SUBCLASS(GvrAudioAppController)
|
||||
23
Assets/GoogleVR/Plugins/iOS/GvrAudioAppController.mm.meta
Normal file
23
Assets/GoogleVR/Plugins/iOS/GvrAudioAppController.mm.meta
Normal file
@@ -0,0 +1,23 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f2a868822ddbb4ca6952f78be4bb4698
|
||||
timeCreated: 1494024789
|
||||
licenseType: Pro
|
||||
PluginImporter:
|
||||
serializedVersion: 1
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
platformData:
|
||||
Any:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
Editor:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
iOS:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/GoogleVR/Plugins/iOS/libaudioplugingvrunity.a
Normal file
BIN
Assets/GoogleVR/Plugins/iOS/libaudioplugingvrunity.a
Normal file
Binary file not shown.
21
Assets/GoogleVR/Plugins/iOS/libaudioplugingvrunity.a.meta
Normal file
21
Assets/GoogleVR/Plugins/iOS/libaudioplugingvrunity.a.meta
Normal file
@@ -0,0 +1,21 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 94eb628c570e649bfac361e67f7fc6c3
|
||||
PluginImporter:
|
||||
serializedVersion: 1
|
||||
iconMap: {}
|
||||
executionOrder: {}
|
||||
isPreloaded: 0
|
||||
platformData:
|
||||
Any:
|
||||
enabled: 0
|
||||
settings: {}
|
||||
Editor:
|
||||
enabled: 0
|
||||
settings:
|
||||
DefaultValueInitialized: true
|
||||
iOS:
|
||||
enabled: 1
|
||||
settings: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user