Changeset 53599 in vbox for trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-cocoa.h
- Timestamp:
- Dec 22, 2014 11:50:11 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-cocoa.h
r53206 r53599 24 24 RT_C_DECLS_BEGIN 25 25 26 #ifndef ___renderspu_cocoa_helper_h 26 27 ADD_COCOA_NATIVE_REF(NSView); 27 28 ADD_COCOA_NATIVE_REF(NSOpenGLContext); 29 #endif 28 30 29 __attribute__ ((visibility("default"))) void vmsvga3dCocoaCreateContext(NativeNSOpenGLContextRef *ppCtx, NativeNSOpenGLContextRef pShareCtx); 30 __attribute__ ((visibility("default"))) void vmsvga3dCocoaDestroyContext(NativeNSOpenGLContextRef pCtrx); 31 __attribute__ ((visibility("default"))) void vmsvga3dCocoaCreateView(NativeNSViewRef *ppView, NativeNSViewRef pParentView); 32 __attribute__ ((visibility("default"))) void vmsvga3dCocoaDestroyView(NativeNSViewRef pView); 33 __attribute__ ((visibility("default"))) void vmsvga3dCocoaViewSetPosition(NativeNSViewRef pView, NativeNSViewRef pParentView, int x, int y); 34 __attribute__ ((visibility("default"))) void vmsvga3dCocoaViewSetSize(NativeNSViewRef pView, int w, int h); 35 __attribute__ ((visibility("default"))) void vmsvga3dCocoaViewMakeCurrentContext(NativeNSViewRef pView, NativeNSOpenGLContextRef pCtx); 36 __attribute__ ((visibility("default"))) void vmsvga3dCocoaSwapBuffers(NativeNSOpenGLContextRef pCtx); 31 #ifdef IN_VMSVGA3D 32 # define VMSVGA3D_DECL(type) DECLEXPORT(type) 33 #else 34 # define VMSVGA3D_DECL(type) DECLIMPORT(type) 35 #endif 36 37 VMSVGA3D_DECL(void) vmsvga3dCocoaCreateContext(NativeNSOpenGLContextRef *ppCtx, NativeNSOpenGLContextRef pSharedCtx); 38 VMSVGA3D_DECL(void) vmsvga3dCocoaDestroyContext(NativeNSOpenGLContextRef pCtx); 39 VMSVGA3D_DECL(void) vmsvga3dCocoaCreateView(NativeNSViewRef *ppView, NativeNSViewRef pParentView); 40 VMSVGA3D_DECL(void) vmsvga3dCocoaDestroyView(NativeNSViewRef pView); 41 VMSVGA3D_DECL(void) vmsvga3dCocoaViewSetPosition(NativeNSViewRef pView, NativeNSViewRef pParentView, int x, int y); 42 VMSVGA3D_DECL(void) vmsvga3dCocoaViewSetSize(NativeNSViewRef pView, int w, int h); 43 VMSVGA3D_DECL(void) vmsvga3dCocoaViewMakeCurrentContext(NativeNSViewRef pView, NativeNSOpenGLContextRef pCtx); 44 VMSVGA3D_DECL(void) vmsvga3dCocoaSwapBuffers(NativeNSViewRef pView, NativeNSOpenGLContextRef pCtx); 37 45 38 46 RT_C_DECLS_END 39 47 40 48 #endif /* !__DevVGA_SVGA3d_cocoa_h */ 49
Note:
See TracChangeset
for help on using the changeset viewer.