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

Is there a way to draw graphics to ImageBuffers or Textures? #1070

Open
radix opened this issue Dec 13, 2016 · 6 comments
Open

Is there a way to draw graphics to ImageBuffers or Textures? #1070

radix opened this issue Dec 13, 2016 · 6 comments

Comments

@radix
Copy link

radix commented Dec 13, 2016

I haven't been able to find any obvious way to use graphics calls with ImageBuffers, but I may be missing some way to do it -- is it possible at all now?

If it's not, would it be a good idea to have an implementation of Graphics for ImageBuffer?

@bvssvni
Copy link
Member

bvssvni commented Dec 13, 2016

I've started working a software rasterizer that implements Graphics. Not sure about the design yet. Some issues:

  • Need a color buffer (rgba) and stencil buffer (u8)
  • Need to wrap image buffers in a new type that implements ImageSize

@ishitatsuyuki
Copy link

Should we do it with software? This is commonly achieved by a separate framebuffer; afaik gfx supports it from years ago.

@lilith
Copy link

lilith commented Aug 3, 2017

I'd love to use this in an http server. Is that possible at the moment?

@bvssvni
Copy link
Member

bvssvni commented Aug 4, 2017

I believe it's possible, but it depends on the graphics backend.

@ivansandrk
Copy link

Sorry for bringing this one up again, is there a relatively simple way to draw graphics (like a line) to a texture which later gets drawn to the window (eg. via draw_2d)?

@bvssvni
Copy link
Member

bvssvni commented Oct 21, 2018

@ivansandrk I think you need to configure OpenGL to use a texture for rendering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants