Hi,

 I've got a problem with current cvs version of nui. After updating
nui/ngl in my project and building my application I've noticed,
that nui window remain grey all the time and doesn't show any
contents. I also noticed, that this problem occurs only on
release builds (debug builds work and look fine).

I looked at nuitest example and it seems, that it also has the same
problem (grey window without any contents in Release builds).

In my application I use the following code to "initialize" nui
window:

mRenderer = eOpenGL;
nglString version((nglChar*)glGetString(GL_VERSION));
if (version == "1.0" || version == "1.1" )
        mRenderer = eSoftware;
nuiTopLevel::SetRenderer(mRenderer);

nuiContextInfo ContextInfo(nuiContextInfo::StandardContext3D);
nglWindowInfo Info;

nglPath ResPath = nglPath(mPlugPath.c_str());

Info.Pos         = nglWindowInfo::ePosUser;
Info.XPos   = 0;
Info.YPos   = 0;
Info.Width  = mEditorWidth;
Info.Height = mEditorHeight;

mpMainWindow = new nuiMainWindow(ContextInfo, Info, mpHiddenContext,
        ResPath);

I looked at what was recently changed in nui to see if I can
spot the problem, but unfortunately I wasn't able to figure out
the cause of this effect :-/


I would also like to point out, that with current project settings,
msvc won't build ngl:

Error        52        error C2065:
'GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS' :
undeclared
identifier        g:\Devel\nuingl\ngl\src\core\win32\nglWindow.cpp
  1944

Error        53        error C2065:
'GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT' :
undeclared
identifier        g:\Devel\nuingl\ngl\src\core\win32\nglWindow.cpp
  1944

Error        54        error C3861: 'GetModuleHandleEx': identifier not
found        g:\Devel\nuingl\ngl\src\core\win32\nglWindow.cpp        1944


defining WIN32_WINNT=0x0501 instead of WIN32_WINNT=0x0500, will fix the
problem, although according to msdn it might make the final application
Windows 2000 incompatible :-/
http://msdn2.microsoft.com/en-us/library/aa383745.aspx


cheers,
Bart


_______________________________________________
https://mail.gna.org/listinfo/ngl-devel

Reply via email to