update for changes to blf module

This commit is contained in:
2010-04-27 19:46:15 +00:00
parent 124c55fcc3
commit cf8ebbf751

View File

@@ -4,10 +4,12 @@ import blf
def draw_callback_px(self, context):
print("mouse points", len(self.mouse_path))
font_id = 0 # XXX, need to find out how best to get this.
# draw some text
blf.position(15, 30, 0)
blf.size(20, 72)
blf.draw("Hello Word " + str(len(self.mouse_path)))
blf.position(font_id, 15, 30, 0)
blf.size(font_id, 20, 72)
blf.draw(font_id, "Hello Word " + str(len(self.mouse_path)))
# 50% alpha, 2 pixel width line
bgl.glEnable(bgl.GL_BLEND)