-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
+ change render layer & imgui by RHI
+ now we can render GLTF ? [editor] has bug(due to imgui)
- Loading branch information
Showing
140 changed files
with
10,560 additions
and
4,751 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
.* | ||
cmake-build* | ||
compile_commands.json | ||
sandbox | ||
sandbox | ||
imgui.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule gecs
updated
4 files
+96 −40 | src/gecs/core/utility.hpp | |
+1 −1 | src/gecs/entity/querier.hpp | |
+6 −5 | src/gecs/entity/registry.hpp | |
+1 −1 | test/core/utility.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
aux_source_directory(./ imgui_src) | ||
aux_source_directory(./backends imgui_backends) | ||
|
||
add_library(imgui STATIC) | ||
target_sources(imgui PRIVATE ${imgui_src} ${imgui_backends}) | ||
target_sources(imgui PRIVATE ${imgui_src}) | ||
|
||
add_subdirectory(backends/sdl2) | ||
add_subdirectory(backends/gl3) | ||
if (TARGET Vulkan) | ||
add_subdirectory(backends/vk) | ||
target_link_libraries(imgui PUBLIC imgui_backend_gl3 imgui_backend_vk) | ||
endif() | ||
|
||
target_link_libraries(imgui PUBLIC imgui_backend_gl3 imgui_backend_sdl2) | ||
target_include_directories(imgui PUBLIC ./) | ||
|
||
target_include_directories(imgui PUBLIC ./ backends) | ||
target_link_libraries(imgui PUBLIC SDL2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
add_library(imgui_backend_android STATIC imgui_impl_android.cpp) | ||
target_include_directories(imgui_backend_android PUBLIC .) | ||
target_include_directories(imgui_backend_android PRIVATE ../../) |
307 changes: 307 additions & 0 deletions
307
3rdlibs/imgui/dear-imgui/backends/android/imgui_impl_android.cpp
Large diffs are not rendered by default.
Oops, something went wrong.
37 changes: 37 additions & 0 deletions
37
3rdlibs/imgui/dear-imgui/backends/android/imgui_impl_android.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// dear imgui: Platform Binding for Android native app | ||
// This needs to be used along with the OpenGL 3 Renderer (imgui_impl_opengl3) | ||
|
||
// Implemented features: | ||
// [X] Platform: Keyboard support. Since 1.87 we are using the io.AddKeyEvent() function. Pass ImGuiKey values to all key functions e.g. ImGui::IsKeyPressed(ImGuiKey_Space). [Legacy AKEYCODE_* values will also be supported unless IMGUI_DISABLE_OBSOLETE_KEYIO is set] | ||
// [X] Platform: Mouse support. Can discriminate Mouse/TouchScreen/Pen. | ||
// Missing features: | ||
// [ ] Platform: Clipboard support. | ||
// [ ] Platform: Gamepad support. Enable with 'io.ConfigFlags |= ImGuiConfigFlags_NavEnableGamepad'. | ||
// [ ] Platform: Mouse cursor shape and visibility. Disable with 'io.ConfigFlags |= ImGuiConfigFlags_NoMouseCursorChange'. FIXME: Check if this is even possible with Android. | ||
// [ ] Platform: Multi-viewport support (multiple windows). Not meaningful on Android. | ||
// Important: | ||
// - Consider using SDL or GLFW backend on Android, which will be more full-featured than this. | ||
// - FIXME: On-screen keyboard currently needs to be enabled by the application (see examples/ and issue #3446) | ||
// - FIXME: Unicode character inputs needs to be passed by Dear ImGui by the application (see examples/ and issue #3446) | ||
|
||
// You can use unmodified imgui_impl_* files in your project. See examples/ folder for examples of using this. | ||
// Prefer including the entire imgui/ repository into your project (either as a copy or as a submodule), and only build the backends you need. | ||
// Learn about Dear ImGui: | ||
// - FAQ https://dearimgui.com/faq | ||
// - Getting Started https://dearimgui.com/getting-started | ||
// - Documentation https://dearimgui.com/docs (same as your local docs/ folder). | ||
// - Introduction, links and more at the top of imgui.cpp | ||
|
||
#pragma once | ||
#include "imgui.h" // IMGUI_IMPL_API | ||
#ifndef IMGUI_DISABLE | ||
|
||
struct ANativeWindow; | ||
struct AInputEvent; | ||
|
||
IMGUI_IMPL_API bool ImGui_ImplAndroid_Init(ANativeWindow* window); | ||
IMGUI_IMPL_API int32_t ImGui_ImplAndroid_HandleInputEvent(const AInputEvent* input_event); | ||
IMGUI_IMPL_API void ImGui_ImplAndroid_Shutdown(); | ||
IMGUI_IMPL_API void ImGui_ImplAndroid_NewFrame(); | ||
|
||
#endif // #ifndef IMGUI_DISABLE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
add_library(imgui_backend_gl3 STATIC imgui_impl_opengl3.cpp) | ||
target_include_directories(imgui_backend_gl3 PUBLIC .) | ||
target_include_directories(imgui_backend_gl3 PRIVATE ../../) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
add_library(imgui_backend_sdl2 STATIC imgui_impl_sdl2.cpp) | ||
target_include_directories(imgui_backend_sdl2 PUBLIC .) | ||
target_link_libraries(imgui_backend_sdl2 PUBLIC SDL2) | ||
target_include_directories(imgui_backend_sdl2 PRIVATE ../../) |
Oops, something went wrong.