-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathentity.h
39 lines (34 loc) · 1.26 KB
/
entity.h
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
// -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
// Copyright(c) Leonardo Romor <[email protected]>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation version 2.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://gnu.org/licenses/gpl-2.0.txt>
#ifndef __ENTITY_H_
#define __ENTITY_H_
#include <vulkan/vulkan.hpp>
#include "vulkan-core.h"
namespace space {
class Entity {
public:
Entity() = default;
virtual ~Entity() {}
virtual void Register(
space::core::VkAppContext *context,
vk::UniquePipelineLayout *pipeline_layout,
vk::UniqueRenderPass *render_pass,
vk::SampleCountFlagBits nsamples,
vk::UniquePipelineCache *pipeline_cache) = 0;
// Draw in the command buffer
virtual void Draw(const vk::UniqueCommandBuffer *command_buffer) = 0;
};
}
#endif // __ENTITY_H_