Back to class index
Texture[Class Summary]
textureHandle
currentActiveSampler[const]
ctor
~dtor
Deinit()
CreateNew(...) (+2 overloads)
RecreateToNewUsage(...)
ConvertToFormat(...)
Resize(...)
LoadFromFile(...) (+1 overload)
LoadFromBMPFile(...)
LoadFromDDSFile(...)
LoadFromPKMFile(...)
ReloadFromFile()
Width()[const]
Height()[const]
Depth()[const]
Format()[const]
Name()[const]
BitsPerPixel()[const]
NumMipmaps()[const]
SetNumMipmaps(...)
MipLevelWidth(mipLevel)[const]
MipLevelHeight(mipLevel)[const]
GPUSizeBytes()[const]
CPUSizeBytes()[const]
SizeBytes()[const]
BeginDraw(...)
EndDraw(subResourceIndex)
ReadPixels(subResourceIndex)
Clone(...) (+1 overload)
SaveToFile(filename)
DisableMipmaps()
MaxMipLevelCount(width,height)[static]
MipLevelLength(length,mipLevel)[static]
SizeBytes(...)[static]
CopyRegion2D(...)[static]
CopyRegion(...)[static]

Texture::ReadPixels

Syntax

Image Texture::ReadPixels(int subResourceIndex);

Fetches a copy of the surface pixel data for the given subresource index to main RAM.

The resulting image object will hold its own copy of the specified image surface level in CPU memory.

Leave a Comment

Name:
Comments:
Captcha:captcha image Type in the black symbols:
Back to class index