Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚧Replace all UI controls with IMGUI #860

Merged
merged 47 commits into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
b6aab1c
Start work for issue #859
CalvinWilkinson Jan 3, 2024
711246b
Merge branch 'preview' into feature/859-replace-controls
CalvinWilkinson Jan 5, 2024
7d11877
perf: add file headers
CalvinWilkinson Jan 9, 2024
6aacceb
chore: change enum values to improve control creation
CalvinWilkinson Jan 9, 2024
19112ac
ide: add word to rider dictionary and ignore suggestion
CalvinWilkinson Jan 9, 2024
a6c72ea
deps: add Silk.NET.OpenGL.Extensions.ImGui nuget package version v2.20.0
CalvinWilkinson Jan 9, 2024
47bf3db
BREAKING CHANGE: limit max size of font to 100
CalvinWilkinson Jan 9, 2024
41faccb
feat: set the corner radius properties as init
CalvinWilkinson Jan 9, 2024
9d9bc2a
refactor: inject silk window directly instead of the window factory
CalvinWilkinson Jan 9, 2024
c64c1f2
test: refactor tests to use nsubstitute and fix failing tests
CalvinWilkinson Jan 10, 2024
3fa693d
chore: remove redundant clear invoke
CalvinWilkinson Jan 10, 2024
a359b52
refactor: change name of interface method param to match implementations
CalvinWilkinson Jan 10, 2024
549a432
refactor: clean up code
CalvinWilkinson Jan 10, 2024
c2c04fa
feat: create thin wrapper for ImGui functions
CalvinWilkinson Jan 14, 2024
e9f2ef8
feat: create reactable for push notifications data for imgui controller
CalvinWilkinson Jan 10, 2024
43fafb2
feat: create class to abstract ImGuiController and simplify code
CalvinWilkinson Jan 10, 2024
3ae49d1
feat: create service to simplify and extend imgui related operations
CalvinWilkinson Jan 10, 2024
023700f
feat: add opengl func to set pixel storage modes to aid in imgui font…
CalvinWilkinson Jan 10, 2024
c7bfd0a
feat: create class to combine other types to greatly simplify imgui i…
CalvinWilkinson Jan 14, 2024
55a7b5d
feat: add method to reactable factory
CalvinWilkinson Jan 10, 2024
8939ccb
feat: setup dependency injection for new imgui types
CalvinWilkinson Jan 10, 2024
6e971cd
refactor: replace standard exception with custom exception
CalvinWilkinson Jan 10, 2024
b96531d
feat: integrate imgui into GLWindow and hence Velaptor
CalvinWilkinson Jan 10, 2024
63ffab4
refactor: perform simple cleanup
CalvinWilkinson Jan 10, 2024
a6a65c8
chore: dispose of GL object in GLInvoker dispose method
CalvinWilkinson Jan 10, 2024
cade55c
chore: make small perf boost by setting method to static
CalvinWilkinson Jan 10, 2024
0ab4194
config: set velaptor testing project to have access to velaptor inter…
CalvinWilkinson Jan 10, 2024
206fcac
chore: create imgui extension methods
CalvinWilkinson Jan 10, 2024
3d8687b
cleanup: add, remove, and improve extension methods for testing app
CalvinWilkinson Jan 11, 2024
9cb0bec
chore: setup di registration for testing app
CalvinWilkinson Jan 10, 2024
0eabeb4
chore: create basic ui controls for testing app
CalvinWilkinson Jan 14, 2024
920ba84
refactor: replace old ui controls with imgui controls
CalvinWilkinson Jan 10, 2024
c0dd44b
refactor: replace old ui controls with imgui controls
CalvinWilkinson Jan 10, 2024
4ef7c0b
chore: further improvements
CalvinWilkinson Jan 14, 2024
e060308
feat: implement a stats window into the core of velaptor
CalvinWilkinson Jan 14, 2024
8d7dd23
chore: add small perf improvement to AppStats
CalvinWilkinson Jan 14, 2024
418eb96
refactor: move opengl service types to a new namespace
CalvinWilkinson Jan 14, 2024
a6bdcbd
ide: update live template for unit test null ctor param snippet
CalvinWilkinson Jan 14, 2024
851d819
test: create tests for stats window service
CalvinWilkinson Jan 15, 2024
9caf8ea
docs: improve code docs
CalvinWilkinson Jan 15, 2024
f175ce6
cleanup: remove disabled code
CalvinWilkinson Jan 15, 2024
89c0be1
fix: fix title issue between control groups
CalvinWilkinson Jan 15, 2024
5ec5ff4
fix: fix issue with incorrect style pop count
CalvinWilkinson Jan 15, 2024
91d9db7
chore: add size changed event
CalvinWilkinson Jan 15, 2024
f37bed8
chore: fix control group placement issue
CalvinWilkinson Jan 15, 2024
f162db8
chore: fix various issues in shape scene
CalvinWilkinson Jan 15, 2024
e4b48f8
chore: replace init event to fix placement & size issues
CalvinWilkinson Jan 15, 2024
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
2 changes: 2 additions & 0 deletions Performance/KeyboardPerf/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
// </copyright>

// ReSharper disable RedundantUsingDirective
// ReSharper disable UnusedVariable
using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Running;
using KeyboardPerf;

#if DEBUG

var keyboardStateBenchMarks = new KeyboardBenchmarks();
keyboardStateBenchMarks.GetState();

#elif RELEASE

Expand Down
4 changes: 3 additions & 1 deletion Performance/MousePerf/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// See https://aka.ms/new-console-template for more information
// <copyright file="Program.cs" company="KinsonDigital">
// Copyright (c) KinsonDigital. All rights reserved.
// </copyright>

// ReSharper disable UnusedVariable
// ReSharper disable RedundantUsingDirective
Expand Down
5 changes: 4 additions & 1 deletion Performance/MousePerf/ReactableFactoryFake.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,17 @@ namespace MousePerf;
/// <summary>
/// Used for the purpose of performance testing.
/// </summary>
internal class ReactableFactoryFake : IReactableFactory
internal sealed class ReactableFactoryFake : IReactableFactory
{
/// <inheritdoc/>
public IPushReactable CreateNoDataPushReactable() => throw new NotImplementedException();

/// <inheritdoc/>
public IPushReactable<GL> CreateGLReactable() => throw new NotImplementedException();

/// <inheritdoc/>
public IPushReactable<GLObjectsData> CreateGLObjectsReactable() => throw new NotImplementedException();

/// <inheritdoc/>
public IPushReactable<BatchSizeData> CreateBatchSizeReactable() => throw new NotImplementedException();

Expand Down
4 changes: 2 additions & 2 deletions Testing/VelaptorTesting/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ public enum ShapeType
/// <summary>
/// A rectangle.
/// </summary>
Rectangle = 1,
Rectangle = 0,

/// <summary>
/// A circle.
/// </summary>
Circle = 2,
Circle = 1,
}

/// <summary>
Expand Down
Loading
Loading