KLingo Project Documentation 1.0.0
Unreal Engine 5.6 C++ Project Documentation
로딩중...
검색중...
일치하는것 없음
WriteBoard.h
이 파일의 문서화 페이지로 가기
1// Copyright (c) 2025 Doppleddiggong. All rights reserved. Unauthorized copying, modification, or distribution of this file, via any medium is strictly prohibited. Proprietary and confidential.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "Components/Image.h"
7#include "UObject/Object.h"
8#include "WriteBoard.generated.h"
9
13UCLASS()
14class ONEPIECE_API UWriteBoard : public UObject
15{
16 GENERATED_BODY()
17
18public:
20 UWriteBoard(class UPopup_WriteBoard* parent);
21 FVector2D GetLocalMousePos(UImage* Image_Canvas, UTextureRenderTarget2D* RT_Canvas, FVector2D mousePos);
22
23 bool SaveRenderTargetToPNG(class UTextureRenderTarget2D* RenderTarget, const FString& FullFilePath);
24
25 // TODO: SaveCanvas, ClearCanvas 둘 다 인자 어캐할 지 정하기. 지금 에러 안 나도록 이렇게 한 거
26 void SaveCanvas(int32 Qid, UTextureRenderTarget2D* RT_Canvas);
27
28private:
29 UPROPERTY()
30 TObjectPtr<class UPopup_WriteBoard> parentWritePopup;
31 const FString filePath = FPaths::ProjectSavedDir() / TEXT("WriteImage/");
32};