Skip to content

Commit ccecbd2

Browse files
Working on documentation
1 parent 4c0ffb6 commit ccecbd2

7 files changed

Lines changed: 55 additions & 10 deletions

File tree

documentation/doxygen/Doxyfile.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ HIDE_UNDOC_CLASSES = NO
485485
# included in the documentation.
486486
# The default value is: NO.
487487

488-
HIDE_FRIEND_COMPOUNDS = NO
488+
HIDE_FRIEND_COMPOUNDS = YES
489489

490490
# If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any
491491
# documentation blocks found inside the body of a function. If set to NO, these
@@ -774,7 +774,7 @@ WARN_LOGFILE =
774774
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
775775
# Note: If this tag is empty the current directory is searched.
776776

777-
INPUT = @PROJECT_SOURCE_DIR@/"src/" @PROJECT_SOURCE_DIR@/"include/reactphysics3d/"
777+
INPUT = "@PROJECT_SOURCE_DIR@/include/reactphysics3d/"
778778

779779
# This tag can be used to specify the character encoding of the source files
780780
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
@@ -1010,7 +1010,7 @@ USE_HTAGS = NO
10101010
# See also: Section \class.
10111011
# The default value is: YES.
10121012

1013-
VERBATIM_HEADERS = YES
1013+
VERBATIM_HEADERS = NO
10141014

10151015
# If the CLANG_ASSISTED_PARSING tag is set to YES then doxygen will use the
10161016
# clang parser (see: http://clang.llvm.org/) for more accurate parsing at the

documentation/sphinx/source/conf.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,12 @@
1616

1717
extensions = ["breathe"]
1818

19-
templates_path = ['_templates']
2019
exclude_patterns = []
2120

22-
23-
2421
# -- Options for HTML output -------------------------------------------------
2522
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
2623

2724
html_theme = 'sphinx_rtd_theme'
28-
html_static_path = ['_static']
2925

3026
# Breathe Configuration
3127
breathe_default_project = "ReactPhysics3D"
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
.. ReactPhysics3D documentation master file, created by
2+
sphinx-quickstart on Tue Mar 19 23:06:09 2024.
3+
You can adapt this file completely to your liking, but it should at least
4+
contain the root `toctree` directive.
5+
6+
ReactPhysics3D
7+
==============
8+
9+
.. toctree::
10+
:maxdepth: 2
11+
:caption: Contents:
12+
13+
14+
15+
Indices and tables
16+
==================
17+
18+
* :ref:`genindex`
19+
* :ref:`modindex`
20+
* :ref:`search`
21+
22+
User Manual
23+
===========
24+
25+
26+
.. include:: user_manual/user_manual.rst
27+
28+
C++ API Reference
29+
=================
30+
31+
.. doxygenindex::
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
This is the user manual
3+
=======================
4+
5+
============
6+
Introduction
7+
============
8+
9+
ReactPhysics3D is an open source C++ physics engine library that can be used
10+
in 3D simulations and games. The library is released under the ZLib license.

include/reactphysics3d/collision/shapes/ConcaveMeshShape.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ class TriangleShape;
4040
class TriangleMesh;
4141

4242
// class ConvexTriangleAABBOverlapCallback
43+
/**
44+
* This class represents a callback when an overlap occurs
45+
*/
4346
class ConvexTriangleAABBOverlapCallback : public DynamicAABBTreeOverlapCallback {
4447

4548
private:

include/reactphysics3d/systems/BroadPhaseSystem.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ class MemoryManager;
4747
class Profiler;
4848

4949
// class AABBOverlapCallback
50+
/**
51+
* This class represents a callback when two AABB overlap
52+
*/
5053
class AABBOverlapCallback : public DynamicAABBTreeOverlapCallback {
5154

5255
public:

src/collision/TriangleVertexArray.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ TriangleVertexArray::TriangleVertexArray(uint32 nbVertices, const void* vertices
107107
// Return the indices of the three vertices of a given triangle in the array
108108
/**
109109
* @param triangleIndex Index of a given triangle in the array
110-
* @param[out] outVerticesIndices Pointer to the three output vertex indices
110+
* @param[out] outV1Index Index of the first vertex of the triangle in the vertex array
111+
* @param[out] outV2Index Index of the first vertex of the triangle in the vertex array
112+
* @param[out] outV3Index Index of the first vertex of the triangle in the vertex array
111113
*/
112114
void TriangleVertexArray::getTriangleVerticesIndices(uint32 triangleIndex, uint32& outV1Index, uint32& outV2Index, uint32& outV3Index) const {
113115

@@ -135,7 +137,7 @@ void TriangleVertexArray::getTriangleVerticesIndices(uint32 triangleIndex, uint3
135137
// Return a vertex of the array
136138
/**
137139
* @param vertexIndex Index of a given vertex of the array
138-
* @param[out] outVertex Pointer to the output vertex coordinates
140+
* @return The vertex coordinates
139141
*/
140142
Vector3 TriangleVertexArray::getVertex(uint32 vertexIndex) const {
141143

@@ -162,7 +164,7 @@ Vector3 TriangleVertexArray::getVertex(uint32 vertexIndex) const {
162164
// Return a vertex normal of the array
163165
/**
164166
* @param vertexIndex Index of a given vertex of the array
165-
* @param[out] outNormal Pointer to the output vertex normal
167+
* @return The normal vector of the vertex
166168
*/
167169
Vector3 TriangleVertexArray::getVertexNormal(uint32 vertexIndex) const {
168170

0 commit comments

Comments
 (0)