Dirk Reiners wrote:

On Thu, 2006-05-04 at 17:11 +0000, [EMAIL PROTECTED] wrote:
>
Is there some way to get rid of glut's window decorations?

Not for GLUT.

Or any other solution?

You could probably use a WIN32 Window instead, if you're willing to bear
the pain. That would give you full Windows-style control, of which i
don't know much but i assume you can make it do anything on Windows.

The Win32Window example is pretty good, I've used that as a base for my application. You probably just need to change the window style to make it fullscreen.

Below is a snippet from my window-wrapper class, that uses the set position & size to determine which window to go fullscreen on (if desired).

/Marcus

---
    RECT r;
    r.left = m_pos[0];
    r.top = m_pos[1];
    r.right = m_pos[0] + m_size[0];
    r.bottom = m_pos[1] + m_size[1];

    if (m_fullscreen) {
        HMONITOR mon = MonitorFromRect(&r, MONITOR_DEFAULTTONEAREST);
        MONITORINFOEX mi;
        mi.cbSize = sizeof(mi);
        GetMonitorInfo(mon, &mi);
        r = mi.rcWork;
        s_log.info("Going fullscreen on monitor '%s' %s.", mi.szDevice,
                   mi.dwFlags & MONITORINFOF_PRIMARY ? "(primary)" : "");
    }

    int exstyle = m_fullscreen ? WS_EX_APPWINDOW : 0;
    int style = WS_CLIPCHILDREN | WS_CLIPSIBLINGS;
    style |= (!m_fullscreen && m_border) ? WS_OVERLAPPEDWINDOW : WS_POPUP;

    g_curwin = this;
    m_hwnd = CreateWindowEx(exstyle, g_classname, m_title.c_str(), style,
r.left, r.top, r.right - r.left, r.bottom - r.top,
                            0, 0, 0, 0);
---


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to