Covellite++
Version: 2.3.2 Revision: 2584 Platform: x64 Build: 19:03 05.09.2026
Кроссплатформенный фреймворк для разработки приложений на С++
Toggle main menu visibility
Загрузка...
Поиск...
Не найдено
Simple3DObject.hpp
1
2
#pragma once
3
#include <Covellite/Covellite.hpp>
4
#include "Common.hpp"
5
6
namespace
events
7
{
8
9
class
Simple3DObject_t
10
{
11
public
:
12
enum
Id
13
{
14
Start = 0,
15
LightsChanged,
16
};
17
};
18
19
namespace
{ Simple3DObject_t Simple3DObject; }
20
21
}
// namespace events
22
23
namespace
basement
24
{
25
26
class
Lights final
27
{
28
public
:
29
enum
Type
30
{
31
Ambient = 0,
32
Directional,
33
Red,
34
Green,
35
Blue,
36
PBR,
37
};
38
};
39
55
class
Simple3DObject final :
56
public
Common
57
{
59
using
Vertex_t
=
::covellite::api::Vertex
;
61
62
public
:
63
void
Notify
(
int
, const ::boost::any &)
override
;
64
65
private
:
66
Updater_t GetUpdater(
void
);
67
68
private
:
69
ObjectId_t
BuildCamera
(
void
);
70
ObjectId_t
BuildShader
(
int
,
bool
);
71
ObjectId_t
BuildLights
(
int
);
72
void
BuildSimpleCubes(
int
,
float
);
73
void
BuildInstanceCubes(
int
,
int
,
float
);
74
void
BuildCubeData(
int
);
75
ObjectId_t
BuildSimpleCubeObject
(
float
,
float
,
float
);
76
77
private
:
78
Component_t::ComponentPtr_t m_pCubeRotation;
79
ObjectId_t m_CameraId;
80
ObjectId_t m_ShaderId;
81
ObjectId_t m_LightsId;
82
::std::vector<Vertex_t> m_VertexData;
83
::std::vector<int> m_IndexData;
84
::std::vector<ObjectId_t> m_Cubes;
85
::std::vector<float> m_InstanceData;
86
87
public
:
88
Simple3DObject(WindowExpanse_t &,
const
int
,
const
int
);
89
~Simple3DObject(
void
);
90
};
91
92
}
// namespace basement
basement
Определения
Common.hpp:10
covellite::api::Vertex
Класс входит в проект Covellite.Api Класс формата вертексного буфера.
Определения
Vertex.hpp:34
basement::Simple3DObject::Notify
void Notify(int, const ::boost::any &) override
[Vertex format]
Определения
Simple3DObject.cpp:103
basement::Simple3DObject::BuildShader
ObjectId_t BuildShader(int, bool)
Определения
Simple3DObject.cpp:197
basement::Simple3DObject::BuildSimpleCubeObject
ObjectId_t BuildSimpleCubeObject(float, float, float)
Определения
Simple3DObject.cpp:554
basement::Simple3DObject::Vertex_t
::covellite::api::Vertex Vertex_t
[Vertex format]
Определения
Simple3DObject.hpp:59
basement::Simple3DObject::BuildLights
ObjectId_t BuildLights(int)
Определения
Simple3DObject.cpp:292
basement::Simple3DObject::BuildCamera
ObjectId_t BuildCamera(void)
Определения
Simple3DObject.cpp:135
Solution
Solution
Example
Example
Basements
Simple3DObject.hpp
Документация по Covellite++. Последние изменения:
. Создано системой
1.18.0