pub struct Light {
    pub d: bool,
    pub h: i32,
}Expand description
Light
Fields§
§d: boolto be disposed
h: i32handle
Implementations§
source§impl Light
 
impl Light
Light
sourcepub fn create_dir(d: VECTOR) -> Self
 
pub fn create_dir(d: VECTOR) -> Self
(move) create dir
sourcepub fn create_spot(
    p: VECTOR,
    d: VECTOR,
    oa: f32,
    ia: f32,
    rng: f32,
    a0: f32,
    a1: f32,
    a2: f32
) -> Self
 
pub fn create_spot( p: VECTOR, d: VECTOR, oa: f32, ia: f32, rng: f32, a0: f32, a1: f32, a2: f32 ) -> Self
(move) create spot
sourcepub fn create_point(p: VECTOR, rng: f32, a0: f32, a1: f32, a2: f32) -> Self
 
pub fn create_point(p: VECTOR, rng: f32, a0: f32, a1: f32, a2: f32) -> Self
(move) create point
sourcepub fn set_enable(&self, flg: i32) -> i32
 
pub fn set_enable(&self, flg: i32) -> i32
set enable
sourcepub fn set_dif_color(&self, c: COLOR_F) -> i32
 
pub fn set_dif_color(&self, c: COLOR_F) -> i32
(move)
sourcepub fn set_spc_color(&self, c: COLOR_F) -> i32
 
pub fn set_spc_color(&self, c: COLOR_F) -> i32
(move)
sourcepub fn set_amb_color(&self, c: COLOR_F) -> i32
 
pub fn set_amb_color(&self, c: COLOR_F) -> i32
(move)
sourcepub fn set_direction(&self, d: VECTOR) -> i32
 
pub fn set_direction(&self, d: VECTOR) -> i32
(move)
sourcepub fn set_position(&self, p: VECTOR) -> i32
 
pub fn set_position(&self, p: VECTOR) -> i32
(move)
sourcepub fn get_enable(&self) -> i32
 
pub fn get_enable(&self) -> i32
get enable
sourcepub fn get_dif_color(&self) -> COLOR_F
 
pub fn get_dif_color(&self) -> COLOR_F
sourcepub fn get_spc_color(&self) -> COLOR_F
 
pub fn get_spc_color(&self) -> COLOR_F
sourcepub fn get_amb_color(&self) -> COLOR_F
 
pub fn get_amb_color(&self) -> COLOR_F
sourcepub fn get_direction(&self) -> VECTOR
 
pub fn get_direction(&self) -> VECTOR
sourcepub fn get_position(&self) -> VECTOR
 
pub fn get_position(&self) -> VECTOR
Trait Implementations§
source§impl Tr for Light
 
impl Tr for Light
Tr for Light
fn as_music(&self) -> Music
fn as_sound(&self) -> Sound
fn as_screen(&self) -> Screen
fn as_graph(&self) -> Graph
fn as_vertex_shader(&self) -> VertexShader
fn as_pixel_shader(&self) -> PixelShader
fn as_geometry_shader(&self) -> GeometryShader
fn as_font(&self) -> Font
Auto Trait Implementations§
impl Freeze for Light
impl RefUnwindSafe for Light
impl Send for Light
impl Sync for Light
impl Unpin for Light
impl UnwindSafe for Light
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more