VirtualBox

Ignore:
Timestamp:
May 13, 2015 9:36:04 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
100285
Message:

vmsvga3d/mac: Fixed problem with missing back/front buffers. Stop use renderspu_cocoa_helper.m and use DevVGA-SVGA3d-cocoa.m, only now its even more stripped down that earlier.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-cocoa.h

    r54167 r55840  
    2020#include <iprt/types.h>
    2121#include <VBox/VBoxCocoa.h>
    22 #include <OpenGL/OpenGL.h>
    2322
    2423RT_C_DECLS_BEGIN
     
    2928#endif
    3029
    31 #ifdef IN_VMSVGA3D
    32 # define VMSVGA3D_DECL(type)  DECLEXPORT(type)
     30#ifdef IN_VMSVGA3DCOCOA
     31# define VMSVGA3DCOCOA_DECL(type)  DECLEXPORT(type)
    3332#else
    34 # define VMSVGA3D_DECL(type)  DECLIMPORT(type)
     33# define VMSVGA3DCOCOA_DECL(type)  DECLIMPORT(type)
    3534#endif
    3635
    37 VMSVGA3D_DECL(void) vmsvga3dCocoaCreateContext(NativeNSOpenGLContextRef *ppCtx, NativeNSOpenGLContextRef pSharedCtx,
    38                                                bool fOtherProfile);
    39 VMSVGA3D_DECL(void) vmsvga3dCocoaDestroyContext(NativeNSOpenGLContextRef pCtx);
    40 VMSVGA3D_DECL(void) vmsvga3dCocoaCreateView(NativeNSViewRef *ppView, NativeNSViewRef pParentView);
    41 VMSVGA3D_DECL(void) vmsvga3dCocoaDestroyView(NativeNSViewRef pView);
    42 VMSVGA3D_DECL(void) vmsvga3dCocoaViewSetPosition(NativeNSViewRef pView, NativeNSViewRef pParentView, int x, int y);
    43 VMSVGA3D_DECL(void) vmsvga3dCocoaViewSetSize(NativeNSViewRef pView, int w, int h);
    44 VMSVGA3D_DECL(void) vmsvga3dCocoaViewMakeCurrentContext(NativeNSViewRef pView, NativeNSOpenGLContextRef pCtx);
    45 VMSVGA3D_DECL(void) vmsvga3dCocoaSwapBuffers(NativeNSViewRef pView, NativeNSOpenGLContextRef pCtx);
     36VMSVGA3DCOCOA_DECL(void) vmsvga3dCocoaServiceRunLoop(void);
     37VMSVGA3DCOCOA_DECL(bool) vmsvga3dCocoaCreateViewAndContext(NativeNSViewRef *ppView, NativeNSOpenGLContextRef *ppCtx,
     38                                                           NativeNSViewRef pParentView, uint32_t cx, uint32_t cy,
     39                                                           NativeNSOpenGLContextRef pSharedCtx, bool fOtherProfile);
     40VMSVGA3DCOCOA_DECL(void) vmsvga3dCocoaDestroyViewAndContext(NativeNSViewRef pView, NativeNSOpenGLContextRef pCtx);
     41VMSVGA3DCOCOA_DECL(void) vmsvga3dCocoaViewSetPosition(NativeNSViewRef pView, NativeNSViewRef pParentView, int x, int y);
     42VMSVGA3DCOCOA_DECL(void) vmsvga3dCocoaViewSetSize(NativeNSViewRef pView, int w, int h);
     43VMSVGA3DCOCOA_DECL(void) vmsvga3dCocoaViewMakeCurrentContext(NativeNSViewRef pView, NativeNSOpenGLContextRef pCtx);
     44VMSVGA3DCOCOA_DECL(void) vmsvga3dCocoaSwapBuffers(NativeNSViewRef pView, NativeNSOpenGLContextRef pCtx);
    4645
    4746RT_C_DECLS_END
Note: See TracChangeset for help on using the changeset viewer.

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