Skip to content

Commit 5903fa1

Browse files
committed
ko-translate ImGui
1 parent 94dc440 commit 5903fa1

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Dear ImGui
22

3-
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 버전을 사용할 예정입니다.

guide/translations/ko-KR/src/dear_imgui/dear_imgui.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# class DearImGui
22

3-
Dear ImGui has its own initialization and loop, which we encapsulate into `class DearImGui`:
3+
Dear ImGui는 자체적인 초기화 과정과 렌더링 루프를 가지고 있으며, 이를 `class DearImGui`로 캡슐화하겠습니다.
44

55
```cpp
66
struct DearImGuiCreateInfo {
@@ -38,7 +38,7 @@ class DearImGui {
3838
};
3939
```
4040
41-
In the constructor, we start by creating the ImGui Context, loading Vulkan functions, and initializing GLFW for Vulkan:
41+
생성자에서는 ImGui 컨텍스트를 생성하고, Vulkan 함수를 불러와 Vulkan을 위한 GLFW 초기화를 진행합니다
4242
4343
```cpp
4444
IMGUI_CHECKVERSION();
@@ -57,7 +57,7 @@ if (!ImGui_ImplGlfw_InitForVulkan(create_info.window, true)) {
5757
}
5858
```
5959

60-
Then initialize Dear ImGui for Vulkan:
60+
그 후 Vulkan용 Dear ImGui를 초기화합니다.
6161

6262
```cpp
6363
auto init_info = ImGui_ImplVulkan_InitInfo{};
@@ -83,7 +83,7 @@ if (!ImGui_ImplVulkan_Init(&init_info)) {
8383
ImGui_ImplVulkan_CreateFontsTexture();
8484
```
8585

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는 색상 공간에 대한 인식이 없기 때문에, 스타일 색상들을 선형 공간으로 변환해주어야 합니다. 이렇게 하면 감마 보정 과정을 통해 의도한 색상이 출력됩니다.
8787

8888
```cpp
8989
ImGui::StyleColorsDark();
@@ -96,7 +96,7 @@ for (auto& colour : ImGui::GetStyle().Colors) {
9696
ImGui::GetStyle().Colors[ImGuiCol_WindowBg].w = 0.99f; // more opaque
9797
```
9898

99-
Finally, create the deleter and its implementation:
99+
마지막으로 삭제자(Deleter)를 생성하고 구현합니다.
100100

101101
```cpp
102102
m_device = Scoped<vk::Device, Deleter>{create_info.device};
@@ -111,7 +111,7 @@ void DearImGui::Deleter::operator()(vk::Device const device) const {
111111
}
112112
```
113113

114-
The remaining functions are straightforward:
114+
이 외의 나머지 함수들은 비교적 단순합니다.
115115

116116
```cpp
117117
void DearImGui::new_frame() {

guide/translations/ko-KR/src/dear_imgui/imgui_integration.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# ImGui Integration
1+
# ImGui 통합
22

3-
Update `Swapchain` to expose its image format:
3+
`Swapchain`이 이미지 포맷을 외부에 노출하도록 수정하겠습니다.
44

55
```cpp
66
[[nodiscard]] auto get_format() const -> vk::Format {
77
return m_ci.imageFormat;
88
}
99
```
1010

11-
`class App` can now store a `std::optional<DearImGui>` member and add/call its create function:
11+
`class App`은 이제 `std::optional<DearImGui>` 멤버를 담을 수 있으며, 이를 생성하는 함수를 추가하고 호출할 수 있습니다.
1212

1313
```cpp
1414
void App::create_imgui() {
@@ -27,7 +27,7 @@ void App::create_imgui() {
2727
}
2828
```
2929

30-
Start a new ImGui frame after resetting the render fence, and show the demo window:
30+
렌더 패스를 리셋한 이후에 새로운 ImGui 프레임을 시작하고, 데모 창을 띄워봅시다.
3131

3232
```cpp
3333
m_device->resetFences(*render_sync.drawn);
@@ -40,9 +40,9 @@ ImGui::ShowDemoWindow();
4040
command_buffer.endRendering();
4141
```
4242
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는 이 시점에서는 아무것도 그리지 않습니다(실제 그리기 명령은 커맨드 버퍼가 필요합니다). 이 부분은 상위 로직을 구성하기 위한 커스터마이징 지점입니다.
4444
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`는 하나의 색상 어태치먼트만 사용하는 전용 렌더 패스를 설정한다고 간주합니다.
4646
4747
```cpp
4848
m_imgui->end_frame();

0 commit comments

Comments
 (0)