Skip to content
Merged
Changes from all commits
Commits
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
10 changes: 8 additions & 2 deletions en/03_Drawing_a_triangle/00_Setup/00_Base_code.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,14 @@ disable it for now with another window hint call:
glfwWindowHint(GLFW_RESIZABLE, GLFW_FALSE);
```

All that's left now is creating the actual window. Add a `GLFWwindow* window;`
private class member to store a reference to it and initialize the window with:
All that's left now is creating the actual window. Add a private class member to store a reference to it:

```c++
private:
GLFWwindow* window;
```

Initialize the window with

```c++
window = glfwCreateWindow(800, 600, "Vulkan", nullptr, nullptr);
Expand Down