1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
/*
* gxr
* Copyright 2018 Collabora Ltd.
* Author: Christoph Haag <christoph.haag@collabora.com>
* Author: Lubosz Sarnecki <lubosz.sarnecki@collabora.com>
* SPDX-License-Identifier: MIT
*/
#ifndef SCENE_CUBE_H_
#define SCENE_CUBE_H_
#include <glib-object.h>
#include <gulkan.h>
#include "scene-object.h"
G_BEGIN_DECLS
#define SCENE_TYPE_CUBE scene_cube_get_type()
G_DECLARE_FINAL_TYPE (SceneCube, scene_cube,
SCENE, CUBE, SceneObject)
SceneCube *
scene_cube_new (GulkanClient *gulkan,
GulkanRenderer *renderer,
GulkanRenderPass *render_pass,
VkSampleCountFlagBits sample_count);
void
scene_cube_render (SceneCube *self,
GxrEye eye,
VkCommandBuffer cmd_buffer,
graphene_matrix_t *view,
graphene_matrix_t *projection);
void
scene_cube_override_position (SceneCube *self,
graphene_point3d_t *position);
void
scene_cube_resume_default_position (SceneCube *self);
G_END_DECLS
#endif /* SCENE_CUBE_H_ */
|