ChatPlexSDK-BS 1.0.1-v6.2.0
C++ ChatPlex BeatSaber SDK
Loading...
Searching...
No Matches
Texture2DU.hpp
1#pragma once
2
3#include "../Utils/Il2cpp.hpp"
4#include "../Utils/MonoPtr.hpp"
5
6#include <UnityEngine/Texture2D.hpp>
7
8namespace CP_SDK::Unity {
9
10 namespace _u
11 {
12 using namespace UnityEngine;
13 }
14 namespace _v
15 {
16 using namespace CP_SDK::Utils;
17 }
18
21 {
22 CP_SDK_NO_DEF_CTORS(Texture2DU);
23
24 public:
27 static _u::Texture2D* CreateFromRaw(::Array<uint8_t>* p_Bytes);
31 static void CreateFromRawThreaded(_v::MonoPtr<::Array<uint8_t>> p_Bytes, _v::Action<_u::Texture2D*> p_Callback);
32
33 };
34
35}
Texture2D helper.
static _u::Texture2D * CreateFromRaw(::Array< uint8_t > *p_Bytes)
Load texture from byte array.
static void CreateFromRawThreaded(_v::MonoPtr<::Array< uint8_t > > p_Bytes, _v::Action< _u::Texture2D * > p_Callback)
Load texture from byte array.
Tools and extensions to interact with Unity on different layer & threads, load fonts/sprites/textures...
Various platform utils like Delegate/Action/Function/Event system.
Definition Delegate.hpp:8