renderspu_cocoa_helper.h revision ee357d0503e525172eab0eeb8f5befc2993c7ea5
/* $Id$ */
/** @file
* VirtualBox OpenGL Cocoa Window System Helper definition
*/
/*
* Copyright (C) 2009-2012 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#ifndef ___renderspu_cocoa_helper_h
#define ___renderspu_cocoa_helper_h
#include <VBox/VBoxCocoa.h>
#include <cr_vreg.h>
#include <cr_compositor.h>
struct WindowInfo;
/* OpenGL context management */
void cocoaGLCtxCreate(NativeNSOpenGLContextRef *ppCtx, GLbitfield fVisParams, NativeNSOpenGLContextRef pSharedCtx);
/* View management */
void cocoaViewCreate(NativeNSViewRef *ppView, struct WindowInfo *pWinInfo, NativeNSViewRef pParentView, GLbitfield fVisParams);
void cocoaViewPresentComposition(NativeNSViewRef pView, const struct VBOXVR_SCR_COMPOSITOR_ENTRY *pChangedEntry);
#endif /* !___renderspu_cocoa_helper_h */