update for changes to blf module
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user