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

Syntax

int Texture::LoadFromFile(const char *filename, ResourceUsage usage=UsageImmutable, bool cpuReadAccess=false, bool cpuWriteAccess=false);
int Texture::LoadFromFile(const String &filename, ResourceUsage usage=UsageImmutable, bool cpuReadAccess=false, bool cpuWriteAccess=false); [1 lines of code]

Resizes a 3D texture. TODO: Implement.

Loads this texture from the given file. Returns 0 on success, -1 on failure.

Work in progress:

Todo: in int Texture::LoadFromFile(const char *filename, ResourceUsage usage=UsageImmutable, bool cpuReadAccess=false, bool cpuWriteAccess=false):
REMOVE FROM FINAL VERSION!

Leave a Comment

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