Discussion Board
-
OpenGL ES
2005-06-02, 17:49
#1
Registered User
Hi!I've a problem with texture! I try to add a texture in my project but i have this error:
error C2664: 'NewL' : cannot convert parameter 3 from 'class CSimpleCubeAppUi' to 'class MImageHandlerCallback &'
SimpleCube is the name of my project! here is the code:
void CSimpleCubeAppUi::LoadTexturesL()
{
_LIT(KTex1Name, "prova.jpg" );
iTex1FullName.Append( TEXTUREPATH );
iTex1FullName.Append( KTex1Name );
// Create bitmaps for textures
iTex1 = new(ELeave) CFbsBitmap();
iTex1->Create( TSize(256,256), EColor16M );
// Create a image converter library utility for loading the NASA texture
iFs.Connect();
iBmapUtil = CImageHandler::NewL( iTex1, iFs, *this );
// Set the status and start loading
iTexID = TEX;
iBmapUtil->LoadFileL( iTex1FullName, 0 );
}
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules