Skip to content

Create a texture exactly under the mouse? #294

Answered by parasyte
tseli0s asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure exactly what your goal is. A "texture" has a very specific meaning in graphics APIs and positioning them requires applying a transformation matrix to it in a shader. pixels does not give you access to textures and shaders in the traditional graphics model. You are only given an array of bytes and it is up to you to plot pixels within the array. The reason for this is because pixels is designed for writing emulators and software renderers. I can't be certain if you intend to plot pixels, but it's safest to not make assumptions.

So, with that out of the way, do you actually want to plot pixels? Or do you want a higher-level abstraction that gives you control over concepts like …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tseli0s
Comment options

Answer selected by tseli0s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants