Results 1 to 4 of 4

Thread: Texture

  1. #1
    Member
    Join Date
    May 2005
    Location
    Italy
    Posts
    36

    Texture

    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!
    Thanks

  2. #2

    Re: Texture

    You should give more information.

  3. #3
    Member
    Join Date
    May 2005
    Location
    Italy
    Posts
    36

    Re: Texture

    Thanks for your interest..this is the code from
    the class where there is the error:

    void CSimpleCubeAppUi::LoadTexturesL()
    {
    // Construct the full path names for the textures
    _LIT(KTex1Name, "prova.jpg" );
    iTex1FullName.Append( TEXTUREPATH );
    iTex1FullName.Append( KTex1Name );

    // Create bitmaps for textures
    iTex1 = new(ELeave) CFbsBitmap();
    iTex1->Create( TSize(256,256), EColor16M );

    iFs.Connect();
    iBmapUtil = CImageHandler::NewL( iTex1, iFs, *this );

    // Set the status and start loading
    iTexID = TEX;

    iBmapUtil->LoadFileL( iTex1FullName, 0 );

    }

    The error is in the 3th parameter of NewL..I copy the code from an example, but in my project don't run!
    Thanks!

  4. #4
    Member
    Join Date
    May 2005
    Location
    Italy
    Posts
    36

    Re: Texture

    Some help!?? please....

Similar Threads

  1. Texture Objects and texture management
    By alh in forum OpenGL ES general technical discussions
    Replies: 4
    Last Post: 02-13-2005, 02:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •