Skip to content

Commit 732139f

Browse files
committed
Documentation update
1 parent 3f48f02 commit 732139f

File tree

7 files changed

+62
-34
lines changed

7 files changed

+62
-34
lines changed

README.md

+19-6
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,37 @@
11
## Thunder Engine
2-
Thunder Engine is free for all purposes an open-source multi-functional lightweight game engine for creating 2D and 3D games. It provides a wide range of frameworks and tools. So developers can focus on the creation, and the Thunder Engine will do the routine.
2+
3+
Thunder Engine is free for all purposes an open-source multi-functional lightweight game engine for creating 2D and 3D games.
4+
It provides a basic framework and extensible tools.
5+
So developers can focus on the creation, and the Thunder Engine will do the routine.
36

47
#### Build Status
8+
59
![Build Status](https://github.com/thunder-engine/thunder/actions/workflows/main.yml/badge.svg)
10+
611
#### Code Quality Status
12+
713
[![Coverity Status](https://img.shields.io/coverity/scan/15068.svg)](https://scan.coverity.com/projects/eprikazchikov-thunder)
814
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/8874a5f2ddb84eb1bbaebe00f5562c23)](https://www.codacy.com/gh/thunder-engine/thunder/dashboard?utm_source=github.com&utm_medium=referral&utm_content=thunder-engine/thunder&utm_campaign=Badge_Grade)
915
[![Translation Status](https://hosted.weblate.org/widgets/thunder-engine/-/editor-translation/svg-badge.svg)](https://hosted.weblate.org/engage/thunder-engine/)
1016

1117
### About
1218

13-
The main ideology of project is to create the modular engine to give developers an ability to exclude modules which they are not using in their project to keep their projects lightweight. API of Thunder Engine is also allowing to create own modules to use them in your games.
19+
The main ideology of project is to create the modular engine.
20+
It will give developers an ability to exclude modules which they are not using in their project to keep their projects lightweight.
21+
API of Thunder Engine is also allowing to create own modules to use them in your games or in game editor.
1422

1523
![Screenshot of Thunder Engine](https://raw.githubusercontent.com/thunder-engine/thunder/master/doc/media/ScreenShot01.png)
1624

1725
[![Discord](https://img.shields.io/discord/466924817359175681.svg?logo=discord)](https://discord.gg/k8qsJxnw4Q)
1826
[![Gitter chat](https://badges.gitter.im/Thunder-Engine/gitter.png)](https://gitter.im/Thunder-Engine)
1927

28+
### Getting the Engine
29+
30+
To download the release version use the [Releases page](https://github.com/thunder-engine/thunder/releases).
31+
For other options please follow a [build instruction](https://doc.thunderengine.org/en/latest/basics/source.html).
32+
2033
#### Features
34+
2135
- Cross-platform (Windows, Linux, macOS, Android, iOS, tvOS)
2236
- Rendering System Based on Physical Principles
2337
- Scripts supported by AngelScipt engine
@@ -26,10 +40,9 @@ The main ideology of project is to create the modular engine to give developers
2640
Please find a complete [list of features](https://doc.thunderengine.org/en/latest/basics/features.html).
2741

2842
#### Have a question or an idea?
29-
I'm always open to new ideas and you can always ask a question or you can [create a ticket](https://github.com/thunder-engine/thunder/issues/new/choose)
43+
44+
I'm always open to new ideas and you can always ask a question or you can [create a ticket](https://github.com/thunder-engine/thunder/issues/new/choose).
3045

3146
#### Contributing
32-
Would like to help to project? Please read [this](CONTRIBUTING.md).
3347

34-
### Getting the Engine
35-
Please follow a [build instruction](https://doc.thunderengine.org/en/latest/basics/source.html)
48+
Would like to help to project? Please read [this](CONTRIBUTING.md).

engine/src/components/actor.cpp

+13-2
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,13 @@ class ActorPrivate : public Resource::IObserver {
205205
The Transform component must persist constantly and you shoudn't remove it.
206206
*/
207207

208+
/*!
209+
\enum Actor::HideFlags
210+
211+
\value ENABLE \c This Actor can be visible on the screen and can be updated in the game cycle.
212+
\value SELECTABLE \c This Actor can be selected in the Editor.
213+
*/
214+
208215
Actor::Actor() :
209216
p_ptr(new ActorPrivate(this)) {
210217

@@ -237,13 +244,17 @@ void Actor::setEnabled(const bool enabled) {
237244

238245
setHierarchyEnabled(enabled);
239246
}
240-
247+
/*!
248+
Returns a set of Actor::HideFlags applied to this Actor.
249+
*/
241250
int Actor::hideFlags() const {
242251
PROFILE_FUNCTION();
243252

244253
return p_ptr->m_flags;
245254
}
246-
255+
/*!
256+
Applies a new set of Actor::HideFlags flags to this Actor.
257+
*/
247258
void Actor::setHideFlags(int flags) {
248259
PROFILE_FUNCTION();
249260

engine/src/components/camera.cpp

+10-1
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,17 @@ array<Vector3, 8> Camera::frustumCorners(const Camera &camera) {
327327
}
328328
/*!
329329
Returns frustum corners with provided parameters.
330+
This function accepts a list of parameters:
331+
\a ortho is a flag that points orthographic or perspective camera.
332+
\a sigma is an angle of frustum or ortho size in the case of an orthographic camera.
333+
\a ratio is an aspect ratio.
334+
\a position of the frustum in world space.
335+
\a rotation of frustum in world space.
336+
\a nearPlane clipping plane.
337+
\a farPlane clipping plane.
330338
*/
331-
array<Vector3, 8> Camera::frustumCorners(bool ortho, float sigma, float ratio, const Vector3 &position, const Quaternion &rotation, float nearPlane, float farPlane) {
339+
array<Vector3, 8> Camera::frustumCorners(bool ortho, float sigma, float ratio, const Vector3 &position,
340+
const Quaternion &rotation, float nearPlane, float farPlane) {
332341
float nh;
333342
float fh;
334343
float nw;

engine/src/module.cpp

+2-23
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,9 @@
1111
*/
1212

1313
/*!
14-
\enum Module::PluginTypes
14+
\fn const char *Module::metaInfo() const
1515
16-
\value SYSTEM \c Module provides a system.
17-
\value EXTENSION \c Module provides a set of components.
18-
\value CONVERTER \c Module provides a converter for assets (only in Editor).
19-
\value EDITOR \c Module provides an asset editor (only in Editor).
20-
*/
21-
22-
/*!
23-
\fn const char *Module::description() const
24-
25-
Returns a short description of the module.
26-
*/
27-
28-
/*!
29-
\fn const char *Module::version() const
30-
31-
Return an internal version of the module as a string.
16+
Returns a meta information in JSON format.
3217
*/
3318

3419
/*!
@@ -48,9 +33,3 @@
4833
4934
Returns a module's asset editor with given \a name if present; otherwise returns nullptr.
5035
*/
51-
52-
/*!
53-
\fn StringList Module::components() const
54-
55-
Returns a list of provided components.
56-
*/

engine/src/resources/resource.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Resource::ResourceState Resource::state() const {
8585
}
8686

8787
/*!
88-
Switches the current state to a new state for the resource.
88+
Switches the current state to a new \a state for the resource.
8989
*/
9090
void Resource::switchState(ResourceState state) {
9191
switch(state) {

engine/src/resources/texture.cpp

+13-1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,16 @@ class TexturePrivate {
7373
\value Trilinear \c Texture samples are averaged and also interpolated from adjacent mipmap levels.
7474
*/
7575

76+
/*!
77+
\typedef Texture::Sides
78+
\internal
79+
*/
80+
81+
/*!
82+
\typedef Texture::Surface
83+
\internal
84+
*/
85+
7686
Texture::Texture() :
7787
p_ptr(new TexturePrivate) {
7888

@@ -116,7 +126,9 @@ void Texture::loadUserData(const VariantMap &data) {
116126
}
117127
}
118128
}
119-
129+
/*!
130+
\internal
131+
*/
120132
VariantMap Texture::saveUserData() const {
121133
VariantMap result;
122134

thirdparty/next/src/core/objectsystem.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ static ObjectSystem::GroupMap s_Groups;
3333
3434
\sa objectCreate()
3535
*/
36+
/*!
37+
\typedef ObjectSystem::FactoryPair
38+
\internal
39+
*/
3640
/*!
3741
\fn template<typename T> void ObjectSystem::factoryAdd(const string &group, const MetaObject *meta)
3842

0 commit comments

Comments
 (0)