[−][src]Struct glsmrs::GlState
Implementations
impl GlState
[src]
pub fn new(ctx: &WebGlRenderingContext, viewport: Viewport) -> GlState
[src]
pub fn delete_vertex_buffer(
&mut self,
name: &'static str
) -> Result<&mut Self, String>
[src]
&mut self,
name: &'static str
) -> Result<&mut Self, String>
pub fn vertex_buffer(
&mut self,
name: &'static str,
data: &[u8]
) -> Result<&mut Self, String>
[src]
&mut self,
name: &'static str,
data: &[u8]
) -> Result<&mut Self, String>
pub fn delete_element_buffer(&mut self) -> Result<&mut Self, String>
[src]
pub fn element_buffer(&mut self, data: &[u8]) -> Result<&mut Self, String>
[src]
pub fn delete_texture(
&mut self,
name: &'static str
) -> Result<&mut Self, String>
[src]
&mut self,
name: &'static str
) -> Result<&mut Self, String>
pub fn texture(
&mut self,
name: &'static str,
data: Option<&[u8]>,
w: u32,
h: u32
) -> Result<&mut Self, String>
[src]
&mut self,
name: &'static str,
data: Option<&[u8]>,
w: u32,
h: u32
) -> Result<&mut Self, String>
pub fn run(
&self,
program: &Program,
uni_values: &HashMap<&'static str, UniformData>
) -> Result<&Self, String>
[src]
&self,
program: &Program,
uni_values: &HashMap<&'static str, UniformData>
) -> Result<&Self, String>
pub fn run_mut(
&self,
program: &Program,
uni_values: &HashMap<&'static str, UniformData>,
name: &'static str
) -> Result<&Self, String>
[src]
&self,
program: &Program,
uni_values: &HashMap<&'static str, UniformData>,
name: &'static str
) -> Result<&Self, String>
Trait Implementations
impl Drop for GlState
[src]
impl FromWasmAbi for GlState
[src]
type Abi = u32
The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more
pub unsafe fn from_abi(js: u32) -> Self
[src]
impl IntoWasmAbi for GlState
[src]
type Abi = u32
The wasm ABI type that this converts into when crossing the ABI boundary. Read more
pub fn into_abi(self) -> u32
[src]
impl OptionFromWasmAbi for GlState
[src]
impl OptionIntoWasmAbi for GlState
[src]
impl RefFromWasmAbi for GlState
[src]
type Abi = u32
The wasm ABI type references to Self
are recovered from.
type Anchor = Ref<'static, GlState>
The type that holds the reference to Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don't persist beyond one function
call, and so that they remain anonymous. Read more
pub unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor
[src]
impl RefMutFromWasmAbi for GlState
[src]
type Abi = u32
Same as RefFromWasmAbi::Abi
type Anchor = RefMut<'static, GlState>
Same as RefFromWasmAbi::Anchor
pub unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
[src]
impl WasmDescribe for GlState
[src]
Auto Trait Implementations
impl RefUnwindSafe for GlState
[src]
impl !Send for GlState
[src]
impl !Sync for GlState
[src]
impl Unpin for GlState
[src]
impl UnwindSafe for GlState
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
[src]
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
pub fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,