VirtualBox

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

Last change on this file since 55394 was 54167, checked in by vboxsync, 10 years ago

DevVGA-SVGA3d-cocoa.m/h: Build fix and dual profile support. (doesn't work better than the original)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 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#include <OpenGL/OpenGL.h>
23
24RT_C_DECLS_BEGIN
25
26#ifndef ___renderspu_cocoa_helper_h
27ADD_COCOA_NATIVE_REF(NSView);
28ADD_COCOA_NATIVE_REF(NSOpenGLContext);
29#endif
30
31#ifdef IN_VMSVGA3D
32# define VMSVGA3D_DECL(type) DECLEXPORT(type)
33#else
34# define VMSVGA3D_DECL(type) DECLIMPORT(type)
35#endif
36
37VMSVGA3D_DECL(void) vmsvga3dCocoaCreateContext(NativeNSOpenGLContextRef *ppCtx, NativeNSOpenGLContextRef pSharedCtx,
38 bool fOtherProfile);
39VMSVGA3D_DECL(void) vmsvga3dCocoaDestroyContext(NativeNSOpenGLContextRef pCtx);
40VMSVGA3D_DECL(void) vmsvga3dCocoaCreateView(NativeNSViewRef *ppView, NativeNSViewRef pParentView);
41VMSVGA3D_DECL(void) vmsvga3dCocoaDestroyView(NativeNSViewRef pView);
42VMSVGA3D_DECL(void) vmsvga3dCocoaViewSetPosition(NativeNSViewRef pView, NativeNSViewRef pParentView, int x, int y);
43VMSVGA3D_DECL(void) vmsvga3dCocoaViewSetSize(NativeNSViewRef pView, int w, int h);
44VMSVGA3D_DECL(void) vmsvga3dCocoaViewMakeCurrentContext(NativeNSViewRef pView, NativeNSOpenGLContextRef pCtx);
45VMSVGA3D_DECL(void) vmsvga3dCocoaSwapBuffers(NativeNSViewRef pView, NativeNSOpenGLContextRef pCtx);
46
47RT_C_DECLS_END
48
49#endif /* !__DevVGA_SVGA3d_cocoa_h */
50
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