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

Add checks #32

Open
Brian-ED opened this issue Mar 18, 2024 · 2 comments
Open

Add checks #32

Brian-ED opened this issue Mar 18, 2024 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@Brian-ED
Copy link
Owner

raylib has some checking functions inbuilt, like isFontReady, IsImage, IsTexture, etc. Using these and maybe some extra we could validate a lot of function's inputs "properly".

Though the raylib validity functions are honestly not great, they just check if pointers are null and size is over 0 and such... but size of images can very well be 0, why would that be invalid? probably need to reimplement some of the checks.

@Brian-ED Brian-ED added enhancement New feature or request good first issue Good for newcomers labels Mar 18, 2024
@Brian-ED
Copy link
Owner Author

raylib.isAudioDeviceReady can also be implemented for _withAudio after init-ing audio device

@Brian-ED
Copy link
Owner Author

Brian-ED commented Mar 18, 2024

(And isWaveReady, isSoundReady, isMusicReady, isAudioStreamReady, isShaderReady, isTextureReady, isRenderTextureReady, isModelReady, isMaterialReady)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant