Struct gl_utils::render::viewport::Builder [−][src]
pub struct Builder { /* fields omitted */ }
Methods
impl Builder
[src]
impl Builder
pub fn new(rect: Rect) -> Self
[src]
pub fn new(rect: Rect) -> Self
pub fn with_zoom_2d(self, zoom: f32) -> Self
[src]
pub fn with_zoom_2d(self, zoom: f32) -> Self
pub fn orthographic_3d(self, zoom: f32) -> Self
[src]
pub fn orthographic_3d(self, zoom: f32) -> Self
Changes the 3D camera projection from perspective (default) to orthographic
pub fn with_pose_3d(self, pose_3d: Pose3d<f32>) -> Self
[src]
pub fn with_pose_3d(self, pose_3d: Pose3d<f32>) -> Self
pub fn build(self) -> Viewport
[src]
pub fn build(self) -> Viewport