mirror of
https://github.com/italicsjenga/mini_gl_fb.git
synced 2025-02-17 07:07:42 +11:00
Add another Default impl for Config
This commit is contained in:
parent
03f4f50d28
commit
f9127fb922
1 changed files with 12 additions and 0 deletions
|
@ -23,6 +23,18 @@ pub struct Config<S: ToString> {
|
||||||
pub window_size: (f64, f64),
|
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> {
|
impl Default for Config<String> {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
Config {
|
Config {
|
||||||
|
|
Loading…
Add table
Reference in a new issue