You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear ImGui does not have native CMake support, and while adding the sources to the executable is an option, we will add it as an external library target: `imgui` to isolate it (and compile warnings etc) from our own code. This requires some changes to the `ext` target structure, since `imgui` will itself need to link to GLFW and Vulkan-Headers, have `VK_NO_PROTOTYPES` defined, etc. `learn-vk-ext` then links to `imgui`and any other libraries (currently only `glm`). We are using Dear ImGui v1.91.9, which has decent support for Dynamic Rendering.
3
+
Dear ImGui는 네이티브 CMake를 지원하지 않기 때문에, 소스를 실행 파일에 직접 추가하는 방법도 있지만, 컴파일 경고 등에서 우리 코드와 분리하기 위해 외부 라이브러리 타겟인 `imgui`로 추가할 예정입니다. 이를 위해 `imgui`는 GLFW 및 Vulkan-Headers에 연결되어야 하고, `VK_NO_PROTOTYPES`도 정의되어야 하므로 `ext` 타겟 구조에 약간의 변경이 필요합니다. 이후 `learn-vk-ext`는 `imgui`및 기타 라이브러리들(현재는 `glm`만 있음)과 연결됩니다. 우리는 동적 렌더링을 지원하는 Dear ImGui v1.91.9 버전을 사용할 예정입니다.
Copy file name to clipboardExpand all lines: guide/translations/ko-KR/src/dear_imgui/dear_imgui.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# class DearImGui
2
2
3
-
Dear ImGui has its own initialization and loop, which we encapsulate into `class DearImGui`:
3
+
Dear ImGui는 자체적인 초기화 과정과 렌더링 루프를 가지고 있으며, 이를 `class DearImGui`로 캡슐화하겠습니다.
4
4
5
5
```cpp
6
6
structDearImGuiCreateInfo {
@@ -38,7 +38,7 @@ class DearImGui {
38
38
};
39
39
```
40
40
41
-
In the constructor, we start by creating the ImGui Context, loading Vulkan functions, and initializing GLFW for Vulkan:
41
+
생성자에서는 ImGui 컨텍스트를 생성하고, Vulkan 함수를 불러와 Vulkan을 위한 GLFW 초기화를 진행합니다
42
42
43
43
```cpp
44
44
IMGUI_CHECKVERSION();
@@ -57,7 +57,7 @@ if (!ImGui_ImplGlfw_InitForVulkan(create_info.window, true)) {
57
57
}
58
58
```
59
59
60
-
Then initialize Dear ImGui for Vulkan:
60
+
그 후 Vulkan용 Dear ImGui를 초기화합니다.
61
61
62
62
```cpp
63
63
auto init_info = ImGui_ImplVulkan_InitInfo{};
@@ -83,7 +83,7 @@ if (!ImGui_ImplVulkan_Init(&init_info)) {
83
83
ImGui_ImplVulkan_CreateFontsTexture();
84
84
```
85
85
86
-
Since we are using an sRGB format and Dear ImGui is not color-space aware, we need to convert its style colors to linear space (so that they shift back to the original values by gamma correction):
86
+
sRGB 포맷을 사용하고 있지만 Dear ImGui는 색상 공간에 대한 인식이 없기 때문에, 스타일 색상들을 선형 공간으로 변환해주어야 합니다. 이렇게 하면 감마 보정 과정을 통해 의도한 색상이 출력됩니다.
87
87
88
88
```cpp
89
89
ImGui::StyleColorsDark();
@@ -96,7 +96,7 @@ for (auto& colour : ImGui::GetStyle().Colors) {
96
96
ImGui::GetStyle().Colors[ImGuiCol_WindowBg].w = 0.99f; // more opaque
97
97
```
98
98
99
-
Finally, create the deleter and its implementation:
`class App` can now store a `std::optional<DearImGui>`member and add/call its create function:
11
+
`class App`은 이제 `std::optional<DearImGui>`멤버를 담을 수 있으며, 이를 생성하는 함수를 추가하고 호출할 수 있습니다.
12
12
13
13
```cpp
14
14
voidApp::create_imgui() {
@@ -27,7 +27,7 @@ void App::create_imgui() {
27
27
}
28
28
```
29
29
30
-
Start a new ImGui frame after resetting the render fence, and show the demo window:
30
+
렌더 패스를 리셋한 이후에 새로운 ImGui 프레임을 시작하고, 데모 창을 띄워봅시다.
31
31
32
32
```cpp
33
33
m_device->resetFences(*render_sync.drawn);
@@ -40,9 +40,9 @@ ImGui::ShowDemoWindow();
40
40
command_buffer.endRendering();
41
41
```
42
42
43
-
ImGui doesn't draw anything here (the actual draw command requires the Command Buffer), it's just a good customization point for all higher level logic.
43
+
ImGui는 이 시점에서는 아무것도 그리지 않습니다(실제 그리기 명령은 커맨드 버퍼가 필요합니다). 이 부분은 상위 로직을 구성하기 위한 커스터마이징 지점입니다.
44
44
45
-
We use a separate render pass for Dear ImGui, again for isolation, and to enable us to change the main render pass later, eg by adding a depth buffer attachment (`DearImGui` is setup assuming its render pass will only use a single color attachment).
45
+
우리는 Dear ImGui를 위한 별도의 렌더 패스를 사용합니다. 이는 코드의 분리를 위한 목적도 있고, 메인 렌더 패스를 나중에 깊이 버퍼를 추가하는 것과 같은 상황에 변경할 수 있도록 하기 위함입니다 `DearImGui`는 하나의 색상 어태치먼트만 사용하는 전용 렌더 패스를 설정한다고 간주합니다.
0 commit comments