VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-cocoa.h@ 55909

Last change on this file since 55909 was 55840, checked in by vboxsync, 10 years ago

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.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.0 KB
Line 
1/** @file
2 * VirtualBox OpenGL Cocoa Window System Helper Implementation.
3 */
4
5/*
6 * Copyright (C) 2014 Oracle Corporation
7 *
8 * This file is part of VirtualBox Open Source Edition (OSE), as
9 * available from http://www.virtualbox.org. This file is free software;
10 * you can redistribute it and/or modify it under the terms of the GNU
11 * General Public License (GPL) as published by the Free Software
12 * Foundation, in version 2 as it comes in the "COPYING" file of the
13 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
14 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
15 */
16
17#ifndef __DevVGA_SVGA3d_cocoa_h
18#define __DevVGA_SVGA3d_cocoa_h
19
20#include <iprt/types.h>
21#include <VBox/VBoxCocoa.h>
22
23RT_C_DECLS_BEGIN
24
25#ifndef ___renderspu_cocoa_helper_h
26ADD_COCOA_NATIVE_REF(NSView);
27ADD_COCOA_NATIVE_REF(NSOpenGLContext);
28#endif
29
30#ifdef IN_VMSVGA3DCOCOA
31# define VMSVGA3DCOCOA_DECL(type) DECLEXPORT(type)
32#else
33# define VMSVGA3DCOCOA_DECL(type) DECLIMPORT(type)
34#endif
35
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);
45
46RT_C_DECLS_END
47
48#endif /* !__DevVGA_SVGA3d_cocoa_h */
49
Note: See TracBrowser for help on using the repository browser.

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