-
Notifications
You must be signed in to change notification settings - Fork 48
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
Rework documentation for Surface::set_buffer
#57
base: master
Are you sure you want to change the base?
Conversation
/// G: Green channel | ||
/// B: Blue channel | ||
/// ``` | ||
/// fn pixel(red: u8, green: u8, blue: u8) -> u32 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent addition to have this pre-made example function. I'm not sure if this is the right place for it. Perhaps it should be in an example instead, or just callable as a pub fn in softbuffer. I think that this is ultimately the best place for it, but I'm not certain so I wanted to call attention to this choice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The utility of this function being publicly accessible is probably quite low as it is extremely generic. Plus this may change eventually if other pixel formats are supported.
b89520f
to
f320021
Compare
This includes a more clear description of the pixel format expected.
raw-window-handle 0.5.1 requires 1.64, so we have no real choice here.
af8a30e
to
8e85b8d
Compare
Wait what, why does github only allow me to request one reviewer but not multiple... |
GraphicsContext::set_buffer
Surface::set_buffer
@i509VCB I will accept this PR if it is rebased and rewritten to apply to the |
This includes a more clear description of the pixel format expected.