Type Definition ggez::graphics::GraphicsContext
[−]
[src]
type GraphicsContext = GraphicsContextGeneric<Resources, Factory, CommandBuffer, Device>;
A concrete graphics context for GL rendering.
Methods
impl GraphicsContext
[src]
fn new(
video: VideoSubsystem,
window_title: &str,
screen_width: u32,
screen_height: u32,
vsync: bool,
resize: bool
) -> GameResult<GraphicsContext>
video: VideoSubsystem,
window_title: &str,
screen_width: u32,
screen_height: u32,
vsync: bool,
resize: bool
) -> GameResult<GraphicsContext>
fn get_window(&mut self) -> &mut Window
Returns a reference to the SDL window.
Ideally you should not need to use this because ggez
would provide all the functions you need without having
to dip into SDL itself.
fn get_factory(&mut self) -> &mut Factory
EXPERIMENTAL function to get the gfx-rs Factory
object.
fn get_device(&mut self) -> &mut Device
EXPERIMENTAL function to get the gfx-rs Device
object.
fn get_encoder(&mut self) -> &mut Encoder<Resources, CommandBuffer>
EXPERIMENTAL function to get the gfx-rs Encoder
object.
fn get_depth_view(&self) -> DepthStencilView<Resources, DepthStencil>
EXPERIMENTAL function to get the gfx-rs depth view
fn get_color_view(&self) -> RenderTargetView<Resources, (R8_G8_B8_A8, Srgb)>
EXPERIMENTAL function to get the gfx-rs color view