-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Pixel Format Enums are missing #81
Comments
Hm it may need to be added back |
I think you can try this for temporal workaround:
|
My solution for this is using Took inspiration from a code example that I couldn't find back atm :( |
|
I am trying to create texture using the texture creator of a canvas
let mut texture = creator.create_texture_target(PixelFormat::RGB24, 256, 240).unwrap();
However, there is no such const/enum called
PixelFormat::RGB24
.Interestingly, it was mentioned in the documentation on create_texture_from_surface
let surface = Surface::new(512, 512, PixelFormat::RGB24).unwrap();
What is preferred way to do this for sdl3?
The text was updated successfully, but these errors were encountered: