Skip to content

Commit a6d6cff

Browse files
committed
In-Code Documentation update
1 parent e6c27c4 commit a6d6cff

26 files changed

+115
-37
lines changed

doc/config.qdocconf

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,26 @@ outputformats = HTML
1010

1111
headerdirs += \
1212
../ \
13-
../thirdparty/next/inc
13+
../engine/includes \
14+
../engine/includes/components \
15+
../thirdparty/next/inc \
16+
../thirdparty/next/inc/math \
17+
../thirdparty/next/inc/core \
18+
../thirdparty/next/inc/anim \
19+
../modules/uikit/includes \
20+
../modules/uikit/includes/components \
21+
../modules/uikit/includes/resources \
22+
23+
includepaths += \
24+
../engine/includes \
25+
../engine/includes/components \
26+
../thirdparty/next/inc \
27+
../thirdparty/next/inc/math \
28+
../thirdparty/next/inc/core \
29+
../thirdparty/next/inc/anim \
30+
../modules/uikit/includes \
31+
../modules/uikit/includes/components \
32+
../modules/uikit/includes/resources \
1433

1534
sourcedirs += \
1635
../engine/src \

doc/htmlparser.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def parseFile(file):
149149
data = f.read()
150150
f.close()
151151

152-
data = data.replace("<meta charset=\"utf-8\">", "<meta charset=\"utf-8\"/>")
152+
data = re.sub('(<meta .+)(>)', '\g<1>/>', data)
153153
data = data.replace("&hellip;", "...")
154154

155155
root = ET.fromstring(data)
@@ -182,13 +182,14 @@ def parseFile(file):
182182

183183
title = root.find(".//*[@class='alignedsummary']")
184184
isInherit = False
185-
for td in list(title.iter("td")):
186-
data = "".join(td.itertext()).strip()
187-
if isInherit == True:
188-
classDef.inherits = data
189-
isInherit = False
190-
if data == "Inherits:":
191-
isInherit = True
185+
if title is not None:
186+
for td in list(title.iter("td")):
187+
data = "".join(td.itertext()).strip()
188+
if isInherit == True:
189+
classDef.inherits = data
190+
isInherit = False
191+
if data == "Inherits:":
192+
isInherit = True
192193
return classDef
193194
return None
194195

@@ -199,7 +200,7 @@ def parseModule(file, files):
199200
data = f.read()
200201
f.close()
201202

202-
data = data.replace("<meta charset=\"utf-8\">", "<meta charset=\"utf-8\"/>")
203+
data = re.sub('(<meta .+)(>)', '\g<1>/>', data)
203204
data = data.replace("&hellip;", "...")
204205

205206
root = ET.fromstring(data)

doc/qdoctorst.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def composeMethods(classDef):
6868
if method.returnType is not None:
6969
if method.returnType not in defaultTypes:
7070
refType = "ref"
71-
result += "{0}:{3}:`{1}<api_{1}>`{2} ".format(returnMod, method.returnType, method.reference, refType)
71+
result += "{0}:{3}:`{1}<api_{1}>` {2} ".format(returnMod, method.returnType, method.reference, refType)
7272
else:
7373
result += "{0}{1} ".format(returnMod, method.returnType)
7474

@@ -171,7 +171,7 @@ def main():
171171

172172
inherits = classDef.inherits
173173
if classDef.inherits is not None:
174-
inherits = ":doc:`{0}<api_{0}>`".format(inherits)
174+
inherits = ":ref:`{0}<api_{0}>`".format(inherits)
175175

176176
d["inheritance"] = inherits
177177
d["public"] = composeTable(classDef, False)

engine/includes/pipelinecontext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class ENGINE_EXPORT PipelineContext : public Object {
5656
std::list<Renderable *> &culledComponents();
5757
std::list<BaseLight *> &sceneLights();
5858

59-
std::list<Renderable *> frustumCulling(const std::array<Vector3, 8> &frustum, std::list<Renderable *> &list, AABBox &bb);
59+
std::list<Renderable *> frustumCulling(const std::array<Vector3, 8> &frustum, std::list<Renderable *> &list, AABBox &box);
6060

6161
void setPipeline(Pipeline *pipeline);
6262
void insertRenderTask(PipelineTask *task, PipelineTask *before = nullptr);

engine/includes/resources/computeshader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class ENGINE_EXPORT ComputeInstance {
9494
void setValue(const char *name, const void *value);
9595

9696
Texture *texture(const char *name);
97-
virtual void setTexture(const char *name, Texture *value);
97+
virtual void setTexture(const char *name, Texture *texture);
9898

9999
ComputeBuffer *buffer(const char *name);
100100
virtual void setBuffer(const char *name, ComputeBuffer *buffer);

engine/src/commandbuffer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ void CommandBuffer::dispatchCompute(ComputeInstance *shader, int32_t groupsX, in
4343
A_UNUSED(groupsZ);
4444
}
4545
/*!
46+
\fn void CommandBuffer::drawMesh(Mesh *mesh, uint32_t sub, uint32_t layer, MaterialInstance &instance)
47+
4648
Draws a \a mesh with the specified \a sub mesh index with assigned material \a instance, and rendering \a layer.
4749
*/
4850
void CommandBuffer::drawMesh(Mesh *mesh, uint32_t sub, uint32_t layer, MaterialInstance &instance) {

engine/src/components/armature.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ Pose *Armature::bindPose() const {
9595
return m_bindPose;
9696
}
9797
/*!
98+
\fn void Armature::setBindPose(Pose *pose)
99+
98100
Sets a bind (initial) \a pose of the bone structure.
99101
*/
100102
void Armature::setBindPose(Pose *pose) {

engine/src/components/playerinput.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ ControlScheme *PlayerInput::controlScheme() const {
7373
return m_controlScheme;
7474
}
7575
/*!
76+
\fn void PlayerInput::setControlScheme(ControlScheme *scheme)
77+
7678
Assigns a new control \a scheme. All previous bindings and key states will be cleaned.
7779
*/
7880
void PlayerInput::setControlScheme(ControlScheme *scheme) {

engine/src/components/textrender.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ Font *TextRender::font() const {
7878
return m_font;
7979
}
8080
/*!
81-
Changes the \a font which will be used to draw a text.
81+
\fn void TextRender::setFont(Font *font)
82+
83+
Sets the new \a font asset used to render a text.
8284
*/
8385
void TextRender::setFont(Font *font) {
8486
if(m_font != font) {
@@ -364,6 +366,8 @@ void TextRender::composeMesh(Font *font, Mesh *mesh, int size, const std::string
364366
}
365367
}
366368
/*!
369+
\fn Vector2 TextRender::cursorPosition(Font *font, int size, const std::string &text, bool kerning, const Vector2 &boundaries)
370+
367371
Returns the cursor position for rendering \a text with specified \a font and \a size.
368372
Developer can also enable \a kerning and specify a \a boundaries for the text.
369373
*/

engine/src/components/tilemaprender.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ TileMap *TileMapRender::tileMap() const {
5656
return m_tileMap;
5757
}
5858
/*!
59+
\fn void TileMapRender::setTileMap(TileMap *map)
60+
5961
Sets the tile \a map associated with this TileMapRender.
6062
*/
6163
void TileMapRender::setTileMap(TileMap *map) {

0 commit comments

Comments
 (0)