1 | /* $Id: DevVGA-SVGA3d-cocoa.h 69500 2017-10-28 15:14:05Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VirtualBox OpenGL Cocoa Window System Helper Implementation.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2014-2017 Oracle Corporation
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | */
|
---|
17 |
|
---|
18 | #ifndef __DevVGA_SVGA3d_cocoa_h
|
---|
19 | #define __DevVGA_SVGA3d_cocoa_h
|
---|
20 |
|
---|
21 | #include <VBox/types.h>
|
---|
22 | #include <VBox/VBoxCocoa.h>
|
---|
23 |
|
---|
24 | RT_C_DECLS_BEGIN
|
---|
25 |
|
---|
26 | #ifndef ___renderspu_cocoa_helper_h
|
---|
27 | ADD_COCOA_NATIVE_REF(NSView);
|
---|
28 | ADD_COCOA_NATIVE_REF(NSOpenGLContext);
|
---|
29 | #endif
|
---|
30 |
|
---|
31 | #ifdef IN_VMSVGA3DCOCOA
|
---|
32 | # define VMSVGA3DCOCOA_DECL(type) DECLEXPORT(type)
|
---|
33 | #else
|
---|
34 | # define VMSVGA3DCOCOA_DECL(type) DECLIMPORT(type)
|
---|
35 | #endif
|
---|
36 |
|
---|
37 | VMSVGA3DCOCOA_DECL(void) vmsvga3dCocoaServiceRunLoop(void);
|
---|
38 | VMSVGA3DCOCOA_DECL(bool) vmsvga3dCocoaCreateViewAndContext(NativeNSViewRef *ppView, NativeNSOpenGLContextRef *ppCtx,
|
---|
39 | NativeNSViewRef pParentView, uint32_t cx, uint32_t cy,
|
---|
40 | NativeNSOpenGLContextRef pSharedCtx, bool fOtherProfile);
|
---|
41 | VMSVGA3DCOCOA_DECL(void) vmsvga3dCocoaDestroyViewAndContext(NativeNSViewRef pView, NativeNSOpenGLContextRef pCtx);
|
---|
42 | VMSVGA3DCOCOA_DECL(void) vmsvga3dCocoaViewInfo(PCDBGFINFOHLP pHlp, NativeNSViewRef pView);
|
---|
43 | VMSVGA3DCOCOA_DECL(void) vmsvga3dCocoaViewSetPosition(NativeNSViewRef pView, NativeNSViewRef pParentView, int x, int y);
|
---|
44 | VMSVGA3DCOCOA_DECL(void) vmsvga3dCocoaViewSetSize(NativeNSViewRef pView, int w, int h);
|
---|
45 | VMSVGA3DCOCOA_DECL(void) vmsvga3dCocoaViewUpdateViewport(NativeNSViewRef pView);
|
---|
46 | VMSVGA3DCOCOA_DECL(void) vmsvga3dCocoaViewMakeCurrentContext(NativeNSViewRef pView, NativeNSOpenGLContextRef pCtx);
|
---|
47 | VMSVGA3DCOCOA_DECL(void) vmsvga3dCocoaSwapBuffers(NativeNSViewRef pView, NativeNSOpenGLContextRef pCtx);
|
---|
48 |
|
---|
49 | int ExplicitlyLoadVBoxSVGA3DObjC(bool fResolveAllImports, PRTERRINFO pErrInfo);
|
---|
50 |
|
---|
51 | RT_C_DECLS_END
|
---|
52 |
|
---|
53 | #endif /* !__DevVGA_SVGA3d_cocoa_h */
|
---|
54 |
|
---|