mirror of
https://github.com/italicsjenga/mini_gl_fb.git
synced 2024-11-22 15:31:31 +11:00
Add another Default impl for Config
This commit is contained in:
parent
03f4f50d28
commit
f9127fb922
|
@ -23,6 +23,18 @@ pub struct Config<S: ToString> {
|
|||
pub window_size: (f64, f64),
|
||||
}
|
||||
|
||||
impl<'a> Default for Config<&'a str> {
|
||||
fn default() -> Self {
|
||||
Config {
|
||||
buffer_size: (0, 0),
|
||||
resizable: false,
|
||||
// :^)
|
||||
window_title: "Super Mini GL Framebufferer 3!",
|
||||
window_size: (600.0, 480.0),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for Config<String> {
|
||||
fn default() -> Self {
|
||||
Config {
|
||||
|
|
Loading…
Reference in a new issue