This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| using Unity.VisualScripting; | |
| using UnityEngine; | |
| using UnityEngine.XR; | |
| public class VRInputManager : MonoBehaviour | |
| { | |
| public TextureManager textureManager; | |
| public float restthreshold = 0.3f; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Runtime.InteropServices; | |
| using System; | |
| using UnityEngine; | |
| using System.Drawing; | |
| public class TextureSlicer : MonoBehaviour | |
| { | |
| [DllImport("DevILWrapper.dll", CallingConvention = CallingConvention.Cdecl)] | |
| public static extern IntPtr getImagedata(string filePath, out int width, out int height); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using Unity.VisualScripting; | |
| using UnityEditor; | |
| using UnityEngine; | |
| public class TextureSlicer : MonoBehaviour | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UTexture2D* ACustomHUD::CreateTextureFromBitmapArray(TArray<FColor>&& BitmapArray, uint16 Width, uint16& outCalculatedHeight) | |
| { | |
| check(BitmapArray.Num() % Width == 0); | |
| outCalculatedHeight = BitmapArray.Num() / Width; | |
| UTexture2D* theTexture = UTexture2D::CreateTransient(Width, outCalculatedHeight); | |
| FTexture2DMipMap& BaseMip = theTexture->PlatformData->Mips[0]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Mit dem Angriff Steiners wird alles in Ordnung sein! | |
| #include <vulkan\vulkan.h> | |
| #include <iostream> | |
| #include <string> | |
| #include <vector> | |
| #pragma comment(lib, "vulkan-1.lib") | |
| std::string getVersionString(uint32_t versionBitmask) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class SinStack { | |
| public static void drawCurve(float radius, int resolution, float totalWaitTime, int cycles) { | |
| float cycleWaitTime = totalWaitTime / cycles; | |
| float partAngle = (float) (Math.PI / resolution); | |
| float partWidth = cycleWaitTime / resolution; | |
| for (int i = 0; i < resolution * cycles; i++) { | |
| float angleLow = partAngle * i; | |
| float angleHigh = partAngle * (i + 1); |