This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository Direct3D.wiki.
View the commit online.
commit 208168fae0e027b9960900b3f5167897c99f6732
Author: Vincent Torri <vincent.to...@gmail.com>
AuthorDate: Thu Jul 27 14:08:07 2023 -0700
Update 'Direct3D 11 for 2D'
---
Direct3D-11-for-2D.md | 25 ++++++++++++++++++++++++-
1 file changed, 24 insertions(+), 1 deletion(-)
diff --git a/Direct3D-11-for-2D.md b/Direct3D-11-for-2D.md
index e5cf502..dacceb3 100644
--- a/Direct3D-11-for-2D.md
+++ b/Direct3D-11-for-2D.md
@@ -402,4 +402,27 @@ int main()
return 0;
}
-```
\ No newline at end of file
+```
+
+When the program is launched, you should obtain a window with a white background, like this:
+
+Some actions are implemented:
+
+* Press the key 'q' to quit the program.
+* Press the key 'f' to switch fullscreen / windowed mode
+* Press the key 'r' to rotate clock-wise the window with steps of 90 °. This will be useful when something will be drawn in the window. For now, the only change will be the orientation of the window.
+
+Some remarks:
+
+1. The macro HAVE_WIN10 will be defined when the program is compiled for Windows 10. Otherwise we suppose Windows 7.
+2. The macro _WIN32_WINNT is set to 0x0A00 to specify the version 10 of Windows. Comment it to specify Windows 7.
+3. The macro _DEBUG will be used for Direct3D only.
+4. The High DPI scaling is removed on Windows 10 (line 176).
+5. The WM_SIZE message will be used to adapt the size of some of the Direct3D objects, namely:
+ * the viewport,
+ * the swap chain,
+ * the render target view.
+6. The WM_PAINT will be used to render the scene.
+7. There are some optimizations to avoid the redraw of the window background when it is resized:
+ * the WM_ERASEBKGND massage is managed,
+ * the brush of the window class is set to NULL.
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.