Code: Select all
struct SAppContext
{
IrrlichtDevice *device;
/* stuff */
};
/* stuff */
IrrlichtDevice * device = createDevice(driverType, core::dimension2d<u32>(640, 480));
/* stuff */
SAppContext context;
context.device = device;
Code: Select all
SAppContext context;
/* stuff */
context.device = createDevice(driverType, core::dimension2d<u32>(640, 480));