Struct gdnative::StreamTexture
[−]
[src]
pub struct StreamTexture { /* fields omitted */ }
Methods
impl StreamTexture
[src]
pub fn load(&self, path: GodotString) -> GodotResult
[src]
pub fn get_load_path(&self) -> GodotString
[src]
Methods from Deref<Target = Texture>
pub fn get_width(&self) -> i64
[src]
pub fn get_height(&self) -> i64
[src]
pub fn get_size(&self) -> Vector2
[src]
pub fn has_alpha(&self) -> bool
[src]
pub fn set_flags(&self, flags: i64)
[src]
pub fn get_flags(&self) -> i64
[src]
pub fn draw(
&self,
canvas_item: Rid,
position: Vector2,
modulate: Color,
transpose: bool,
normal_map: Option<GodotRef<Texture>>
)
[src]
&self,
canvas_item: Rid,
position: Vector2,
modulate: Color,
transpose: bool,
normal_map: Option<GodotRef<Texture>>
)
pub fn draw_rect(
&self,
canvas_item: Rid,
rect: Rect2,
tile: bool,
modulate: Color,
transpose: bool,
normal_map: Option<GodotRef<Texture>>
)
[src]
&self,
canvas_item: Rid,
rect: Rect2,
tile: bool,
modulate: Color,
transpose: bool,
normal_map: Option<GodotRef<Texture>>
)
pub fn draw_rect_region(
&self,
canvas_item: Rid,
rect: Rect2,
src_rect: Rect2,
modulate: Color,
transpose: bool,
normal_map: Option<GodotRef<Texture>>,
clip_uv: bool
)
[src]
&self,
canvas_item: Rid,
rect: Rect2,
src_rect: Rect2,
modulate: Color,
transpose: bool,
normal_map: Option<GodotRef<Texture>>,
clip_uv: bool
)
pub fn get_data(&self) -> Option<GodotRef<Image>>
[src]
Trait Implementations
impl GodotClass for StreamTexture
[src]
type ClassData = StreamTexture
type Reference = StreamTexture
fn godot_name() -> &'static str
[src]
unsafe fn register_class(_desc: *mut c_void)
[src]
fn godot_info(&self) -> &GodotClassInfo
[src]
unsafe fn reference(
_this: *mut godot_object,
data: &Self::ClassData
) -> &Self::Reference
[src]
_this: *mut godot_object,
data: &Self::ClassData
) -> &Self::Reference