-
Notifications
You must be signed in to change notification settings - Fork 207
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
push output to mmapped file #471
Comments
I don't think it's possible to do this directly, at least not portably. The framebuffer being written into is up to the GPU renderer to manage, and I don't think there's a well-defined way to make the GPU and file mmap both use the same RAM. Also, you would end up with a series of pixel color values with no width/height information, not an image file in a readable image format. The most relevant example code I can find is here, but it only writes to a regular file (using |
I don't need to worry about width and height, as I'm pulling that information from elsewhere, In fact, I'm actually looking for a byte-wise solution, so an uncompressed bitmap image. What you pointed out is almost exactly what I'm looking for, anyway, except that (I'm assuming here) it's compressed. |
Hi, I'm looking to draw an image into an
mmap
ped file, I'm not entirely sure where to go.Is this too vague or can someone explain how I'd go about this?
Thanks in advance
The text was updated successfully, but these errors were encountered: