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
Copy file name to clipboardExpand all lines: docs/FAQ.md
+15-2
Original file line number
Diff line number
Diff line change
@@ -178,8 +178,21 @@ Rectangles provided by Dear ImGui are defined as
178
178
`(x1=left,y1=top,x2=right,y2=bottom)`
179
179
and **NOT** as
180
180
`(x1,y1,width,height)`.
181
-
Refer to rendering backends in the [examples/](https://github.com/ocornut/imgui/tree/master/examples) folder for references of how to handle the `ClipRect` field.
182
-
181
+
Refer to rendering backends in the [backends/](https://github.com/ocornut/imgui/tree/master/backends) folder for references of how to handle the `ClipRect` field.
182
+
For example, the [DirectX11 backend](https://github.com/ocornut/imgui/blob/master/backends/imgui_impl_dx11.cpp) does this:
183
+
```cpp
184
+
// Project scissor/clipping rectangles into framebuffer space
0 commit comments