Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FTextureRenderTargetCubeResource
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool ReadPixels
(
TArray< FColor >& OutImageData, |
Copy the texels of a single face of the cube into an array. | TextureResource.h | |
bool ReadPixels
(
TArray< FFloat16Color >& OutImageData, |
Copy the texels of a single face of the cube into an array. | TextureResource.h |
ReadPixels(TArray< FColor > &, FReadSurfaceDataFlags, FIntRect)
Description
Copy the texels of a single face of the cube into an array.
Copy the texels of a single face of a cube texture into an array.
| Name | ReadPixels |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/TextureResource.h |
| Include Path | #include "TextureResource.h" |
| Source | /Engine/Source/Runtime/Engine/Private/TextureRenderTargetCube.cpp |
virtual bool ReadPixels
(
TArray < FColor > & OutImageData,
FReadSurfaceDataFlags InFlags,
FIntRect InRect
)
True if the read succeeded.
Parameters
| Name | Remarks |
|---|---|
| OutImageData | float16 values will be stored in this array. |
| InFlags | read flags. ensure cubeface member has been set. |
| InRect | Rectangle of texels to copy. |
| OutImageData | RGBA8 values will be stored in this array. |
| InFlags | read flags. ensure cubeface member has been set. |
| InRect | Rectangle of texels to copy. Empty InRect (0,0,0,0) defaults to the whole surface size. |
ReadPixels(TArray< FFloat16Color > &, FReadSurfaceDataFlags, FIntRect)
Description
Copy the texels of a single face of the cube into an array.
Copy the texels of a single face of a cube texture into an array.
| Name | ReadPixels |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/TextureResource.h |
| Include Path | #include "TextureResource.h" |
| Source | /Engine/Source/Runtime/Engine/Private/TextureRenderTargetCube.cpp |
bool ReadPixels
(
TArray < FFloat16Color > & OutImageData,
FReadSurfaceDataFlags InFlags,
FIntRect InRect
)
True if the read succeeded.
Parameters
| Name | Remarks |
|---|---|
| OutImageData | float16 values will be stored in this array. |
| InFlags | read flags. ensure cubeface member has been set. |
| InRect | Rectangle of texels to copy. |
| OutImageData | float16 values will be stored in this array. |
| InFlags | read flags. ensure cubeface member has been set. |
| InRect | Rectangle of texels to copy. Empty InRect (0,0,0,0) defaults to the whole surface size. |