GitHub PushEvent at 2014-09-23 15:28:01
Repository: moui
Actor: olliwang
Payload: {"shas":[["507e6dd48eb4683a85f876a35d2aa7490954205e","bfa11db0f8e459e3f351c54cdccd878b2350ce83@ollix.com","Implements the mechaism of rendering a control.\n\nThe Control class now takes control of how to render the appearance of different control states in Render() and which is not allowed to overwrite in subclasses anymore. Because of this, Control objects are required to bind a function for rendering a specific control state through BindRenderFunction().\n\nBasically, no render function is required for any state. However, if there is no render function for the normal state, whilte background will be filled automatically, and if there is no render function for the selected state, the normal state will be rendered instead.\n\nThe Control class also renders default look for highlgihted and disabled states automatically based on normal and selected states if the corresponded render function is not binded. For disabled state, an alpha value will simply be applied. For highlighted state, the transparent black foreground will be added.\n\nThe code for generating the default look of highlighted state is implemented in GenerateDefaultHighlightedImage(). It renders the highlighted image offscreen through FBO. To do so, two new custom functions are implmeneted in `nanovg_hook.cc` for exapnding the nanovg API.","Olli Wang",true]],"size":1,"ref":"refs/heads/master","head":"507e6dd48eb4683a85f876a35d2aa7490954205e"}