Eliminate lifetime annotations in World and Text
authorBernie Innocenti <codewiz@google.com>
Tue, 21 Jan 2020 15:34:04 +0000 (00:34 +0900)
committerBernie Innocenti <codewiz@google.com>
Tue, 21 Jan 2020 15:34:04 +0000 (00:34 +0900)
commite9e7cd8e1e90283ce87a42a4f72883f808a67d20
tree76ee8d18d91263b451e9390fbaacffa1a8ef488b
parent3024c5dfb352a3f9011a5ce9aa50fe7dc1a2e013
Eliminate lifetime annotations in World and Text

Changing the lifetime of glium::DrawParameters to 'static did the trick.
Poof! No need carry around lifetime annotations everywhere.

Also removed Display from World, which paves the way for rendering World
onto multiple displays at once (think VR or video streaming...)
main.rs
text.rs