moved blitting over to blitbuffer API

the framebuffer "object" now has a "member" that exposes the blitbuffer
API for the framebuffer pixmap. This allows to reuse blitting & Co for
blitbuffer-to-blitbuffer operations
This commit is contained in:
HW
2011-12-02 01:31:13 +01:00
parent dfbdad5cbf
commit f739baff5f
8 changed files with 341 additions and 250 deletions

View File

@@ -5,16 +5,16 @@ width, height = fb:getSize()
print("open")
-- face = freetype.newBuiltinFace("Helvetica", 64)
face = freetype.newFace("test.ttf", 64)
face = freetype.newBuiltinFace("sans", 64)
--face = freetype.newFace("test.ttf", 64)
print("got face")
if face:hasKerning() then
print("has kerning")
end
renderUtf8Text(100,100,face,"h","AV T.T: gxyt!",true)
renderUtf8Text(100,200,face,"h","AV T.T: gxyt!",false)
renderUtf8Text(fb.bb, 100, 100, face, "h", "AV T.T: gxyt!", true)
renderUtf8Text(fb.bb, 100, 200, face, "h", "AV T.T: gxyt!", false)
fb:refresh()