Struct sdl2::render::Renderer[src]
pub struct Renderer { pub raw: *SDL_Renderer, pub owned: bool, // some fields omitted }
Fields
raw | |
owned |
pub struct Renderer { pub raw: *SDL_Renderer, pub owned: bool, // some fields omitted }
raw | |
owned |
impl Renderer
fn from_window(window: Window, index: RenderDriverIndex, renderer_flags: RendererFlags) -> Result<Renderer, ~str>
fn new_with_window(width: int, height: int, window_flags: WindowFlags) -> Result<Renderer, ~str>
fn from_surface(surface: Surface) -> Result<Renderer, ~str>
fn set_draw_color(&self, color: Color) -> Result<(), ~str>
fn get_draw_color(&self) -> Result<Color, ~str>
fn clear(&self) -> Result<(), ~str>
fn present(&self)
fn get_output_size(&self) -> Result<(int, int), ~str>
fn create_texture(&self, format: PixelFormatFlag, access: TextureAccess, width: int, height: int) -> Result<Texture, ~str>
fn create_texture_from_surface(&self, surface: &Surface) -> Result<Texture, ~str>
fn render_target_supported(&self) -> bool
fn set_render_target(&self, texture: Option<&Texture>) -> Result<(), ~str>
fn get_render_target(&self) -> Result<Texture, ~str>
fn set_logical_size(&self, width: int, height: int) -> Result<(), ~str>
fn get_logical_size(&self) -> (int, int)
fn set_viewport(&self, rect: &Rect) -> Result<(), ~str>
fn get_viewport(&self) -> Rect
fn set_clip_rect(&self, rect: &Rect) -> Result<(), ~str>
fn get_clip_rect(&self) -> Rect
fn set_scale(&self, scale_x: f64, scale_y: f64) -> Result<(), ~str>
fn get_scale(&self) -> (f64, f64)
fn draw_point(&self, point: Point) -> Result<(), ~str>
fn draw_points(&self, points: &[Point]) -> Result<(), ~str>
fn draw_line(&self, start: Point, end: Point) -> Result<(), ~str>
fn draw_lines(&self, points: &[Point]) -> Result<(), ~str>
fn draw_rect(&self, rect: &Rect) -> Result<(), ~str>
fn draw_rects(&self, rects: &[Rect]) -> Result<(), ~str>
fn fill_rect(&self, rect: &Rect) -> Result<(), ~str>
fn fill_rects(&self, rects: &[Rect]) -> Result<(), ~str>
fn copy(&self, texture: &Texture, src: Option<Rect>, dst: Option<Rect>) -> Result<(), ~str>
fn copy_ex(&self, texture: &Texture, src: Option<Rect>, dst: Option<Rect>, angle: f64, center: Option<Point>, flip: RendererFlip) -> Result<(), ~str>
fn read_pixels(&self, rect: Option<Rect>, format: PixelFormatFlag) -> Result<CVec<u8>, ~str>
impl Drop for Renderer
fn drop(&mut self)
impl Eq for Renderer
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
(or str
), enum
,
trait
, typedef
(or
tdef
).