On 19 May 2010 01:21, Fernando olivero <oliverof@lu.unisi.ch> wrote:
On May 19, 2010, at 12:03 AM, Igor Stasenko wrote:
On 19 May 2010 00:21, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
rome is a new api for rendering image and text. the idea is to offer a common api and several backends     one would balloon     another would be cairo/pango     a third one could be morphic30 primitives
- a fourth one is direct OpenGL backend :)
OpenGL would be a nice backend indeed.
But the text rendering would be missing, in the OpenGLCanvas part of ROME, and would have to be taken from another library? When i wanted to add text rendering over OpenGL for Lumiere, i saw a couple of external libraries for freetype2 rendering. Just by curiosity, did you have something in mind regarding this?
I do: http://http.developer.nvidia.com/GPUGems3/gpugems3_ch25.html Freetype having an API to extract the vector data from glyphs. So, the only thing what is needed is to convert & pass that data directly on GPU, and don't bother wasting time with pixels. For raster fonts, its even simpler - just use textures.
Regards, Fernando _______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Best regards, Igor Stasenko AKA sig.