Skip to content

Commit 3e78cbe

Browse files
authored
Add a code block for the GLFW window pointer. (#413)
Almost all of the code listed in this chapter uses a c++ code block. The block for the 'GLFWWindow* window' was missing.
1 parent c7ec526 commit 3e78cbe

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

en/03_Drawing_a_triangle/00_Setup/00_Base_code.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,14 @@ disable it for now with another window hint call:
145145
glfwWindowHint(GLFW_RESIZABLE, GLFW_FALSE);
146146
```
147147
148-
All that's left now is creating the actual window. Add a `GLFWwindow* window;`
149-
private class member to store a reference to it and initialize the window with:
148+
All that's left now is creating the actual window. Add a private class member to store a reference to it:
149+
150+
```c++
151+
private:
152+
GLFWwindow* window;
153+
```
154+
155+
Initialize the window with
150156

151157
```c++
152158
window = glfwCreateWindow(800, 600, "Vulkan", nullptr, nullptr);

0 commit comments

Comments
 (0)