Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //set size of buffer to match the viewport's resolution
- FViewport* viewport = GetWorld()->GetGameViewport()->Viewport;
- Width = viewport->GetRenderTargetTextureSizeXY().X;
- Height = viewport->GetRenderTargetTextureSizeXY().Y;
- OUT_INFO(TEXT("Set Width,Height to %d, %d"), Width, Height);
- ImageColor.AddUninitialized(Width * Height);
- ImageDepth.AddUninitialized(Width * Height);
- ImageObject.AddUninitialized(Width * Height);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement