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

Demand pixel access #18

Closed
p0nce opened this issue Aug 24, 2022 · 1 comment
Closed

Demand pixel access #18

p0nce opened this issue Aug 24, 2022 · 1 comment
Labels
question Further information is requested

Comments

@p0nce
Copy link
Collaborator

p0nce commented Aug 24, 2022

Suppose that before using pixels, we call a lock/unlock sequence similar to https://wiki.libsdl.org/SDL_LockSurface
Accessing pixels would only be allowed within these calls.

Then with a callback and the user pointer method, we can support any kind of lazy on-demand image.

Ideally a subimage access can be granted.
Ideally this match GPU buffer access.

@p0nce p0nce added the question Further information is requested label Aug 24, 2022
@p0nce
Copy link
Collaborator Author

p0nce commented Oct 19, 2022

meh, not sure it will be a problem. This is not a CPU/GPU image abstraction, just a CPU image abstraction.

@p0nce p0nce closed this as completed Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant