浏览代码

Fix enum->alias for redefinition that dstep mistranslated

Steven Schveighoffer 10 月之前
父节点
当前提交
08a6b2f985
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      source/raylib/package.d

+ 1 - 1
source/raylib/package.d

@@ -1043,7 +1043,7 @@ void SetShaderValueTexture(Shader shader, int locIndex, Texture2D texture); // S
 void UnloadShader(Shader shader); // Unload shader from GPU memory (VRAM)
 void UnloadShader(Shader shader); // Unload shader from GPU memory (VRAM)
 
 
 // Screen-space-related functions
 // Screen-space-related functions
-enum GetMouseRay = GetScreenToWorldRay; // Compatibility hack for previous raylib versions
+alias GetMouseRay = GetScreenToWorldRay; // Compatibility hack for previous raylib versions
 Ray GetScreenToWorldRay(Vector2 position, Camera camera); // Get a ray trace from screen position (i.e mouse)
 Ray GetScreenToWorldRay(Vector2 position, Camera camera); // Get a ray trace from screen position (i.e mouse)
 Ray GetScreenToWorldRayEx(Vector2 position, Camera camera, int width, int height); // Get a ray trace from screen position (i.e mouse) in a viewport
 Ray GetScreenToWorldRayEx(Vector2 position, Camera camera, int width, int height); // Get a ray trace from screen position (i.e mouse) in a viewport
 Vector2 GetWorldToScreen(Vector3 position, Camera camera); // Get the screen space position for a 3d world space position
 Vector2 GetWorldToScreen(Vector3 position, Camera camera); // Get the screen space position for a 3d world space position