Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
34c000e
`feat`: gui (window only).✨
Life4gal Apr 10, 2025
a3d9942
`feat`: (point/extent/rect).(combine_max/combine_min/clamp).✨
Life4gal Apr 10, 2025
057350d
`feat`: Add a wrapper for `std::unique_ptr` and `std::reference_wrapp…
Life4gal Apr 10, 2025
8f4def8
`fix`: The grab of the scrollbar can no longer be dislodged from the …
Life4gal Apr 11, 2025
fa0c250
`fix`: The window no longer unable to close.
Life4gal Apr 11, 2025
ecb7a56
`test`: Rename test.draw => test.gui.
Life4gal Apr 11, 2025
a7045ce
`feat`: Add button/small_button/radio_button/checkbox.
Life4gal Apr 14, 2025
16582e0
`fix`: Allow `meta::basic_xxxx_string` to be implicitly converted to …
Life4gal Apr 15, 2025
a041220
`feat`: Use `meta::member_of_name` gets the corresponding member by n…
Life4gal Apr 15, 2025
c7211dc
`fix`: `get` needs to return a constant reference (otherwise meta::me…
Life4gal Apr 15, 2025
21464a4
`feat`: Add `gui::draw_slider`.
Life4gal Apr 15, 2025
7438348
`fix`: When drawing multiple windows, later windows no longer overwri…
Life4gal Apr 15, 2025
29c91db
`feat`: Add `gui::draw_slider_n`.
Life4gal Apr 16, 2025
7bb910d
`feat`: Add gui::begin/end_child_window.
Life4gal Apr 17, 2025
27d27fd
`fix`: Remove unnecessary assertions.
Life4gal Apr 17, 2025
96dcfad
`test`: gui::begin/end_child_window & gui::draw_slider_n.
Life4gal Apr 17, 2025
91efa19
`fix`: The window will draw the border correctly (instead of only dra…
Life4gal Apr 18, 2025
43afb98
`feat`: Add gui::begin/end_tooltip_window.✨
Life4gal Apr 18, 2025
ae0b83e
`feat`: Add gui::draw_combo.✨
Life4gal Apr 18, 2025
e9572e5
`refactor`: `func(context, ...)` => `context.func(...)`.📦
Life4gal Apr 21, 2025
c7878af
`feat`: Add functional::EnumWrapper.✨
Life4gal Apr 21, 2025
94c28be
`chore`: Remove unneeded macro definitions.
Life4gal Apr 21, 2025
77fcf35
`test`: gui::tooltip & gui::combo.🚨
Life4gal Apr 21, 2025
5ae7c5f
`fix`: functional::overladed no longer requires inline lambda.🐛
Life4gal Apr 28, 2025
616cf48
`feat`: Add io.inputs. (handles input from devices such as keyboard/m…
Life4gal Apr 28, 2025
e0f29b0
`fix`: User-defined classes may friend meta::extern_accessor to enabl…
Life4gal Apr 28, 2025
56f63a1
`feat`: Allow `is_click` to be triggered repeatedly when a button is …
Life4gal Apr 29, 2025
8e6deb7
`build`: Force UTF8.🛠
Life4gal Apr 30, 2025
e67f3de
`fix`: No longer tracking the mouse input source devices (e.g. mouse,…
Life4gal Apr 30, 2025
ba04567
`fix`: Use `std::mutex`.🐛
Life4gal May 6, 2025
7085994
`WIP`: Add gfx.🚨
Life4gal May 6, 2025
88cb7c2
`WIP`: gfx.🚨
Life4gal May 8, 2025
0b17cb0
`format`: Update .clang-format.
Life4gal May 8, 2025
8cba731
`WIP`: gfx.🚨
Life4gal May 9, 2025
00462a4
`format`: IndentPPDirectives -> None.
Life4gal May 9, 2025
859520e
`feat`: GFX basic Framework.✨
Life4gal May 10, 2025
b285de8
`fix`:
Life4gal May 10, 2025
056d58b
`fix`: Clear D3D11 resource leak.🐛
Life4gal May 13, 2025
b2bd2c2
`fix`:
Life4gal May 13, 2025
87407f6
`feat`: `TextureContext` is more focused on textures, font-related co…
Life4gal May 19, 2025
a0e2a25
`build`: Blocking annoying WIN32 macros (min/max).
Life4gal May 19, 2025
cb7d39e
`feat`: gfx::Dx12Renderer (trial version).
Life4gal May 19, 2025
0c5feee
`wip`: Refactoring gfx.
Life4gal May 19, 2025
3096e8c
`wip`: Refactoring gfx.
Life4gal May 21, 2025
db2caec
`wip`: Refactoring gfx.
Life4gal May 25, 2025
5a2c3e5
`wip`: Refactoring gfx(extension).
Life4gal May 25, 2025
b713d65
`fix`:
Life4gal May 26, 2025
7220644
`fix`: Remove assertions from some lightweight modules.🐛
Life4gal May 26, 2025
552e667
`feat`: New gfx module.✨
Life4gal May 26, 2025
f35d2c2
`feat`: Add gfx.rect_pack.✨
Life4gal May 26, 2025
46abcd6
`feat`: Add gfx.rect_pack.✨
Life4gal May 27, 2025
390df1b
`feat`: Add gfx.rect_pack.✨
Life4gal May 27, 2025
c07122e
`feat`: GFX basic Framework.✨
Life4gal May 29, 2025
b86acd7
`fix`: Remove assertions from some lightweight modules.🐛
Life4gal May 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 32 additions & 29 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -7,59 +7,61 @@ AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Left
AlignOperands: Align
AlignTrailingComments:
Kind: Always
OverEmptyLines: 2
Kind: Always
OverEmptyLines: 2
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: Empty
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: WithoutElse
AllowShortLambdasOnASingleLine: Inline
AllowShortLambdasOnASingleLine: Empty
AllowShortLoopsOnASingleLine: false
AlwaysBreakBeforeMultilineStrings: true
BinPackArguments: false
BinPackParameters: false
BreakBeforeBraces: Allman
BraceWrapping:
AfterCaseLabel: true
AfterClass: true
AfterControlStatement: true
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterStruct: true
AfterUnion: true
AfterExternBlock: true
BeforeCatch: true
BeforeElse: true
BeforeLambdaBody: true
BeforeWhile: true
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BraceWrapping:
AfterCaseLabel: true
AfterClass: true
AfterControlStatement: true
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterStruct: true
AfterUnion: true
AfterExternBlock: true
BeforeCatch: true
BeforeElse: true
BeforeLambdaBody: true
BeforeWhile: true
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BracedInitializerIndentWidth: 4
BreakBeforeBinaryOperators: None
BreakBeforeTernaryOperators: true
BreakConstructorInitializers: BeforeColon
BreakInheritanceList: BeforeColon
BreakStringLiterals: true
BreakTemplateDeclarations: Yes
ColumnLimit: 200
CompactNamespaces: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 8
Cpp11BracedListStyle: true
FixNamespaceComments: true
IncludeCategories:
- Regex: '^<.*'
Priority: 1
- Regex: '^".*'
Priority: 2
- Regex: '.*'
Priority: 3
- Regex: '^<.*'
Priority: 1
- Regex: '^".*'
Priority: 2
- Regex: '.*'
Priority: 3
IncludeIsMainRegex: '([-_](test|unittest))?$'
IndentCaseLabels: true
IndentPPDirectives: BeforeHash
IndentPPDirectives: None
IndentWidth: 4
IndentWrappedFunctionNames: false
InsertNewlineAtEOF: true
Expand All @@ -69,6 +71,7 @@ MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 2
NamespaceIndentation: All
PackConstructorInitializers: Never
PointerAlignment: Left
ReflowComments: false
SpaceAfterCStyleCast: false
Expand Down
92 changes: 72 additions & 20 deletions scripts/library.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ add_library(gal::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
# COMPILE FLAGS

if (${PROJECT_NAME_PREFIX}COMPILER_MSVC)
set(${PROJECT_NAME_PREFIX}COMPILE_FLAGS "/D_CRT_SECURE_NO_WARNINGS")
set(${PROJECT_NAME_PREFIX}COMPILE_FLAGS "/D_CRT_SECURE_NO_WARNINGS;/utf-8;/DNOMINMAX")
# ====================
# PEDANTIC
if (${PROJECT_NAME_PREFIX}PEDANTIC)
Expand Down Expand Up @@ -257,6 +257,8 @@ set(
# =========================

${PROJECT_SOURCE_DIR}/src/memory/rw.hpp
${PROJECT_SOURCE_DIR}/src/memory/unique_ptr.hpp
${PROJECT_SOURCE_DIR}/src/memory/reference_wrapper.hpp

${PROJECT_SOURCE_DIR}/src/memory/memory.hpp

Expand Down Expand Up @@ -356,20 +358,47 @@ set(
${PROJECT_SOURCE_DIR}/src/unit_test/unit_test.hpp

# =========================
# DRAW
# IO
# =========================

${PROJECT_SOURCE_DIR}/src/draw/flag.hpp
${PROJECT_SOURCE_DIR}/src/draw/def.hpp
${PROJECT_SOURCE_DIR}/src/draw/font.hpp
${PROJECT_SOURCE_DIR}/src/draw/shared_data.hpp
${PROJECT_SOURCE_DIR}/src/draw/theme.hpp
${PROJECT_SOURCE_DIR}/src/draw/mouse.hpp
${PROJECT_SOURCE_DIR}/src/draw/draw_list.hpp
${PROJECT_SOURCE_DIR}/src/draw/window.hpp
${PROJECT_SOURCE_DIR}/src/draw/context.hpp
${PROJECT_SOURCE_DIR}/src/io/inputs.hpp

${PROJECT_SOURCE_DIR}/src/io/io.hpp

${PROJECT_SOURCE_DIR}/src/draw/draw.hpp
# =========================
# GFX
# =========================

${PROJECT_SOURCE_DIR}/src/gfx/type.hpp
${PROJECT_SOURCE_DIR}/src/gfx/texture.hpp
${PROJECT_SOURCE_DIR}/src/gfx/glyph.hpp
${PROJECT_SOURCE_DIR}/src/gfx/render_list.hpp
${PROJECT_SOURCE_DIR}/src/gfx/renderer.hpp
${PROJECT_SOURCE_DIR}/src/gfx/context.hpp

${PROJECT_SOURCE_DIR}/src/gfx/internal/rect_pack.hpp
${PROJECT_SOURCE_DIR}/src/gfx/internal/texture.hpp
${PROJECT_SOURCE_DIR}/src/gfx/internal/glyph.hpp
${PROJECT_SOURCE_DIR}/src/gfx/internal/context.hpp

${PROJECT_SOURCE_DIR}/src/gfx/extension/glyph_parser_freetype.hpp
${PROJECT_SOURCE_DIR}/src/gfx/extension/renderer_d3d11.hpp
${PROJECT_SOURCE_DIR}/src/gfx/extension/renderer_d3d12.hpp

${PROJECT_SOURCE_DIR}/src/gfx/gfx.hpp

# =========================
# GUI
# =========================

${PROJECT_SOURCE_DIR}/src/gui/gui.hpp
${PROJECT_SOURCE_DIR}/src/gui/internal/gui.inl
${PROJECT_SOURCE_DIR}/src/gui/internal/common.hpp
${PROJECT_SOURCE_DIR}/src/gui/internal/font.hpp
${PROJECT_SOURCE_DIR}/src/gui/internal/draw_list.hpp
${PROJECT_SOURCE_DIR}/src/gui/internal/mouse.hpp
${PROJECT_SOURCE_DIR}/src/gui/internal/window.hpp
${PROJECT_SOURCE_DIR}/src/gui/internal/context.hpp
)

set(
Expand Down Expand Up @@ -404,16 +433,39 @@ set(
${PROJECT_SOURCE_DIR}/src/chars/icelake.cpp

# =========================
# DRAW
# IO
# =========================

${PROJECT_SOURCE_DIR}/src/io/inputs.cpp

# =========================
# GFX
# =========================

${PROJECT_SOURCE_DIR}/src/gfx/texture.cpp
${PROJECT_SOURCE_DIR}/src/gfx/glyph.cpp
${PROJECT_SOURCE_DIR}/src/gfx/render_list.cpp
${PROJECT_SOURCE_DIR}/src/gfx/renderer.cpp

${PROJECT_SOURCE_DIR}/src/gfx/internal/rect_pack.cpp
${PROJECT_SOURCE_DIR}/src/gfx/internal/texture.cpp
${PROJECT_SOURCE_DIR}/src/gfx/internal/glyph.cpp
${PROJECT_SOURCE_DIR}/src/gfx/internal/context.cpp

${PROJECT_SOURCE_DIR}/src/gfx/extension/glyph_parser_freetype.cpp
${PROJECT_SOURCE_DIR}/src/gfx/extension/renderer_d3d11.cpp
${PROJECT_SOURCE_DIR}/src/gfx/extension/renderer_d3d12.cpp

# =========================
# GUI
# =========================

${PROJECT_SOURCE_DIR}/src/draw/font.cpp
${PROJECT_SOURCE_DIR}/src/draw/shared_data.cpp
${PROJECT_SOURCE_DIR}/src/draw/theme.cpp
${PROJECT_SOURCE_DIR}/src/draw/mouse.cpp
${PROJECT_SOURCE_DIR}/src/draw/draw_list.cpp
${PROJECT_SOURCE_DIR}/src/draw/window.cpp
${PROJECT_SOURCE_DIR}/src/draw/context.cpp
${PROJECT_SOURCE_DIR}/src/gui/internal/common.cpp
${PROJECT_SOURCE_DIR}/src/gui/internal/font.cpp
${PROJECT_SOURCE_DIR}/src/gui/internal/draw_list.cpp
${PROJECT_SOURCE_DIR}/src/gui/internal/mouse.cpp
${PROJECT_SOURCE_DIR}/src/gui/internal/window.cpp
${PROJECT_SOURCE_DIR}/src/gui/internal/context.cpp
)

set_source_files_properties(
Expand Down
Loading
Loading