/elec/propeller-clock

To get this branch, use:
bzr branch http://bzr.ed.am/elec/propeller-clock

« back to all changes in this revision

Viewing changes to src/text_renderer.h

  • Committer: edam
  • Date: 2012-02-29 21:56:32 UTC
  • Revision ID: edam@waxworlds.org-20120229215632-kypb9491vx7bicef
moved some stuf round, created a re-usable pool of message buffers, genericised "modes" for messages

Show diffs side-by-side

added added

removed removed

44
44
         * Draw a column of pixels at pixel-offset x in the message.
45
45
         *
46
46
         * @param message the message
47
 
         * @param message_len the length of the message (to save it being
48
 
         *              calculated)
 
47
         * @param message_len the length of the message (to save it being calculated)
49
48
         * @param x the pixel column of the message to draw
50
49
         * @param y_flip true to draw up-side down
51
50
         * @param y_shift shift the drawing up/down
58
57
         */
59
58
        void reset_buffer();
60
59
 
61
 
 
62
 
        /**
63
 
         * Notify renderer that the output buffer will require rendering.
64
 
         */
65
 
        void buffer_in_use();
66
 
 
67
 
 
68
60
        /**
69
61
         * Output the output buffer (and reset the output buffer).
70
62
         */
71
63
        void output_buffer();
72
64
 
73
 
        /**
74
 
         * Get the font number in use.
75
 
         *
76
 
         * @return font number
77
 
         */
78
 
        int get_font();
79
 
 
80
 
        /**
81
 
         * Switch to the next font.
82
 
         */
83
 
        void inc_font();
84
 
 
85
65
};
86
66
 
87
67