mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 06:10:07 -04:00
Merge pull request #608 from tomaka/pub-attribs
Make some fields in WindowBuilder and HeadlessRendererBuilder public
This commit is contained in:
@@ -16,9 +16,14 @@ use platform;
|
|||||||
|
|
||||||
/// Object that allows you to build headless contexts.
|
/// Object that allows you to build headless contexts.
|
||||||
pub struct HeadlessRendererBuilder<'a> {
|
pub struct HeadlessRendererBuilder<'a> {
|
||||||
dimensions: (u32, u32),
|
/// The dimensions to use.
|
||||||
|
pub dimensions: (u32, u32),
|
||||||
|
|
||||||
|
/// The OpenGL attributes to build the context with.
|
||||||
|
pub opengl: GlAttributes<&'a platform::HeadlessContext>,
|
||||||
|
|
||||||
|
// Should be made public once it's stabilized.
|
||||||
pf_reqs: PixelFormatRequirements,
|
pf_reqs: PixelFormatRequirements,
|
||||||
opengl: GlAttributes<&'a platform::HeadlessContext>,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> HeadlessRendererBuilder<'a> {
|
impl<'a> HeadlessRendererBuilder<'a> {
|
||||||
|
|||||||
@@ -24,9 +24,14 @@ use platform;
|
|||||||
|
|
||||||
/// Object that allows you to build windows.
|
/// Object that allows you to build windows.
|
||||||
pub struct WindowBuilder<'a> {
|
pub struct WindowBuilder<'a> {
|
||||||
|
/// The attributes to use to create the window.
|
||||||
|
pub window: WindowAttributes,
|
||||||
|
|
||||||
|
/// The attributes to use to create the context.
|
||||||
|
pub opengl: GlAttributes<&'a platform::Window>,
|
||||||
|
|
||||||
|
// Should be made public once it's stabilized.
|
||||||
pf_reqs: PixelFormatRequirements,
|
pf_reqs: PixelFormatRequirements,
|
||||||
window: WindowAttributes,
|
|
||||||
opengl: GlAttributes<&'a platform::Window>,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> WindowBuilder<'a> {
|
impl<'a> WindowBuilder<'a> {
|
||||||
|
|||||||
Reference in New Issue
Block a user