Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why draw-rectangle takes arguments of type integers instead of float? #46

Open
Oleg-Harput opened this issue Jun 4, 2023 · 1 comment

Comments

@Oleg-Harput
Copy link

draw-rectange arguments take integer but when we multiply it with get-frame-time the argument becomes float and we no longer put them into draw-rectangle.

@longlene
Copy link
Owner

longlene commented Jun 8, 2023

@Oleg-Harput It is decided by raylib, if you check the raylib.h for these signatures:

RLAPI void DrawRectangle(int posX, int posY, int width, int height, Color color);                        // Draw a color-filled rectangle

RLAPI float GetFrameTime(void);                                   // Get time in seconds for last frame drawn (delta time)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants