monado/src/xrt/compositor/main/comp_client_interface.h

31 lines
581 B
C
Raw Normal View History

2019-03-18 05:52:32 +00:00
// Copyright 2019, Collabora, Ltd.
// SPDX-License-Identifier: BSL-1.0
/*!
* @file
* @brief Interface for client code to compositor.
* @author Jakob Bornecrantz <jakob@collabora.com>
* @ingroup comp
*/
#pragma once
#include "xrt/xrt_device.h"
#include "xrt/xrt_compositor.h"
#ifdef __cplusplus
extern "C" {
#endif
/*!
* Create the compositor instance using the given device. Used by the client
* code and implemented by the main compositor code.
*/
struct xrt_compositor_fd*
comp_compositor_create(struct xrt_device* xdev, bool flip_y);
#ifdef __cplusplus
}
#endif