Browse Source

Fix enum->alias for redefinition that dstep mistranslated

Steven Schveighoffer 10 months ago
parent
commit
08a6b2f985
1 changed files with 1 additions and 1 deletions
  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)
 
 // 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 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