We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54de1ea commit 1138e49Copy full SHA for 1138e49
examples/World_To_Screen.cpp
@@ -1,3 +1,4 @@
1
+
2
// Type of ViewMatrix - 4x4->16 item array, its 64 byte, because of floats 4byte
3
// ViewMatrix değişken tipi. 4x4->16 elemanlı array. 64 byte boyutunda, çünkü float değerler 4 byte
4
struct ViewMatrix_t{
@@ -22,8 +23,8 @@ Vector3 WorldToScreen(Vector3 pos){
22
23
_x *= inv_w;
24
_y *= inv_w;
25
- int width = (int)(g_pOverlay->overlay_rect.right - g_pOverlay->overlay_rect.left);
26
- int height = (int)(g_pOverlay->overlay_rect.bottom - g_pOverlay->overlay_rect.top);
+ int width = (int)(g_pOverlay->overlay_rect.right - g_pOverlay->overlay_rect.left); // width of overlay window
27
+ int height = (int)(g_pOverlay->overlay_rect.bottom - g_pOverlay->overlay_rect.top); // height of overlay window
28
29
result.x = width * .5f;
30
result.y = height * .5f;
0 commit comments