Struct wasm_rgame::Graphics
[−]
[src]
pub struct Graphics { /* fields omitted */ }
Methods
impl Graphics
[src]
pub fn new() -> Graphics
[src]
WARNING: JS Exported Function - not intended for normal use
pub fn draw_rects_ptr(&self) -> *const f32
[src]
WARNING: JS Exported Function - not intended for normal use
pub fn draw_rects_len(&self) -> usize
[src]
WARNING: JS Exported Function - not intended for normal use
pub fn draw_action_colors_ptr(&self) -> *const u8
[src]
WARNING: JS Exported Function - not intended for normal use
pub fn draw_action_colors_len(&self) -> usize
[src]
WARNING: JS Exported Function - not intended for normal use
pub fn strings_ptr(&self) -> *const u8
[src]
WARNING: JS Exported Function - not intended for normal use
pub fn string_properties_ptr(&self) -> *const f32
[src]
WARNING: JS Exported Function - not intended for normal use
pub fn string_properties_len(&self) -> usize
[src]
WARNING: JS Exported Function - not intended for normal use
pub fn reset(&mut self)
[src]
Clearing Graphics for the next frame WARNING: JS Exported Function - not intended for normal use
pub fn draw_rect(
&mut self,
pos_x: f32,
pos_y: f32,
width: f32,
height: f32,
color: Color
)
[src]
&mut self,
pos_x: f32,
pos_y: f32,
width: f32,
height: f32,
color: Color
)
pub fn draw_string(
&mut self,
s: &str,
pos_x: f32,
pos_y: f32,
font_size: f32,
color: Color
)
[src]
&mut self,
s: &str,
pos_x: f32,
pos_y: f32,
font_size: f32,
color: Color
)