User Tag List

Results 1 to 5 of 5

Thread: MMF2SDK and Irrlicht Engine GUI

  1. #1
    Clicker Fusion 2.5

    Join Date
    Jun 2006
    Location
    Stockholm, Sweden
    Posts
    1,529
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    MMF2SDK and Irrlicht Engine GUI

    Hi Everyone!
    I've got a quite complex problem (afaik):
    I'm trying to create an extension that takes use of GUI of the Irrlicht Engine.
    I've got the child window, and render working so far, but i've got a pretty wierd problem:

    Render and everything works good, no problem, but the GUI buttons does not seems to be pressable, only if i rappidly click on the button.
    In the code i have:
    HandleRunObject() :
    Code:
    if(rdPtr->device->run())
    	return REFLAG_DISPLAY;
    else
    	return 0;
    .. and in DisplayRunObject(), which gets called if i return REFLAG_DISPLAY in HandleRunObject() :

    Code:
    		rdPtr->driver->beginScene(true,true,SColor(0,128,0,0));
    		rdPtr->gui->drawAll();
    		rdPtr->driver->endScene(reinterpret_cast<irr::s32>(rdPtr->irrWind));

    --
    The wierdest thing is, if i set a while statement instead of an if statement, everything works fine, except from that it will end with an infinite loop.
    --

    Some more info:
    The irrlicht device is pasted into a Win32 Button Window, if you want to see the code for setup that, just tell me.

    -Thanks!

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: MMF2SDK and Irrlicht Engine GUI

    if(rdPtr->device->run())
    rdPtr->driver->beginScene(true,true,SColor(0,128,0,0));
    rdPtr->gui->drawAll();
    rdPtr->driver->endScene(reinterpret_cast<irr::s32>(rdPtr->irrWind));
    Err, are you sure you don't need braces around that? :crazy:

  3. #3
    Clicker Fusion 2.5

    Join Date
    Jun 2006
    Location
    Stockholm, Sweden
    Posts
    1,529
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MMF2SDK and Irrlicht Engine GUI

    Oh, wrong coded, sry about that.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: MMF2SDK and Irrlicht Engine GUI

    Should I move this then?

    EDIT: You mean that didn't fix it?

  5. #5
    Clicker Fusion 2.5

    Join Date
    Jun 2006
    Location
    Stockholm, Sweden
    Posts
    1,529
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MMF2SDK and Irrlicht Engine GUI

    No, i meant, that the code i posted was wrong.
    The problem is not solved.

Similar Threads

  1. Irrlicht?
    By cel in forum Extension Development
    Replies: 2
    Last Post: 5th August 2009, 01:19 PM
  2. irrlicht
    By jngl in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 19th September 2007, 01:22 PM
  3. MMF2SDK compile errors with visual studio 8
    By JSJ in forum Extension Development
    Replies: 1
    Last Post: 1st September 2006, 02:34 AM
  4. Irrlicht?
    By Cocodrilo in forum Multimedia Fusion 2 - Technical Support
    Replies: 29
    Last Post: 1st July 2006, 07:02 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
  •