From 1aa78696b0764bead9edcf37aad26aca32cb3099 Mon Sep 17 00:00:00 2001 From: miku-666 <74728189+NessieHax@users.noreply.github.com> Date: Wed, 7 Feb 2024 16:54:26 +0100 Subject: [PATCH] Add Copyright header to rendering classes --- .../Rendering/Camera/PerspectiveCamera.cs | 27 ++++++++++++++----- PCK-Studio/Rendering/CubeData.cs | 2 +- PCK-Studio/Rendering/Renderer.cs | 2 +- PCK-Studio/Rendering/Shader/ShaderObject.cs | 19 ++++++++++++- PCK-Studio/Rendering/Shader/ShaderProgram.cs | 19 ++++++++++++- PCK-Studio/Rendering/Shader/ShaderSource.cs | 19 ++++++++++++- PCK-Studio/Rendering/SkinRenderer.cs | 2 +- PCK-Studio/Rendering/Texture/Texture.cs | 5 ---- 8 files changed, 77 insertions(+), 18 deletions(-) diff --git a/PCK-Studio/Rendering/Camera/PerspectiveCamera.cs b/PCK-Studio/Rendering/Camera/PerspectiveCamera.cs index 11e4deb1..b14fe3cc 100644 --- a/PCK-Studio/Rendering/Camera/PerspectiveCamera.cs +++ b/PCK-Studio/Rendering/Camera/PerspectiveCamera.cs @@ -1,11 +1,24 @@ -using System; -using System.Collections.Generic; -using System.Diagnostics; +/* Copyright (c) 2024-present miku-666 + * This software is provided 'as-is', without any express or implied + * warranty. In no event will the authors be held liable for any damages + * arising from the use of this software. + * + * Permission is granted to anyone to use this software for any purpose, + * including commercial applications, and to alter it and redistribute it + * freely, subject to the following restrictions: + * + * 1.The origin of this software must not be misrepresented; you must not + * claim that you wrote the original software. If you use this software + * in a product, an acknowledgment in the product documentation would be + * appreciated but is not required. + * 2. Altered source versions must be plainly marked as such, and must not be + * misrepresented as being the original software. + * 3. This notice may not be removed or altered from any source distribution. +**/ +// movement code taken from: +// https://github.com/TheCherno/Hazel/blob/master/Hazel/src/Hazel/Renderer/EditorCamera.cpp +using System; using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Octokit; using OpenTK; namespace PckStudio.Rendering.Camera diff --git a/PCK-Studio/Rendering/CubeData.cs b/PCK-Studio/Rendering/CubeData.cs index 22f75a32..7449dbfc 100644 --- a/PCK-Studio/Rendering/CubeData.cs +++ b/PCK-Studio/Rendering/CubeData.cs @@ -1,4 +1,4 @@ -/* Copyright (c) 2023-present miku-666 +/* Copyright (c) 2024-present miku-666 * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. diff --git a/PCK-Studio/Rendering/Renderer.cs b/PCK-Studio/Rendering/Renderer.cs index 84cad74d..5cacd3a7 100644 --- a/PCK-Studio/Rendering/Renderer.cs +++ b/PCK-Studio/Rendering/Renderer.cs @@ -1,4 +1,4 @@ -/* Copyright (c) 2023-present miku-666 +/* Copyright (c) 2024-present miku-666 * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. diff --git a/PCK-Studio/Rendering/Shader/ShaderObject.cs b/PCK-Studio/Rendering/Shader/ShaderObject.cs index 1d594f3f..13fe57e1 100644 --- a/PCK-Studio/Rendering/Shader/ShaderObject.cs +++ b/PCK-Studio/Rendering/Shader/ShaderObject.cs @@ -1,4 +1,21 @@ -using System; +/* Copyright (c) 2024-present miku-666 + * This software is provided 'as-is', without any express or implied + * warranty. In no event will the authors be held liable for any damages + * arising from the use of this software. + * + * Permission is granted to anyone to use this software for any purpose, + * including commercial applications, and to alter it and redistribute it + * freely, subject to the following restrictions: + * + * 1.The origin of this software must not be misrepresented; you must not + * claim that you wrote the original software. If you use this software + * in a product, an acknowledgment in the product documentation would be + * appreciated but is not required. + * 2. Altered source versions must be plainly marked as such, and must not be + * misrepresented as being the original software. + * 3. This notice may not be removed or altered from any source distribution. +**/ +using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; diff --git a/PCK-Studio/Rendering/Shader/ShaderProgram.cs b/PCK-Studio/Rendering/Shader/ShaderProgram.cs index df029499..26fdfece 100644 --- a/PCK-Studio/Rendering/Shader/ShaderProgram.cs +++ b/PCK-Studio/Rendering/Shader/ShaderProgram.cs @@ -1,4 +1,21 @@ -using System; +/* Copyright (c) 2024-present miku-666 + * This software is provided 'as-is', without any express or implied + * warranty. In no event will the authors be held liable for any damages + * arising from the use of this software. + * + * Permission is granted to anyone to use this software for any purpose, + * including commercial applications, and to alter it and redistribute it + * freely, subject to the following restrictions: + * + * 1.The origin of this software must not be misrepresented; you must not + * claim that you wrote the original software. If you use this software + * in a product, an acknowledgment in the product documentation would be + * appreciated but is not required. + * 2. Altered source versions must be plainly marked as such, and must not be + * misrepresented as being the original software. + * 3. This notice may not be removed or altered from any source distribution. +**/ +using System; using System.Collections.Generic; using System.Diagnostics; using System.Drawing; diff --git a/PCK-Studio/Rendering/Shader/ShaderSource.cs b/PCK-Studio/Rendering/Shader/ShaderSource.cs index f923949a..eb4df595 100644 --- a/PCK-Studio/Rendering/Shader/ShaderSource.cs +++ b/PCK-Studio/Rendering/Shader/ShaderSource.cs @@ -1,4 +1,21 @@ -using System; +/* Copyright (c) 2024-present miku-666 + * This software is provided 'as-is', without any express or implied + * warranty. In no event will the authors be held liable for any damages + * arising from the use of this software. + * + * Permission is granted to anyone to use this software for any purpose, + * including commercial applications, and to alter it and redistribute it + * freely, subject to the following restrictions: + * + * 1.The origin of this software must not be misrepresented; you must not + * claim that you wrote the original software. If you use this software + * in a product, an acknowledgment in the product documentation would be + * appreciated but is not required. + * 2. Altered source versions must be plainly marked as such, and must not be + * misrepresented as being the original software. + * 3. This notice may not be removed or altered from any source distribution. +**/ +using System; using System.Collections.Generic; using System.Linq; using System.Text; diff --git a/PCK-Studio/Rendering/SkinRenderer.cs b/PCK-Studio/Rendering/SkinRenderer.cs index 53e2278e..8e3ce8e2 100644 --- a/PCK-Studio/Rendering/SkinRenderer.cs +++ b/PCK-Studio/Rendering/SkinRenderer.cs @@ -1,4 +1,4 @@ -/* Copyright (c) 2023-present miku-666 +/* Copyright (c) 2024-present miku-666 * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. diff --git a/PCK-Studio/Rendering/Texture/Texture.cs b/PCK-Studio/Rendering/Texture/Texture.cs index b9720dfd..48bb21e6 100644 --- a/PCK-Studio/Rendering/Texture/Texture.cs +++ b/PCK-Studio/Rendering/Texture/Texture.cs @@ -1,10 +1,5 @@ using System; -using System.Collections.Generic; using System.Diagnostics; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Newtonsoft.Json.Linq; using OpenTK; using OpenTK.Graphics.OpenGL;