2
0
Эх сурвалжийг харах

Merge branch 'main' of github.com:raylib-extras/rlImGui

Jeffery Myers 1 жил өмнө
parent
commit
ad3a1243eb
1 өөрчлөгдсөн 5 нэмэгдсэн , 0 устгасан
  1. 5 0
      examples/editor.cpp

+ 5 - 0
examples/editor.cpp

@@ -197,8 +197,13 @@ public:
 	{
 		BeginTextureMode(ViewTexture);
 		ClearBackground(BLUE);
+
+		// camera with our view offset with a world origin of 0,0
 		BeginMode2D(Camera);
+
+		// center the image at 0,0
 		DrawTexture(ImageTexture, ImageTexture.width / -2, ImageTexture.height / -2, WHITE);
+
 		EndMode2D();
 		EndTextureMode();
 	}