Twinside / Rasterific

A drawing engine in Haskell
BSD 3-Clause "New" or "Revised" License
140 stars 11 forks source link

Feature: OpenGL backend? #16

Closed schell closed 10 years ago

schell commented 10 years ago

Do you have any plans for expanding rasterific to include an OpenGL backend? If not, I would like to try - though it may be a task that's a bit beyond my skill level. Could you offer any guidance as a good place to start? Thanks :)

Twinside commented 10 years ago

Right now the plan is to optimize the CPU code, their is some huge improvements to do. I don't know how many time it should take. I want to provide an "immediate" mode to avoid passing through a scene tree representation, that should open use of the library by various plotters.

For the GPU backend, there are some papers from nVidia about bezier rasterization on the GPU floating around. I didn't had time to look deeply into it, but I guess that would be a starting point. The "texture" part would imply to create some shaders on the fly, maybe creating 1D texture for gradients.

schell commented 10 years ago

Okay, thank you :+1: I'll come back to this at a later date :)