Results 1 to 2 of 2

Thread: help Any function can getTexture from memory?

  1. #1
    Lesser Wizard
    Join Date
    Feb 2013
    Posts
    142

    Default help Any function can getTexture from memory?

    mesh = pScene->getMesh( (GetBaseAppPath() + "game/girl-0408-head.x").c_str());
    node->setMaterialTexture( 0,IrrlichtManager::GetIrrlichtManager()->GetDriver()->getTexture( (GetBaseAppPath() + "game/girl-hair.rttex").c_str() ));

    ////////////////////////want as follow

    byte* mesh_mem;
    byte* tex_mem;

    //mesh_mem and tex_mem allocated data

    mesh = pScene->getMesh( mesh_mem );
    node->setMaterialTexture( 0,IrrlichtManager::GetIrrlichtManager()->GetDriver()->getTexture( tex_mem ));

  2. #2
    Lesser Wizard
    Join Date
    Feb 2013
    Posts
    142

    Default ok i find answer

    IReadFile *f = device->getFileSystem()->createMemoryReadFile(buf, len, name, ture);
    driver->getTexture(f);



    Quote Originally Posted by feelthat View Post
    mesh = pScene->getMesh( (GetBaseAppPath() + "game/girl-0408-head.x").c_str());
    node->setMaterialTexture( 0,IrrlichtManager::GetIrrlichtManager()->GetDriver()->getTexture( (GetBaseAppPath() + "game/girl-hair.rttex").c_str() ));

    ////////////////////////want as follow

    byte* mesh_mem;
    byte* tex_mem;

    //mesh_mem and tex_mem allocated data

    mesh = pScene->getMesh( mesh_mem );
    node->setMaterialTexture( 0,IrrlichtManager::GetIrrlichtManager()->GetDriver()->getTexture( tex_mem ));

Similar Threads

  1. Is there have CRITICAL SECTION function?
    By feelthat in forum Proton SDK
    Replies: 3
    Last Post: 03-15-2013, 11:14 AM
  2. How to connect a function?
    By rtr_18 in forum Proton SDK
    Replies: 1
    Last Post: 05-05-2012, 05:04 AM
  3. Test Drive Function
    By anonymous1 in forum Tanked
    Replies: 5
    Last Post: 04-28-2012, 05:14 PM
  4. Best way to call a function every 5 secs
    By BigBMan in forum Proton SDK
    Replies: 1
    Last Post: 01-31-2011, 08:34 AM
  5. Quick screen res function request
    By Interference in forum Novashell Game Creation System
    Replies: 1
    Last Post: 06-09-2008, 07:05 AM

Bookmarks

Bookmarks

Posting Permissions

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