Hi all guys,
i have a simply question:
How can i create/load a texture with a format specified by me/user??
I want to load some texture in my world, and because i have created a quality settings specific for this set of texture, i want my program load them with user specified format, for example:
vector< Texture * > vTextures;
vector< string > vTexList = GetTexList();
for ( TexPath : vTexList ) {
int Q = TexQuality();
int iTexFormat = 0;
if ( Q == 0 ) iTexFormat = RGBADXT5n; // max compression, and lower qaulity ( really save mem )
if ( Q == 4 ) iTexFormat = ?? RGBA ??; // no compession, max quality, ( big mem usage )
Texture *pTexture = ?? Which load procedure, or creation from PNg, in my case, i have to use?
vTexture.push_back( pTexture );
}