Skip to content
Merged

Gui #99

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
fb3217e
Move Camera back -5
ElectronicIV Jun 23, 2025
ce118e7
Add light to scene
ElectronicIV Jun 23, 2025
938832b
Add basic obj files
ElectronicIV Jun 23, 2025
47d1f28
Move the api from private to public
Valentin22r Jun 24, 2025
52217e0
Fix Api construction
ElectronicIV Jun 24, 2025
f019e95
Improve texture creation
ElectronicIV Jun 24, 2025
0dddc3f
Adjust FOV of camera
ElectronicIV Jun 24, 2025
45024a0
Add default entity
ElectronicIV Jun 24, 2025
d99727a
Rework of Object3D & texture creation
ElectronicIV Jun 24, 2025
a796421
Fix network api throw
ElectronicIV Jun 24, 2025
9912267
Add default texture handling
ElectronicIV Jun 24, 2025
d82a172
Add textures and fix api
Valentin22r Jun 24, 2025
fae875d
Use of obj3D instead of obj files to bypass ECS
ElectronicIV Jun 24, 2025
6520617
Setup imgui library build
Sigmanificient Jun 24, 2025
1a57b02
Show imgui demo frame
Sigmanificient Jun 24, 2025
4c2d8f6
Move SetupImGUIFrame to Demeter
ElectronicIV Jun 24, 2025
9a3dd68
Move destruction of ImGUI to SDL2 class
ElectronicIV Jun 24, 2025
ce97bc7
Add Object3d Transformation
ElectronicIV Jun 24, 2025
0a70427
Add Getter for entity pool in demeter
ElectronicIV Jun 24, 2025
558ffc0
Move funcs from hpp to cpp
ElectronicIV Jun 25, 2025
8ef0abf
Add SDL2 event management
ElectronicIV Jun 25, 2025
9c8249d
Add camera transformation
ElectronicIV Jun 25, 2025
3e2b69e
Add a moving Camera
Valentin22r Jun 25, 2025
77d43a9
Fix api to display the map with demeter
Valentin22r Jun 25, 2025
02e5a58
Fix logger info naming form info to inf
Valentin22r Jun 25, 2025
9383565
Fix deltatime computation
ElectronicIV Jun 25, 2025
ed7ae68
Add all item on the map
Valentin22r Jun 25, 2025
b207e6b
Rework camera transformation
ElectronicIV Jun 26, 2025
ca59920
Add sensitivity & velocity
ElectronicIV Jun 26, 2025
7218d35
Fix unintitialyzed value in demeter
ElectronicIV Jun 26, 2025
a74ee2b
Modify cube.obj3D with blender ver
ElectronicIV Jun 26, 2025
22c89d8
Modify ressources.obj3d with blender
ElectronicIV Jun 26, 2025
3781bce
Add Window resizing
ElectronicIV Jun 26, 2025
1c840c4
Fix Tilemap by initialising co
Valentin22r Jun 26, 2025
ba76bb4
Remove throws from SDL2
ElectronicIV Jun 26, 2025
1df4b76
Cleanup E_CameraControler unused code
ElectronicIV Jun 26, 2025
49926cb
Remove throws from Texture
ElectronicIV Jun 26, 2025
39a3b52
Remove throw from Mesh & Object3D
ElectronicIV Jun 26, 2025
6ee6248
Remove throw from Shader & Demeter
ElectronicIV Jun 26, 2025
21ac6e6
Remove useless files
ElectronicIV Jun 26, 2025
1cdb41c
Remove throw from Entities & Zappy
ElectronicIV Jun 26, 2025
b04dcf1
Complete merge from pr
Valentin22r Jun 26, 2025
df9b004
Add Ring event buffer for gui
ElectronicIV Jun 26, 2025
8413a3d
Add the Menu window
Valentin22r Jun 26, 2025
cc44fe0
Add the whole ImGui window in test
Valentin22r Jun 27, 2025
7d21d26
Calm down the stdout a bit
ElectronicIV Jun 27, 2025
2a4f054
Modify block texture
ElectronicIV Jun 27, 2025
752f662
Improve camera movement
ElectronicIV Jun 27, 2025
68a59a0
Add a better sub window
Valentin22r Jun 27, 2025
eec4f80
Fix API out of range with PIC
ElectronicIV Jun 28, 2025
92be379
Better poll check
ElectronicIV Jun 28, 2025
3779801
Move default camera pos
ElectronicIV Jun 28, 2025
7ab77d6
Stabilize API tilemap
ElectronicIV Jun 29, 2025
fe06cde
Calm debug down
ElectronicIV Jun 29, 2025
b4737fa
Cleanup grass texture
ElectronicIV Jun 29, 2025
aa1dad7
Add Player rendering
ElectronicIV Jun 29, 2025
0d97227
Set camera rotation to MMB
ElectronicIV Jun 29, 2025
a1273ed
Correct camera forward
ElectronicIV Jun 29, 2025
5b8d2c1
Fix texture bit per pixel rate
ElectronicIV Jun 29, 2025
76b13db
Increase the speed of the camera's zoom
ElectronicIV Jun 29, 2025
931c88c
Remove useless indent end
ElectronicIV Jun 29, 2025
ec60eda
Add colored rocks as ressources
ElectronicIV Jun 29, 2025
41268b0
ImGui tweeking for better UX
ElectronicIV Jun 29, 2025
6f9fd69
Add colors to all teams into the event panel
Valentin22r Jun 29, 2025
fc5a22a
Add colored team everywhere
Valentin22r Jun 29, 2025
0ee3f88
Add Egg support
ElectronicIV Jun 29, 2025
3f8de01
Increase The zoom speed again
ElectronicIV Jun 29, 2025
19aee04
Optimise texture size
ElectronicIV Jun 29, 2025
ee84dbd
Fix stoi parsing error
ElectronicIV Jun 29, 2025
bbc4fa5
Add team color to Trantorians
ElectronicIV Jun 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
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "gui/imgui"]
path = gui/imgui
url = git@github.com:ocornut/imgui
19 changes: 16 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,18 @@ LDFLAGS_gui != pkg-config --libs-only-L sdl2
LDLIBS_gui != pkg-config --libs-only-l sdl2 SDL2_image glew gl glu
CXXFLAGS_gui += $(shell pkg-config --cflags sdl2)

