1 | /* $Id: DevVGA-SVGA3d-cocoa.h 93115 2022-01-01 11:31:46Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VirtualBox OpenGL Cocoa Window System Helper Implementation.
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2014-2022 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 VBOX_INCLUDED_SRC_Graphics_DevVGA_SVGA3d_cocoa_h
|
---|
19 | #define VBOX_INCLUDED_SRC_Graphics_DevVGA_SVGA3d_cocoa_h
|
---|
20 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
21 | # pragma once
|
---|
22 | #endif
|
---|
23 |
|
---|
24 | #include <VBox/types.h>
|
---|
25 | #include <VBox/VBoxCocoa.h>
|
---|
26 |
|
---|
27 | RT_C_DECLS_BEGIN
|
---|
28 |
|
---|
29 | #ifndef ___renderspu_cocoa_helper_h
|
---|
30 | ADD_COCOA_NATIVE_REF(NSView);
|
---|
31 | ADD_COCOA_NATIVE_REF(NSOpenGLContext);
|
---|
32 | #endif
|
---|
33 |
|
---|
34 | #ifdef IN_VMSVGA3DCOCOA
|
---|
35 | # define VMSVGA3DCOCOA_DECL(type) DECLEXPORT(type)
|
---|
36 | #else
|
---|
37 | # define VMSVGA3DCOCOA_DECL(type) DECLIMPORT(type)
|
---|
38 | #endif
|
---|
39 |
|
---|
40 | VMSVGA3DCOCOA_DECL(void) vmsvga3dCocoaServiceRunLoop(void);
|
---|
41 | VMSVGA3DCOCOA_DECL(bool) vmsvga3dCocoaCreateViewAndContext(NativeNSViewRef *ppView, NativeNSOpenGLContextRef *ppCtx,
|
---|
42 | NativeNSViewRef pParentView, uint32_t cx, uint32_t cy,
|
---|
43 | NativeNSOpenGLContextRef pSharedCtx, bool fOtherProfile);
|
---|
44 | VMSVGA3DCOCOA_DECL(void) vmsvga3dCocoaDestroyViewAndContext(NativeNSViewRef pView, NativeNSOpenGLContextRef pCtx);
|
---|
45 | VMSVGA3DCOCOA_DECL(void) vmsvga3dCocoaViewInfo(PCDBGFINFOHLP pHlp, NativeNSViewRef pView);
|
---|
46 | VMSVGA3DCOCOA_DECL(void) vmsvga3dCocoaViewSetPosition(NativeNSViewRef pView, NativeNSViewRef pParentView, int x, int y);
|
---|
47 | VMSVGA3DCOCOA_DECL(void) vmsvga3dCocoaViewSetSize(NativeNSViewRef pView, int w, int h);
|
---|
48 | VMSVGA3DCOCOA_DECL(void) vmsvga3dCocoaViewUpdateViewport(NativeNSViewRef pView);
|
---|
49 | VMSVGA3DCOCOA_DECL(void) vmsvga3dCocoaViewMakeCurrentContext(NativeNSViewRef pView, NativeNSOpenGLContextRef pCtx);
|
---|
50 | VMSVGA3DCOCOA_DECL(void) vmsvga3dCocoaSwapBuffers(NativeNSViewRef pView, NativeNSOpenGLContextRef pCtx);
|
---|
51 |
|
---|
52 | int ExplicitlyLoadVBoxSVGA3DObjC(bool fResolveAllImports, PRTERRINFO pErrInfo);
|
---|
53 |
|
---|
54 | RT_C_DECLS_END
|
---|
55 |
|
---|
56 | #endif /* !VBOX_INCLUDED_SRC_Graphics_DevVGA_SVGA3d_cocoa_h */
|
---|
57 |
|
---|