[Bf-committers] BLF_draw_default not working
greeniekin at gmail.com
Wed Sep 8 11:17:32 CEST 2010
I have never programmed in blender before. so I am unfamiliar with how
Anyway I was playing with screencast and noticed you could not see
users cursor. I decided to fix this by adding a cursor drawn in
opengl(which would get saved in the video file) and add a display of
key's being pressed
I just wanted to do a quick job by doing it just before the buffer was flipped.
so in wm_window.c
in void wm_window_swap_buffers(wmWindow *win)
i made a triangle at cursor position. all well and good and it worked.
I then added a linked list adding an element every time a key was
pressed removing it when it was lifted which worked all good.
Then i tried to print text to the screen. someone told me
BLF_draw_default was the way to go
And no matter how i call it. it will not work
even something like BLF_draw_default(2, 2, 0.0f, "x");
does not work
I've been going crazy trying to get it works for hours and hours.
If anyone can tell me how to get it to work or why it wont work when
being called in
void wm_window_swap_buffers(wmWindow *win)
I will be extremely grateful.
here is a quick look of what i have so far
More information about the Bf-committers