コード例 #1
0
ファイル: NativeCamera.cs プロジェクト: Ruu/BansheeEngine
 private static extern void Internal_Create(NativeCamera instance, IntPtr parentSO);
コード例 #2
0
 private static extern void Internal_Create(NativeCamera instance, IntPtr parentSO);
コード例 #3
0
ファイル: Camera.cs プロジェクト: Ruu/BansheeEngine
        private void OnReset()
        {
            if (native != null)
                native.OnDestroy();

            native = new NativeCamera(SceneObject);

            // Restore saved values after reset
            native.aspectRatio = serializableData.aspectRatio;
            native.nearClipPlane = serializableData.nearClipPlane;
            native.farClipPlane = serializableData.farClipPlane;
            native.fieldOfView = serializableData.fieldOfView;
            native.viewportRect = serializableData.viewportRect;
            native.projectionType = serializableData.projectionType;
            native.orthoHeight = serializableData.orthoHeight;
            native.clearColor = serializableData.clearColor;
            native.clearDepth = serializableData.clearDepth;
            native.clearStencil = serializableData.clearStencil;
            native.clearFlags = serializableData.clearFlags;
            native.priority = serializableData.priority;
            native.layers = serializableData.layers;
            native.main = serializableData.main;

            // TODO - Make RenderTexture a resource so I can save/restore it?
        }