Skip to content
This repository was archived by the owner on May 8, 2024. It is now read-only.

Commit e5b4c05

Browse files
authored
Merge pull request #9 from zyebytevt/zyedev
Rewrite backends to be dynamic, various other improvements
2 parents e31c1c8 + b911c66 commit e5b4c05

Some content is hidden

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

75 files changed

+2733
-2336
lines changed

CONVENTIONS.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
## Declaration order
2+
3+
Member declaration order:
4+
1. `private`
5+
2. `protected`
6+
3. `package`
7+
4. `public`
8+
5. `export`
9+
10+
## Attributes
11+
12+
- Visibility modifiers (and static) in C++ syntax
13+
- Not required for public-only structs (PODs)
14+
- Function attributes after brackets
15+
- Use `in` instead of `const ref`
16+
17+
## Casing
18+
19+
- Non-public member variables: `m + PascalCase`
20+
- Non-public static member variables: `s + PascalCase`
21+
- Non-public module variables: `p + PascalCase`
22+
23+
- Classes, Structs, Interfaces, Unions: `PascalCase`
24+
- Aliases: Dependent on type
25+
- Constants: camelCase
26+
27+
Everything else: camelCase

TODO.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,16 @@ A lot of stuff has already been done before this file has been started.
4747
[X] Markup for creating GUI
4848
[X] Get audio working
4949
[X] Add streaming audio
50-
[ ] Fix profiler omg
50+
[X] Fix profiler omg
5151
[ ] Add unittests
52+
[X] DOCUMENTATION!
5253
[ ] MMAP shenanigans for ZPK files
5354
[ ] Make buildable and executable on Windows
5455
[ ] Make executable on MacOS
5556
[ ] Localization improvements (i18n-d)?
57+
[ ] 2D batch renderer add custom shader support
58+
[ ] Move ECS into a separate sub-package
59+
[ ] Rethink the different backend situation
5660

5761
[ ] Implement texture atlases in 3D meshes
5862
[ ] Add CLI (like Angular) (maybe now even more important due to Github workflows?)

dub.sdl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,5 @@ configuration "sdl-opengl" {
2020
dependency "bindbc-openal" version="~>1.0.0"
2121
dependency "bindbc-sdl" version="~>1.0.1"
2222
targetType "library"
23-
sourcePaths "platform/opengl" "platform/openal"
24-
versions "GL_41" "SDL_204" "GL_KHR_debug"
23+
versions "GL_41" "SDL_204" "GL_KHR_debug" "ZWBackendOpenGL" "ZWBackendOpenAL"
2524
}

platform/gamemixer/api.d

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

platform/gamemixer/sample.d

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

platform/openal/api.d

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

0 commit comments

Comments
 (0)