mirror of
https://github.com/italicsjenga/mini_gl_fb.git
synced 2024-11-22 23:41:30 +11:00
Merge branch 'LoganDark-2018'
This commit is contained in:
commit
e2e88b5933
|
@ -4,6 +4,7 @@ version = "0.8.0"
|
||||||
authors = ["shivshank"]
|
authors = ["shivshank"]
|
||||||
description = "Quick and easy window creation, input, and high speed bitmap rendering"
|
description = "Quick and easy window creation, input, and high speed bitmap rendering"
|
||||||
repository = "https://github.com/shivshank/mini_gl_fb"
|
repository = "https://github.com/shivshank/mini_gl_fb"
|
||||||
|
edition = "2018"
|
||||||
|
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
//! [`Framebuffer`] object and manipulate them directly.
|
//! [`Framebuffer`] object and manipulate them directly.
|
||||||
|
|
||||||
use glutin::{WindowedContext, PossiblyCurrent, ContextError};
|
use glutin::{WindowedContext, PossiblyCurrent, ContextError};
|
||||||
use core::Framebuffer;
|
use crate::core::Framebuffer;
|
||||||
|
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use glutin::event::{MouseButton, VirtualKeyCode, ModifiersState};
|
use glutin::event::{MouseButton, VirtualKeyCode, ModifiersState};
|
||||||
|
|
|
@ -32,9 +32,9 @@ use glutin::dpi::LogicalSize;
|
||||||
///
|
///
|
||||||
/// If there's a config option you want to see or think is missing, please open an issue!
|
/// If there's a config option you want to see or think is missing, please open an issue!
|
||||||
#[non_exhaustive]
|
#[non_exhaustive]
|
||||||
|
#[derive(Clone, PartialEq, Debug, Builder)]
|
||||||
#[builder(default)]
|
#[builder(default)]
|
||||||
#[builder(build_fn(skip))]
|
#[builder(build_fn(skip))]
|
||||||
#[derive(Clone, PartialEq, Debug, Builder)]
|
|
||||||
pub struct Config {
|
pub struct Config {
|
||||||
/// Sets the pixel dimensions of the buffer. The buffer will automatically stretch to fill the
|
/// Sets the pixel dimensions of the buffer. The buffer will automatically stretch to fill the
|
||||||
/// whole window. By default this will be the same as the window_size.
|
/// whole window. By default this will be the same as the window_size.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
use breakout::{GlutinBreakout, BasicInput};
|
use crate::breakout::{GlutinBreakout, BasicInput};
|
||||||
|
|
||||||
use rustic_gl;
|
use rustic_gl;
|
||||||
|
|
||||||
|
|
|
@ -117,9 +117,9 @@ pub mod breakout;
|
||||||
|
|
||||||
pub use breakout::{GlutinBreakout, BasicInput};
|
pub use breakout::{GlutinBreakout, BasicInput};
|
||||||
pub use config::{Config, ConfigBuilder};
|
pub use config::{Config, ConfigBuilder};
|
||||||
pub use core::{Internal, BufferFormat, Framebuffer};
|
pub use crate::core::{Internal, BufferFormat, Framebuffer};
|
||||||
|
|
||||||
use core::ToGlType;
|
use crate::core::ToGlType;
|
||||||
use glutin::event_loop::EventLoop;
|
use glutin::event_loop::EventLoop;
|
||||||
use glutin::dpi::LogicalSize;
|
use glutin::dpi::LogicalSize;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue