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
|
|
|
|
|
2019-03-18 03:20:20 +00:00
|
|
|
struct time_state;
|
2019-03-18 05:52:32 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* Create the compositor instance using the given device. Used by the client
|
|
|
|
* code and implemented by the main compositor code.
|
|
|
|
*/
|
|
|
|
struct xrt_compositor_fd*
|
2019-03-18 03:20:20 +00:00
|
|
|
comp_compositor_create(struct xrt_device* xdev,
|
|
|
|
struct time_state* timekeeping,
|
|
|
|
bool flip_y);
|
2019-03-18 05:52:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|