CEGUI Renderer Update

The CEGUI NeL Renderer is now a Pure NeL Library! Please view the sample in samples/3d/cegui for more information.
Added by sfb 9 months ago

While we have not yet updated the CEGUI NeL Renderer to function with CEGUI 0.6.x we have taken some steps towards fixing the way it functions as a shared library on Windows based systems. To fix the issues with sharing singletons we have made the CEGUI NeL Renderer a Pure NeL Library. In the future you will need to load the library, retrieve the creation function and then create a new object using that handle. The sample in samples/3d/cegui is now fully functional with this new 'technique'. Here's a brief example in code:

// Load the CEGUI renderer and get a handle to the library.
NLMISC::CLibrary driverLib;
if(!driverLib.loadLibrary("nelceguirenderer", true, true , true)) {
    nlerror("Failed to load NeL CEGUI Renderer library.");
}

// Now retrieve the function for creating a renderer.
NELRENDERER_CREATE_PROC createNelRenderer = 
    reinterpret_cast<NELRENDERER_CREATE_PROC>(driverLib.getSymbolAddress(NELRENDERER_CREATE_PROC_NAME));

CEGUI::INeLRenderer *gGuiRenderer; = createNelRenderer(driver, true);

// Now you can use gGuiRender to start up the CEGUI system.

Comments