Skip to content

Commit 3477609

Browse files
committed
docs: draft for new GUIDE documentation, updated code documentation
1 parent 992ddbb commit 3477609

File tree

218 files changed

+16084
-3626
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+16084
-3626
lines changed

CMakeLists.txt

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -156,18 +156,18 @@ list(APPEND BRENTA_DEPS_INCLUDES "external/tenno-tl/include")
156156

157157
# Lua
158158
set(LUA_DIR "external/lua")
159-
set(LUA_FILES ${LUA_DIR}/lapi.c ${LUA_DIR}/lauxlib.c
160-
${LUA_DIR}/lbaselib.c ${LUA_DIR}/lcode.c ${LUA_DIR}/lcorolib.c
161-
${LUA_DIR}/lctype.c ${LUA_DIR}/ldblib.c ${LUA_DIR}/ldebug.c
162-
${LUA_DIR}/ldo.c ${LUA_DIR}/ldump.c ${LUA_DIR}/lfunc.c
163-
${LUA_DIR}/lgc.c ${LUA_DIR}/linit.c ${LUA_DIR}/liolib.c
164-
${LUA_DIR}/llex.c ${LUA_DIR}/lmathlib.c ${LUA_DIR}/lmem.c
165-
${LUA_DIR}/loadlib.c ${LUA_DIR}/lobject.c ${LUA_DIR}/lopcodes.c
166-
${LUA_DIR}/loslib.c ${LUA_DIR}/lparser.c ${LUA_DIR}/lstate.c
167-
${LUA_DIR}/lstring.c ${LUA_DIR}/lstrlib.c ${LUA_DIR}/ltable.c
168-
${LUA_DIR}/ltablib.c ${LUA_DIR}/ltests.c ${LUA_DIR}/ltm.c
169-
${LUA_DIR}/lundump.c ${LUA_DIR}/lutf8lib.c ${LUA_DIR}/lvm.c
170-
${LUA_DIR}/lzio.c)
159+
set(LUA_FILES
160+
${LUA_DIR}/lapi.c ${LUA_DIR}/lauxlib.c ${LUA_DIR}/lzio.c
161+
${LUA_DIR}/lbaselib.c ${LUA_DIR}/lcode.c ${LUA_DIR}/lcorolib.c
162+
${LUA_DIR}/lctype.c ${LUA_DIR}/ldblib.c ${LUA_DIR}/ldebug.c
163+
${LUA_DIR}/ldo.c ${LUA_DIR}/ldump.c ${LUA_DIR}/lfunc.c
164+
${LUA_DIR}/lgc.c ${LUA_DIR}/linit.c ${LUA_DIR}/liolib.c
165+
${LUA_DIR}/llex.c ${LUA_DIR}/lmathlib.c ${LUA_DIR}/lmem.c
166+
${LUA_DIR}/loadlib.c ${LUA_DIR}/lobject.c ${LUA_DIR}/lopcodes.c
167+
${LUA_DIR}/loslib.c ${LUA_DIR}/lparser.c ${LUA_DIR}/lstate.c
168+
${LUA_DIR}/lstring.c ${LUA_DIR}/lstrlib.c ${LUA_DIR}/ltable.c
169+
${LUA_DIR}/ltablib.c ${LUA_DIR}/ltests.c ${LUA_DIR}/ltm.c
170+
${LUA_DIR}/lundump.c ${LUA_DIR}/lutf8lib.c ${LUA_DIR}/lvm.c)
171171
set(LUA_COMPILE_OPTIONS -Wextra -Wshadow -Wsign-compare -Wundef
172172
-Wwrite-strings -Wredundant-decls -Wdisabled-optimization
173173
-Waggregate-return -Wdouble-promotion -Wdeclaration-after-statement

Makefile

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,23 @@ shaders-brenta: $(SHADERS)
2424
shaders-examples:
2525
python3 utils/shaders_to_c.py --out-dir $(EXAMPLES_SHADERS_OUT_DIR) $(EXAMPLES_SHADERS)
2626

27-
DOCS_DIR := docs
28-
HTML_DIR := docs/html
29-
DOCS := ${wildcard ${DOCS_DIR}/*.md}
30-
HTML := ${patsubst ${DOCS_DIR}/%.md, ${HTML_DIR}/%.html, ${DOCS}}
31-
HTML_INTRO := utils/website/intro.html
32-
HTML_OUTRO := utils/website/outro.html
33-
TMP_FILE := /tmp/padoc-out.html
27+
#
28+
# Website
29+
#
30+
31+
DOCS_DIR := docs
32+
HTML_DIR := docs/html
33+
DOCS := ${wildcard ${DOCS_DIR}/*.md}
34+
HTML := ${patsubst ${DOCS_DIR}/%.md, ${HTML_DIR}/%.html, ${DOCS}}
35+
HTML_INTRO := utils/website/intro.html
36+
HTML_OUTRO := utils/website/outro.html
37+
TMP_FILE := /tmp/padoc-out.html
3438
HIGHLIGHT_STYLE := tango
35-
PANDOC_FLAGS := --highlight-style ${HIGHLIGHT_STYLE}
39+
PANDOC_FLAGS := --highlight-style ${HIGHLIGHT_STYLE}
3640

37-
html: doxygen ${HTML}
41+
html: doxygen ${HTML} ## Generate website and documentation
3842

39-
doxygen:
43+
doxygen: ## Generate html documentation
4044
doxygen ./utils/doxygen/doxygen.conf
4145
mv ${HTML_DIR}/index.html ${HTML_DIR}/doxygen.html
4246
cp -r utils/docs-images ${HTML_DIR}/images

TODO

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
- move sound to the asset manager and make it non-static
12
- rework website

docs/CONTRIBUTING.md

Lines changed: 0 additions & 52 deletions
This file was deleted.

docs/DESIGN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Here is an high-level overview of the main objects Brenta provides:
99

1010
![brenta-picture](./brenta-picture.png)
1111

12-
I wanted to write my own game engine primarely out of fascination and
12+
I wanted to write my own game engine primarily out of fascination and
1313
curiosity to understand how these big systems are designed and
1414
implemented. I found out that writing a game engine has a lot in
1515
common with writing an operating system. You are working with audio,

0 commit comments

Comments
 (0)