Changeset 32068


Ignore:
Timestamp:
Jul 9, 2008, 11:20:32 PM (16 years ago)
Author:
martinl
Message:

nvizlib: some mac-related fixes (off-screen rendering)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • grass/trunk/lib/nviz/render.c

    r32044 r32068  
    104104    rwin->displayId = XOpenDisplay((char *) display);
    105105#elif defined(OPENGL_AQUA)
    106     /* TODO */
     106    /* TODO: open mac display */
    107107#elif defined(OPENGL_WINDOWS)
    108108    /* TODO */
     
    122122                                       v, NULL, GL_FALSE);
    123123#elif defined(OPENGL_AQUA)
    124     /* TODO */
    125     rwin->displayId = aglChoosePixelFmt(GDHandle *dev, int ndev, attributeList);
     124    /* TODO: dev = NULL, ndev = 0 ? */
     125    rwin->displayId = aglChoosePixelFmt(NULL, 0, attributeList);
    126126   
    127     rwin->contextId = aglCreateContext(rwin->display, NULL);
     127    rwin->contextId = aglCreateContext(rwin->displayId, NULL);
    128128#elif defined(OPENGL_WINDOWS)
    129129    /* TODO int ChoosePixelFormat( HDC hdc, PIXELFORMATDESCRIPTOR *pfd ) */
     
    148148#elif defined(OPENGL_AQUA)
    149149    /* create win pixmap to render to (same depth as RootWindow) */
    150     rwin->pixmap = NULL; /* TODO */
     150    rwin->pixmap = NULL; /* TODO: create GWorldPtr */
    151151    /* create an off-screen AGL rendering area */
    152152    rwin->windowId = aglCreateAGLPixmap(rwin->displayId,
     
    186186        return 1;
    187187
    188     aglMakeCurrent(rwin->windowId, rwin->contextId);
     188    /* TODO: mac_win */
     189    aglMakeCurrent((AGLDrawable) mac_win, rwin->contextId);
    189190#elif defined(OPENGL_WINDOWS)
    190191    /* TODO wglMakeCurrent( HDC hdc, HGLRC hrc ) */
Note: See TracChangeset for help on using the changeset viewer.