Struct Drawstuff

Source
pub struct Drawstuff {}
Expand description

Drawstuff

Implementations§

Source§

impl Drawstuff

Drawstuff

Source

pub fn new() -> Self

constructor

Source

pub fn dispose(&mut self)

dispose

Trait Implementations§

Source§

impl Drop for Drawstuff

Drop for Drawstuff

Source§

fn drop(&mut self)

drop

Source§

impl Tdrawstuff for Drawstuff

Tdrawstuff for Drawstuff

Source§

fn Debug(&self, msg: *const c_char)

dsDebug void dsDebug(const char *msg, …);

Source§

fn Error(&self, msg: *const c_char)

dsError void dsError(const char *msg, …);

Source§

fn Print(&self, msg: *const c_char)

dsPrint void dsPrint(const char *msg, …);

Source§

fn DrawBox(&self, pos: *const f32, rot: *const f32, lxyz: *const f32)

dsDrawBox 3 12 3

Source§

fn DrawBoxD(&self, pos: *const f64, rot: *const f64, lxyz: *const f64)

dsDrawBoxD 3 12 3

Source§

fn DrawCapsule(&self, pos: *const f32, rot: *const f32, l: f32, r: f32)

dsDrawCapsule 3 12

Source§

fn DrawCapsuleD(&self, pos: *const f64, rot: *const f64, l: f32, r: f32)

dsDrawCapsuleD 3 12

Source§

fn DrawConvex( &self, pos: *const f32, rot: *const f32, planes: *const f32, planecount: c_uint, points: *const f32, pointcount: c_uint, polygons: *const c_uint, )

dsDrawConvex 3 12 planecount pointcount x

Source§

fn DrawConvexD( &self, pos: *const f64, rot: *const f64, planes: *const f64, planecount: c_uint, points: *const f64, pointcount: c_uint, polygons: *const c_uint, )

dsDrawConvexD 3 12 planecount pointcount x

Source§

fn DrawCylinder(&self, pos: *const f32, rot: *const f32, l: f32, r: f32)

dsDrawCylinder 3 12

Source§

fn DrawCylinderD(&self, pos: *const f64, rot: *const f64, l: f32, r: f32)

dsDrawCylinderD 3 12

Source§

fn DrawLine(&self, pos1: *const f32, pos2: *const f32)

dsDrawLine 3 3

Source§

fn DrawLineD(&self, pos1: *const f64, pos2: *const f64)

dsDrawLineD 3 3

Source§

fn DrawSphere(&self, pos: *const f32, rot: *const f32, radius: f32)

dsDrawSphere 3 12

Source§

fn DrawSphereD(&self, pos: *const f64, rot: *const f64, radius: f32)

dsDrawSphereD 3 12

Source§

fn DrawTriangle( &self, pos: *const f32, rot: *const f32, v0: *const f32, v1: *const f32, v2: *const f32, solid: c_int, )

dsDrawTriangle 3 12 (4 4 4) or (3 3 3)

Source§

fn DrawTriangleD( &self, pos: *const f64, rot: *const f64, v0: *const f64, v1: *const f64, v2: *const f64, solid: c_int, )

dsDrawTriangleD 3 12 (4 4 4) or (3 3 3)

Source§

fn DrawTriangles( &self, pos: *const f32, rot: *const f32, v: *const f32, n: c_int, solid: c_int, )

dsDrawTriangles 3 12 4n or 3n

Source§

fn DrawTrianglesD( &self, pos: *const f64, rot: *const f64, v: *const f64, n: c_int, solid: c_int, )

dsDrawTrianglesD 3 12 4n or 3n

Source§

fn ElapsedTime(&self) -> f64

dsElapsedTime

Source§

fn GetViewpoint(&self, xyz: *mut f32, hpr: *mut f32)

dsGetViewpoint 3 3

Source§

fn SetCapsuleQuality(&self, n: c_int)

dsSetCapsuleQuality default 3

Source§

fn SetColor(&self, red: f32, green: f32, blue: f32)

dsSetColor

Source§

fn SetColorAlpha(&self, red: f32, green: f32, blue: f32, alpha: f32)

dsSetColorAlpha

Source§

fn SetDrawMode(&self, mode: c_int)

dsSetDrawMode

Source§

fn SetSphereQuality(&self, n: c_int)

dsSetSphereQuality default 1

Source§

fn SetTexture(&self, texture_number: c_int)

dsSetTexture

Source§

fn SetViewpoint(&self, xyz: *mut f32, hpr: *mut f32)

dsSetViewpoint 3 3

Source§

fn SimulationLoop( &self, argc: c_int, argv: *mut *mut c_char, window_width: c_int, window_height: c_int, functions: *mut dsFunctions_C, )

dsSimulationLoop

Source§

fn Stop(&self)

dsStop

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.