VirtualBox

Ignore:
Timestamp:
Feb 23, 2009 2:06:40 PM (16 years ago)
Author:
vboxsync
Message:

renderspu_agl.c: Just made it build and link, it will not work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_agl.c

    r15532 r17022  
    1010
    1111#include <iprt/time.h>
     12#include <iprt/assert.h>
    1213
    1314#include <stdio.h>
     
    3637};
    3738
    38 #define renderspuSetWindowContext(w, c) \
     39#ifdef __LP64__ /** @todo port to 64-bit darwin. */
     40# define renderspuSetWindowContext(w, c) \
     41    AssertFailed()
     42# define renderspuGetWindowContext(w) \
     43    ( (ContextInfo *) GetWRefCon( ((w)->nativeWindow ? (w)->nativeWindow : (w)->window) ) )
     44#else
     45# define renderspuSetWindowContext(w, c) \
    3946    ( SetWRefCon( (w), (unsigned long) (c) ) )
    40 #define renderspuGetWindowContext(w) \
     47# define renderspuGetWindowContext(w) \
    4148    ( (ContextInfo *) GetWRefCon( ((w)->nativeWindow ? (w)->nativeWindow : (w)->window) ) )
     49#endif
    4250
    4351/* Debug macros */
     
    8896        switch (kind) {
    8997        case kEventWindowActivated:
     98#ifndef __LP64__ /* not available for 64-bit processes? */
    9099        case kEventWindowDrawContent:
     100#endif
    91101            break;
    92102
    93103        case kEventWindowClose:
    94104            HideWindow( window );
     105#ifdef __LP64__ /** @todo port to 64-bit darwin. */
     106#else
    95107            SetWRefCon( window, (int)NULL );
     108#endif
    96109
    97110            crWarning( "Render SPU: caught kEventWindowClose -- quitting." );
     
    100113        case kEventWindowShown:
    101114            /* build gl */
     115#ifndef __LP64__ /** @todo port to 64-bit darwin! Need to cehck if this event is generated or not (it probably isn't). */
    102116            if( window == FrontWindow() )
    103117                SetUserFocusWindow( window );
    104118            InvalWindowRect( window, &rectPort );
     119#endif
    105120            break;
    106121
     
    276291        }
    277292        AGLDrawable drawable;
     293#ifdef __LP64__ /** @todo port to 64-bit darwin. */
     294        drawable = NULL;
     295#else
    278296        drawable = (AGLDrawable) GetWindowPort(window);
     297#endif
    279298        /* New global buffer name */
    280299        wi->bufferName = gCurrentBufferName++;
     
    292311
    293312    oldDrawable = render_spu.ws.aglGetDrawable(context->context);
     313#ifdef __LP64__ /** @todo port to 64-bit darwin. */
     314    newDrawable = oldDrawable;
     315#else
    294316    newDrawable = (AGLDrawable) GetWindowPort(window);
     317#endif
    295318    /* Only switch the context if the drawable has changed */
    296319    if (oldDrawable != newDrawable)
     
    304327        CHECK_AGL_RC (result, "Render SPU: SetInteger Failed");
    305328        /* Set the new drawable */
     329#ifdef __LP64__ /** @todo port to 64-bit darwin. */
     330        result = -1;
     331#else
    306332        result = render_spu.ws.aglSetDrawable(context->context, newDrawable);
     333#endif
    307334        CHECK_AGL_RC (result, "Render SPU: SetDrawable Failed");
    308335        renderspuSetWindowContext( window, context );
     
    408435    OSStatus status = noErr;
    409436    HISize s;
     437#ifdef __LP64__ /** @todo port to 64-bit darwin. */
     438    status = -1;
     439#else
    410440    status = GetWindowResizeLimits (window->window, NULL, &s);
     441#endif
    411442    CHECK_CARBON_RC_RETURN_VOID (status, "Render SPU: GetWindowResizeLimits Failed");
    412443
     
    648679        SendWindowGroupBehind (gParentGroup, gMasterGroup);
    649680        /* and set the gParentGroup as parent for gMasterGroup. */
     681#ifdef __LP64__ /** @todo port to 64-bit darwin. */
     682#else
    650683        SetWindowGroupParent (gMasterGroup, gParentGroup);
     684#endif
    651685    }
    652686
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette