Module conrod::backend::graphics
[−]
[src]
Conrod's generic graphics backend.
Note: Conrod currently uses Piston's generic graphics crate (and specifically the Graphics) and CharacterCache traits to enable genericity over custom user backends. This dependency may change in the near future in favour of a simplified conrod-specific graphics and character caching backend trait.
This is the only module in which the piston graphics crate will be used directly.
Structs
Character |
Holds rendered character data. |
Context |
Drawing 2d context. |
DrawState |
Graphics draw state used for blending, clipping and stencil rendering. |
Traits
CharacterCache |
Stores characters in a buffer and loads them by demand. |
Graphics |
Implemented by all graphics back-ends. |
ImageSize |
Implemented by all images to be used with generic algorithms. |
Transformed |
Implemented by contexts that can transform. |
Functions
conrod_rect_to_graphics_rect |
Converts a conrod |
draw_from_container |
Use the given CharacterCache and Graphics backends to draw the given widget. |
draw_from_graph |
Draw the given Graph using the given CharacterCache and Graphics backends. |
draw_lines |
Draw a series of lines between the given Points using the given style. |
draw_rectangle |
Draw a rectangle at the given Rect. |