Skip to content

Commit 1138e49

Browse files
authored
Update World_To_Screen.cpp
1 parent 54de1ea commit 1138e49

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/World_To_Screen.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
// Type of ViewMatrix - 4x4->16 item array, its 64 byte, because of floats 4byte
23
// ViewMatrix değişken tipi. 4x4->16 elemanlı array. 64 byte boyutunda, çünkü float değerler 4 byte
34
struct ViewMatrix_t{
@@ -22,8 +23,8 @@ Vector3 WorldToScreen(Vector3 pos){
2223
_x *= inv_w;
2324
_y *= inv_w;
2425

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);
26+
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
2728

2829
result.x = width * .5f;
2930
result.y = height * .5f;

0 commit comments

Comments
 (0)