From 81508576edf0e6082af04e729b987142d83bf378 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?furby=E2=84=A2?= Date: Tue, 3 Sep 2024 09:44:47 -0600 Subject: [PATCH] Ensure proper licensing headers across Wabi Swift source. * All Wabi Swift code in this repo is licensed under Apache 2.0. * All code in this repo is licensed under each of the existing libraries original licenses. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: furby™ --- Package.swift | 8 +- Sources/CosmoGraph/CGXCore.swift | 42 +++++----- Sources/CosmoGraph/Foundation/NSString.swift | 42 +++++----- .../CosmoGraph/Metal/MTLArchitecture.swift | 42 +++++----- Sources/CosmoGraph/Metal/MTLDevice.swift | 42 +++++----- Sources/GPUShaders/GPUShaders.swift | 45 ++++++----- Sources/MXResources/MXResources.swift | 41 +++++----- Sources/MetaTBB/MetaTBB.swift | 43 ++++++----- Sources/MetaversalDemo/Creator.swift | 12 +-- Sources/MetaversalDemo/OSView.swift | 76 ++++++++++--------- Sources/MetaversalDemo/Renderer.swift | 57 ++++++++------ .../MetaverseKitTests/MetaverseKitTests.swift | 41 +++++----- 12 files changed, 275 insertions(+), 216 deletions(-) diff --git a/Package.swift b/Package.swift index 86bc3876..99a31486 100644 --- a/Package.swift +++ b/Package.swift @@ -719,10 +719,10 @@ let package = Package( ] ), - /** - * Run this from the command line via: - * - * swift bundler run -p macOS MetaversalDemo */ + /* + * Run this from the command line via: + * + * swift bundler run -p macOS MetaversalDemo */ .executableTarget( name: "MetaversalDemo", dependencies: [ diff --git a/Sources/CosmoGraph/CGXCore.swift b/Sources/CosmoGraph/CGXCore.swift index 272e67c0..7e8ade6d 100644 --- a/Sources/CosmoGraph/CGXCore.swift +++ b/Sources/CosmoGraph/CGXCore.swift @@ -1,28 +1,32 @@ -/* -------------------------------------------------------------- - * :: : C O S M O G R A P H : :: - * -------------------------------------------------------------- - * @wabiverse :: metaversekit :: cosmograph +/* ---------------------------------------------------------------- + * :: : M E T A V E R S E : :: + * ---------------------------------------------------------------- + * This software is Licensed under the terms of the Apache License, + * version 2.0 (the "Apache License") with the following additional + * modification; you may not use this file except within compliance + * of the Apache License and the following modification made to it. + * Section 6. Trademarks. is deleted and replaced with: * - * This program is free software; you can redistribute it, and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. + * Trademarks. This License does not grant permission to use any of + * its trade names, trademarks, service marks, or the product names + * of this Licensor or its affiliates, except as required to comply + * with Section 4(c.) of this License, and to reproduce the content + * of the NOTICE file. * - * This program is distributed in the hope that it will be useful - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Check out - * the GNU General Public License for more details. + * This software is distributed in the hope that it will be useful, + * but WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND without even an + * implied warranty of MERCHANTABILITY, or FITNESS FOR A PARTICULAR + * PURPOSE. See the Apache License for more details. * - * You should have received a copy for this software license, the - * GNU General Public License along with this program; or, if not - * write to the Free Software Foundation, Inc., to the address of + * You should have received a copy for this software license of the + * Apache License along with this program; or, if not, please write + * to the Free Software Foundation Inc., with the following address * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * - * Copyright (C) 2023 Wabi Foundation. - * All Rights Reserved. - * -------------------------------------------------------------- + * Copyright (C) 2024 Wabi Foundation. All Rights Reserved. + * ---------------------------------------------------------------- * . x x x . o o o . x x x . : : : . o x o . : : : . - * -------------------------------------------------------------- */ + * ---------------------------------------------------------------- */ import Foundation diff --git a/Sources/CosmoGraph/Foundation/NSString.swift b/Sources/CosmoGraph/Foundation/NSString.swift index 4408aa28..9ecfef4a 100644 --- a/Sources/CosmoGraph/Foundation/NSString.swift +++ b/Sources/CosmoGraph/Foundation/NSString.swift @@ -1,28 +1,32 @@ -/* -------------------------------------------------------------- - * :: : C O S M O G R A P H : :: - * -------------------------------------------------------------- - * @wabiverse :: metaversekit :: cosmograph +/* ---------------------------------------------------------------- + * :: : M E T A V E R S E : :: + * ---------------------------------------------------------------- + * This software is Licensed under the terms of the Apache License, + * version 2.0 (the "Apache License") with the following additional + * modification; you may not use this file except within compliance + * of the Apache License and the following modification made to it. + * Section 6. Trademarks. is deleted and replaced with: * - * This program is free software; you can redistribute it, and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. + * Trademarks. This License does not grant permission to use any of + * its trade names, trademarks, service marks, or the product names + * of this Licensor or its affiliates, except as required to comply + * with Section 4(c.) of this License, and to reproduce the content + * of the NOTICE file. * - * This program is distributed in the hope that it will be useful - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Check out - * the GNU General Public License for more details. + * This software is distributed in the hope that it will be useful, + * but WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND without even an + * implied warranty of MERCHANTABILITY, or FITNESS FOR A PARTICULAR + * PURPOSE. See the Apache License for more details. * - * You should have received a copy for this software license, the - * GNU General Public License along with this program; or, if not - * write to the Free Software Foundation, Inc., to the address of + * You should have received a copy for this software license of the + * Apache License along with this program; or, if not, please write + * to the Free Software Foundation Inc., with the following address * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * - * Copyright (C) 2023 Wabi Foundation. - * All Rights Reserved. - * -------------------------------------------------------------- + * Copyright (C) 2024 Wabi Foundation. All Rights Reserved. + * ---------------------------------------------------------------- * . x x x . o o o . x x x . : : : . o x o . : : : . - * -------------------------------------------------------------- */ + * ---------------------------------------------------------------- */ #if os(macOS) || os(visionOS) || os(iOS) || os(watchOS) || os(tvOS) diff --git a/Sources/CosmoGraph/Metal/MTLArchitecture.swift b/Sources/CosmoGraph/Metal/MTLArchitecture.swift index 26496a19..4e031739 100644 --- a/Sources/CosmoGraph/Metal/MTLArchitecture.swift +++ b/Sources/CosmoGraph/Metal/MTLArchitecture.swift @@ -1,28 +1,32 @@ -/* -------------------------------------------------------------- - * :: : C O S M O G R A P H : :: - * -------------------------------------------------------------- - * @wabiverse :: metaversekit :: cosmograph +/* ---------------------------------------------------------------- + * :: : M E T A V E R S E : :: + * ---------------------------------------------------------------- + * This software is Licensed under the terms of the Apache License, + * version 2.0 (the "Apache License") with the following additional + * modification; you may not use this file except within compliance + * of the Apache License and the following modification made to it. + * Section 6. Trademarks. is deleted and replaced with: * - * This program is free software; you can redistribute it, and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. + * Trademarks. This License does not grant permission to use any of + * its trade names, trademarks, service marks, or the product names + * of this Licensor or its affiliates, except as required to comply + * with Section 4(c.) of this License, and to reproduce the content + * of the NOTICE file. * - * This program is distributed in the hope that it will be useful - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Check out - * the GNU General Public License for more details. + * This software is distributed in the hope that it will be useful, + * but WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND without even an + * implied warranty of MERCHANTABILITY, or FITNESS FOR A PARTICULAR + * PURPOSE. See the Apache License for more details. * - * You should have received a copy for this software license, the - * GNU General Public License along with this program; or, if not - * write to the Free Software Foundation, Inc., to the address of + * You should have received a copy for this software license of the + * Apache License along with this program; or, if not, please write + * to the Free Software Foundation Inc., with the following address * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * - * Copyright (C) 2023 Wabi Foundation. - * All Rights Reserved. - * -------------------------------------------------------------- + * Copyright (C) 2024 Wabi Foundation. All Rights Reserved. + * ---------------------------------------------------------------- * . x x x . o o o . x x x . : : : . o x o . : : : . - * -------------------------------------------------------------- */ + * ---------------------------------------------------------------- */ #if canImport(Metal) diff --git a/Sources/CosmoGraph/Metal/MTLDevice.swift b/Sources/CosmoGraph/Metal/MTLDevice.swift index 26bff646..ef8a958c 100644 --- a/Sources/CosmoGraph/Metal/MTLDevice.swift +++ b/Sources/CosmoGraph/Metal/MTLDevice.swift @@ -1,28 +1,32 @@ -/* -------------------------------------------------------------- - * :: : C O S M O G R A P H : :: - * -------------------------------------------------------------- - * @wabiverse :: metaversekit :: cosmograph +/* ---------------------------------------------------------------- + * :: : M E T A V E R S E : :: + * ---------------------------------------------------------------- + * This software is Licensed under the terms of the Apache License, + * version 2.0 (the "Apache License") with the following additional + * modification; you may not use this file except within compliance + * of the Apache License and the following modification made to it. + * Section 6. Trademarks. is deleted and replaced with: * - * This program is free software; you can redistribute it, and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. + * Trademarks. This License does not grant permission to use any of + * its trade names, trademarks, service marks, or the product names + * of this Licensor or its affiliates, except as required to comply + * with Section 4(c.) of this License, and to reproduce the content + * of the NOTICE file. * - * This program is distributed in the hope that it will be useful - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Check out - * the GNU General Public License for more details. + * This software is distributed in the hope that it will be useful, + * but WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND without even an + * implied warranty of MERCHANTABILITY, or FITNESS FOR A PARTICULAR + * PURPOSE. See the Apache License for more details. * - * You should have received a copy for this software license, the - * GNU General Public License along with this program; or, if not - * write to the Free Software Foundation, Inc., to the address of + * You should have received a copy for this software license of the + * Apache License along with this program; or, if not, please write + * to the Free Software Foundation Inc., with the following address * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * - * Copyright (C) 2023 Wabi Foundation. - * All Rights Reserved. - * -------------------------------------------------------------- + * Copyright (C) 2024 Wabi Foundation. All Rights Reserved. + * ---------------------------------------------------------------- * . x x x . o o o . x x x . : : : . o x o . : : : . - * -------------------------------------------------------------- */ + * ---------------------------------------------------------------- */ #if canImport(Metal) diff --git a/Sources/GPUShaders/GPUShaders.swift b/Sources/GPUShaders/GPUShaders.swift index 16c02e92..6a871636 100644 --- a/Sources/GPUShaders/GPUShaders.swift +++ b/Sources/GPUShaders/GPUShaders.swift @@ -1,25 +1,32 @@ -/* -------------------------------------------------------------- - * :: : M E T A V E R S E : :: - * -------------------------------------------------------------- - * This program is free software; you can redistribute it, and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. +/* ---------------------------------------------------------------- + * :: : M E T A V E R S E : :: + * ---------------------------------------------------------------- + * This software is Licensed under the terms of the Apache License, + * version 2.0 (the "Apache License") with the following additional + * modification; you may not use this file except within compliance + * of the Apache License and the following modification made to it. + * Section 6. Trademarks. is deleted and replaced with: * - * This program is distributed in the hope that it will be useful - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Check out - * the GNU General Public License for more details. + * Trademarks. This License does not grant permission to use any of + * its trade names, trademarks, service marks, or the product names + * of this Licensor or its affiliates, except as required to comply + * with Section 4(c.) of this License, and to reproduce the content + * of the NOTICE file. * - * You should have received a copy for this software license, the - * GNU General Public License along with this program; or, if not - * write to the Free Software Foundation, Inc., to the address of + * This software is distributed in the hope that it will be useful, + * but WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND without even an + * implied warranty of MERCHANTABILITY, or FITNESS FOR A PARTICULAR + * PURPOSE. See the Apache License for more details. + * + * You should have received a copy for this software license of the + * Apache License along with this program; or, if not, please write + * to the Free Software Foundation Inc., with the following address * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * - * Copyright (C) 2023 Wabi Foundation. All Rights Reserved. - * -------------------------------------------------------------- + * Copyright (C) 2024 Wabi Foundation. All Rights Reserved. + * ---------------------------------------------------------------- * . x x x . o o o . x x x . : : : . o x o . : : : . - * -------------------------------------------------------------- */ + * ---------------------------------------------------------------- */ #if canImport(Metal) import Metal @@ -36,10 +43,10 @@ public class GPUShaders } #if canImport(Metal) - /* A metal device for access to the GPU. */ + /** A metal device for access to the GPU. */ public var device: MTLDevice! - /* A metal library. */ + /** A metal library. */ public var metalLib: MTLLibrary! #endif /* canImport(Metal) */ } diff --git a/Sources/MXResources/MXResources.swift b/Sources/MXResources/MXResources.swift index 636c06e2..95503163 100644 --- a/Sources/MXResources/MXResources.swift +++ b/Sources/MXResources/MXResources.swift @@ -1,25 +1,32 @@ -/* -------------------------------------------------------------- - * :: : M E T A V E R S E : :: - * -------------------------------------------------------------- - * This program is free software; you can redistribute it, and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. +/* ---------------------------------------------------------------- + * :: : M E T A V E R S E : :: + * ---------------------------------------------------------------- + * This software is Licensed under the terms of the Apache License, + * version 2.0 (the "Apache License") with the following additional + * modification; you may not use this file except within compliance + * of the Apache License and the following modification made to it. + * Section 6. Trademarks. is deleted and replaced with: * - * This program is distributed in the hope that it will be useful - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Check out - * the GNU General Public License for more details. + * Trademarks. This License does not grant permission to use any of + * its trade names, trademarks, service marks, or the product names + * of this Licensor or its affiliates, except as required to comply + * with Section 4(c.) of this License, and to reproduce the content + * of the NOTICE file. * - * You should have received a copy for this software license, the - * GNU General Public License along with this program; or, if not - * write to the Free Software Foundation, Inc., to the address of + * This software is distributed in the hope that it will be useful, + * but WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND without even an + * implied warranty of MERCHANTABILITY, or FITNESS FOR A PARTICULAR + * PURPOSE. See the Apache License for more details. + * + * You should have received a copy for this software license of the + * Apache License along with this program; or, if not, please write + * to the Free Software Foundation Inc., with the following address * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * - * Copyright (C) 2023 Wabi Foundation. All Rights Reserved. - * -------------------------------------------------------------- + * Copyright (C) 2024 Wabi Foundation. All Rights Reserved. + * ---------------------------------------------------------------- * . x x x . o o o . x x x . : : : . o x o . : : : . - * -------------------------------------------------------------- */ + * ---------------------------------------------------------------- */ #if canImport(Metal) import Metal diff --git a/Sources/MetaTBB/MetaTBB.swift b/Sources/MetaTBB/MetaTBB.swift index 0473dea5..2a0d12d4 100644 --- a/Sources/MetaTBB/MetaTBB.swift +++ b/Sources/MetaTBB/MetaTBB.swift @@ -1,32 +1,39 @@ -/* -------------------------------------------------------------- - * :: : M E T A V E R S E : :: - * -------------------------------------------------------------- - * This program is free software; you can redistribute it, and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. +/* ---------------------------------------------------------------- + * :: : M E T A V E R S E : :: + * ---------------------------------------------------------------- + * This software is Licensed under the terms of the Apache License, + * version 2.0 (the "Apache License") with the following additional + * modification; you may not use this file except within compliance + * of the Apache License and the following modification made to it. + * Section 6. Trademarks. is deleted and replaced with: * - * This program is distributed in the hope that it will be useful - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Check out - * the GNU General Public License for more details. + * Trademarks. This License does not grant permission to use any of + * its trade names, trademarks, service marks, or the product names + * of this Licensor or its affiliates, except as required to comply + * with Section 4(c.) of this License, and to reproduce the content + * of the NOTICE file. * - * You should have received a copy for this software license, the - * GNU General Public License along with this program; or, if not - * write to the Free Software Foundation, Inc., to the address of + * This software is distributed in the hope that it will be useful, + * but WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND without even an + * implied warranty of MERCHANTABILITY, or FITNESS FOR A PARTICULAR + * PURPOSE. See the Apache License for more details. + * + * You should have received a copy for this software license of the + * Apache License along with this program; or, if not, please write + * to the Free Software Foundation Inc., with the following address * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * - * Copyright (C) 2023 Wabi Foundation. All Rights Reserved. - * -------------------------------------------------------------- + * Copyright (C) 2024 Wabi Foundation. All Rights Reserved. + * ---------------------------------------------------------------- * . x x x . o o o . x x x . : : : . o x o . : : : . - * -------------------------------------------------------------- */ + * ---------------------------------------------------------------- */ // import OneTBB /** * # Metaversal Threading Building Blocks. * - * Root of **OneTBB** (threading building blocks) + * Root of **OneTBB** (threading building blocks) * dependency. */ public class MetaTBB { diff --git a/Sources/MetaversalDemo/Creator.swift b/Sources/MetaversalDemo/Creator.swift index eed45f28..822deda1 100644 --- a/Sources/MetaversalDemo/Creator.swift +++ b/Sources/MetaversalDemo/Creator.swift @@ -40,14 +40,14 @@ import OpenSubdiv import OpenTime import OpenTimelineIO #if os(macOS) || os(visionOS) || os(iOS) || os(tvOS) || os(watchOS) -// windows doesn't like the -// mismatched std.version -// coming in from TBB from -// the OpenVDB import. -import OpenVDB + // windows doesn't like the + // mismatched std.version + // coming in from TBB from + // the OpenVDB import. + import OpenVDB #endif // os(macOS) || os(visionOS) || os(iOS) || os(tvOS) || os(watchOS) #if !os(Windows) -import Ptex + import Ptex #endif // !os(Windows) #if canImport(Python) && (os(macOS) || os(visionOS) || os(iOS) || os(tvOS) || os(watchOS)) import PyBundle diff --git a/Sources/MetaversalDemo/OSView.swift b/Sources/MetaversalDemo/OSView.swift index 73116eb3..e6830fa7 100644 --- a/Sources/MetaversalDemo/OSView.swift +++ b/Sources/MetaversalDemo/OSView.swift @@ -1,44 +1,52 @@ -/* -------------------------------------------------------------- - * :: : M E T A V E R S E : :: - * -------------------------------------------------------------- - * This program is free software; you can redistribute it, and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. +/* ---------------------------------------------------------------- + * :: : M E T A V E R S E : :: + * ---------------------------------------------------------------- + * This software is Licensed under the terms of the Apache License, + * version 2.0 (the "Apache License") with the following additional + * modification; you may not use this file except within compliance + * of the Apache License and the following modification made to it. + * Section 6. Trademarks. is deleted and replaced with: * - * This program is distributed in the hope that it will be useful - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Check out - * the GNU General Public License for more details. + * Trademarks. This License does not grant permission to use any of + * its trade names, trademarks, service marks, or the product names + * of this Licensor or its affiliates, except as required to comply + * with Section 4(c.) of this License, and to reproduce the content + * of the NOTICE file. * - * You should have received a copy for this software license, the - * GNU General Public License along with this program; or, if not - * write to the Free Software Foundation, Inc., to the address of + * This software is distributed in the hope that it will be useful, + * but WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND without even an + * implied warranty of MERCHANTABILITY, or FITNESS FOR A PARTICULAR + * PURPOSE. See the Apache License for more details. + * + * You should have received a copy for this software license of the + * Apache License along with this program; or, if not, please write + * to the Free Software Foundation Inc., with the following address * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * - * Copyright (C) 2023 Wabi Foundation. All Rights Reserved. - * -------------------------------------------------------------- + * Copyright (C) 2024 Wabi Foundation. All Rights Reserved. + * ---------------------------------------------------------------- * . x x x . o o o . x x x . : : : . o x o . : : : . - * -------------------------------------------------------------- */ + * ---------------------------------------------------------------- */ #if os(visionOS) || !canImport(AppKit) && !canImport(UIKit) -open class OSView -{ - public init() - {} - - public func viewDidLoad() - {} -} -public typealias ViewControllerAPI = OSView + open class OSView + { + public init() + {} + + public func viewDidLoad() + {} + } + + public typealias ViewControllerAPI = OSView -public final class ViewController: ViewControllerAPI -{ - private var renderer: Renderer? - - public override func viewDidLoad() - {} -} + public final class ViewController: ViewControllerAPI + { + private var renderer: Renderer? + + override public func viewDidLoad() + {} + } #elseif canImport(Metal) import Metal @@ -54,7 +62,7 @@ public final class ViewController: ViewControllerAPI { private var renderer: Renderer? - public override func viewDidLoad() + override public func viewDidLoad() { super.viewDidLoad() diff --git a/Sources/MetaversalDemo/Renderer.swift b/Sources/MetaversalDemo/Renderer.swift index a9dcb2c0..32222fa0 100644 --- a/Sources/MetaversalDemo/Renderer.swift +++ b/Sources/MetaversalDemo/Renderer.swift @@ -1,36 +1,43 @@ -/* -------------------------------------------------------------- - * :: : M E T A V E R S E : :: - * -------------------------------------------------------------- - * This program is free software; you can redistribute it, and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. +/* ---------------------------------------------------------------- + * :: : M E T A V E R S E : :: + * ---------------------------------------------------------------- + * This software is Licensed under the terms of the Apache License, + * version 2.0 (the "Apache License") with the following additional + * modification; you may not use this file except within compliance + * of the Apache License and the following modification made to it. + * Section 6. Trademarks. is deleted and replaced with: * - * This program is distributed in the hope that it will be useful - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Check out - * the GNU General Public License for more details. + * Trademarks. This License does not grant permission to use any of + * its trade names, trademarks, service marks, or the product names + * of this Licensor or its affiliates, except as required to comply + * with Section 4(c.) of this License, and to reproduce the content + * of the NOTICE file. * - * You should have received a copy for this software license, the - * GNU General Public License along with this program; or, if not - * write to the Free Software Foundation, Inc., to the address of + * This software is distributed in the hope that it will be useful, + * but WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND without even an + * implied warranty of MERCHANTABILITY, or FITNESS FOR A PARTICULAR + * PURPOSE. See the Apache License for more details. + * + * You should have received a copy for this software license of the + * Apache License along with this program; or, if not, please write + * to the Free Software Foundation Inc., with the following address * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * - * Copyright (C) 2023 Wabi Foundation. All Rights Reserved. - * -------------------------------------------------------------- + * Copyright (C) 2024 Wabi Foundation. All Rights Reserved. + * ---------------------------------------------------------------- * . x x x . o o o . x x x . : : : . o x o . : : : . - * -------------------------------------------------------------- */ + * ---------------------------------------------------------------- */ #if os(visionOS) || !canImport(AppKit) && !canImport(UIKit) -public final class Renderer -{ - public init?() - {} - - public func draw() - {} -} + public final class Renderer + { + public init?() + {} + + public func draw() + {} + } #elseif canImport(Metal) import Metal diff --git a/Tests/MetaverseKitTests/MetaverseKitTests.swift b/Tests/MetaverseKitTests/MetaverseKitTests.swift index 0b974a35..c098ec72 100644 --- a/Tests/MetaverseKitTests/MetaverseKitTests.swift +++ b/Tests/MetaverseKitTests/MetaverseKitTests.swift @@ -1,25 +1,32 @@ -/* -------------------------------------------------------------- - * :: : M E T A V E R S E : :: - * -------------------------------------------------------------- - * This program is free software; you can redistribute it, and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. +/* ---------------------------------------------------------------- + * :: : M E T A V E R S E : :: + * ---------------------------------------------------------------- + * This software is Licensed under the terms of the Apache License, + * version 2.0 (the "Apache License") with the following additional + * modification; you may not use this file except within compliance + * of the Apache License and the following modification made to it. + * Section 6. Trademarks. is deleted and replaced with: * - * This program is distributed in the hope that it will be useful - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Check out - * the GNU General Public License for more details. + * Trademarks. This License does not grant permission to use any of + * its trade names, trademarks, service marks, or the product names + * of this Licensor or its affiliates, except as required to comply + * with Section 4(c.) of this License, and to reproduce the content + * of the NOTICE file. * - * You should have received a copy for this software license, the - * GNU General Public License along with this program; or, if not - * write to the Free Software Foundation, Inc., to the address of + * This software is distributed in the hope that it will be useful, + * but WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND without even an + * implied warranty of MERCHANTABILITY, or FITNESS FOR A PARTICULAR + * PURPOSE. See the Apache License for more details. + * + * You should have received a copy for this software license of the + * Apache License along with this program; or, if not, please write + * to the Free Software Foundation Inc., with the following address * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * - * Copyright (C) 2023 Wabi Foundation. All Rights Reserved. - * -------------------------------------------------------------- + * Copyright (C) 2024 Wabi Foundation. All Rights Reserved. + * ---------------------------------------------------------------- * . x x x . o o o . x x x . : : : . o x o . : : : . - * -------------------------------------------------------------- */ + * ---------------------------------------------------------------- */ import XCTest @testable import ImGui