Changeset 55840 in vbox for trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-cocoa.h
- Timestamp:
- May 13, 2015 9:36:04 AM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 100285
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-cocoa.h
r54167 r55840 20 20 #include <iprt/types.h> 21 21 #include <VBox/VBoxCocoa.h> 22 #include <OpenGL/OpenGL.h>23 22 24 23 RT_C_DECLS_BEGIN … … 29 28 #endif 30 29 31 #ifdef IN_VMSVGA3D 32 # define VMSVGA3D _DECL(type) DECLEXPORT(type)30 #ifdef IN_VMSVGA3DCOCOA 31 # define VMSVGA3DCOCOA_DECL(type) DECLEXPORT(type) 33 32 #else 34 # define VMSVGA3D _DECL(type) DECLIMPORT(type)33 # define VMSVGA3DCOCOA_DECL(type) DECLIMPORT(type) 35 34 #endif 36 35 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);36 VMSVGA3DCOCOA_DECL(void) vmsvga3dCocoaServiceRunLoop(void); 37 VMSVGA3DCOCOA_DECL(bool) vmsvga3dCocoaCreateViewAndContext(NativeNSViewRef *ppView, NativeNSOpenGLContextRef *ppCtx, 38 NativeNSViewRef pParentView, uint32_t cx, uint32_t cy, 39 NativeNSOpenGLContextRef pSharedCtx, bool fOtherProfile); 40 VMSVGA3DCOCOA_DECL(void) vmsvga3dCocoaDestroyViewAndContext(NativeNSViewRef pView, NativeNSOpenGLContextRef pCtx); 41 VMSVGA3DCOCOA_DECL(void) vmsvga3dCocoaViewSetPosition(NativeNSViewRef pView, NativeNSViewRef pParentView, int x, int y); 42 VMSVGA3DCOCOA_DECL(void) vmsvga3dCocoaViewSetSize(NativeNSViewRef pView, int w, int h); 43 VMSVGA3DCOCOA_DECL(void) vmsvga3dCocoaViewMakeCurrentContext(NativeNSViewRef pView, NativeNSOpenGLContextRef pCtx); 44 VMSVGA3DCOCOA_DECL(void) vmsvga3dCocoaSwapBuffers(NativeNSViewRef pView, NativeNSOpenGLContextRef pCtx); 46 45 47 46 RT_C_DECLS_END
Note:
See TracChangeset
for help on using the changeset viewer.