IMGUI_DIR ?= gui/imgui
IMGUI_SRC := $(wildcard $(IMGUI_DIR)/*.cpp)
IMGUI_SRC += $(IMGUI_DIR)/backends/imgui_impl_opengl3.cpp
IMGUI_SRC += $(IMGUI_DIR)/backends/imgui_impl_sdl2.cpp

IMGUI_INC += $(IMGUI_DIR) $(IMGUI_DIR)/backends

# Used to simplify the nix build
GUI_ASSET_DIR ?= assets

CXXFLAGS_gui += -DASSET_DIR='"$(GUI_ASSET_DIR)"'
CXXFLAGS_gui += $(foreach d,$(IMGUI_INC),-iquote $d)

MAKEFLAGS += --no-builtin-rules
MAKEFLAGS += --no-print-directory
Expand All @@ -59,9 +67,14 @@ NAME_gui_debug := debug_gui
NAME_gui_tests := tests_gui

EXTRA_SRC_gui_tests != find tests/gui -name "*.cpp"

EXTRA_SRC_server_tests != find tests/server -type f -name "*.c"

SRC_gui != find gui -type f -name "*.cpp" -not -path "gui/imgui/*"
SRC_gui += $(IMGUI_SRC)

SRC_server != find server -type f -name "*.c"


# call mk-bin, bin-name, profile, lang
# DOES THIS MAKE COFFEE NOW ??
define mk-bin
Expand All @@ -78,8 +91,8 @@ $(BUILD)/$(strip $2)/%.o: %.$(GENERIC_SUFFIX_$(strip $3))
$$(C_PURPLE)$$(notdir $$@) $$(C_RESET)"

out_$(strip $1)_$(strip $2) := $(NAME_$(strip $1)_$(strip $2))
src_$(strip $1)_$(strip $2) != \
find $(strip $1) -type f -name "*.$(GENERIC_SUFFIX_$(strip $3))"

src_$(strip $1)_$(strip $2) := $(SRC_$(strip $1))
src_$(strip $1)_$(strip $2) += $(EXTRA_SRC_$(strip $1)_$(strip $2))

objs_$(strip $1)_$(strip $2) := \
Expand Down
Loading