RPG Maker XP & Irrlicht
#2
First, that should raise a non method error for nil, as CREATEDEV_FUNC has never been initialized.

Second, it seems that createDevice takes 7 arguments, and you are only using six integers. The arguments that API takes are:
Code:
irr::createDevice      (video::E_DRIVER_TYPE deviceType = video::EDT_SOFTWARE,
        const core::dimension2d< u32 > &      windowSize = (core::dimension2d< u32 >(640, 480)),
        u32      bits = 16,
        bool      fullscreen = false,
        bool      stencilbuffer = false,
        bool      vsync = false,
        IEventReceiver *      receiver = 0    
    )
The first is an integer, the second is a class that seems to have two Uint32(Width and Height), and the others should work well with integers as argument type. If that's correct, it should be:
Code:
createDevice= Win32API.new('Irrlicht', 'createDevice', 'IPIIIII', 'I')
size = [800, 600].pack('LL')
device = createDevice.call(0, size, 32, 0, 0, 0, 0)

That may work, but maybe not. I haven't tested and I don't know how core::dimension2d< u32 > should be packed as it's a class.
Reply }


Messages In This Thread
RPG Maker XP & Irrlicht - by jestemPolakiem - 03-16-2010, 11:30 AM
RPG Maker XP & Irrlicht - by vgvgf - 03-16-2010, 04:47 PM
RPG Maker XP & Irrlicht - by jestemPolakiem - 03-17-2010, 01:26 PM
RPG Maker XP & Irrlicht - by jestemPolakiem - 03-20-2010, 09:58 PM
RPG Maker XP & Irrlicht - by vgvgf - 03-23-2010, 06:49 PM
RPG Maker XP & Irrlicht - by jestemPolakiem - 03-24-2010, 03:03 PM
RPG Maker XP & Irrlicht - by vgvgf - 03-24-2010, 10:46 PM
RPG Maker XP & Irrlicht - by jestemPolakiem - 03-25-2010, 02:14 PM
RPG Maker XP & Irrlicht - by vgvgf - 03-29-2010, 03:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
   in FPLE touching events after battle causes rpg maker to crash ThePrinceofMars 1 5,506 11-27-2014, 09:11 PM
Last Post: MechanicalPen
   show variables on screen rpg maker xp ThePrinceofMars 22 33,964 10-19-2014, 08:01 PM
Last Post: ThePrinceofMars
   Help with Shop Menu [RPG Maker XP] JackMonty 6 12,995 05-23-2013, 10:14 AM
Last Post: JackMonty



Users browsing this thread: 1 Guest(s)