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::BeginDraw

Syntax

Image Texture::BeginDraw(int subResourceIndex, LockType lockType);

Begins a CPU-side access operation on the given mip level of this texture.

This function locks the texture for CPU-side access. When you are finished with accessing the pixel data, call EndDraw().

Work in progress:

Todo: in Image Texture::BeginDraw(int subResourceIndex, LockType lockType):
Implement support for GL texture locking!
Todo: in Image Texture::BeginDraw(int subResourceIndex, LockType lockType):
Remove for speed.

Leave a Comment

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