Trait Tdrawstuff

Source
pub trait Tdrawstuff {
Show 30 methods // Required methods fn Debug(&self, msg: *const i8); fn DrawBox(&self, pos: *const f32, rot: *const f32, lxyz: *const f32); fn DrawBoxD(&self, pos: *const f64, rot: *const f64, lxyz: *const f64); fn DrawCapsule(&self, pos: *const f32, rot: *const f32, l: f32, r: f32); fn DrawCapsuleD(&self, pos: *const f64, rot: *const f64, l: f32, r: f32); fn DrawConvex( &self, pos: *const f32, rot: *const f32, planes: *const f32, planecount: u32, points: *const f32, pointcount: u32, polygons: *const u32, ); fn DrawConvexD( &self, pos: *const f64, rot: *const f64, planes: *const f64, planecount: u32, points: *const f64, pointcount: u32, polygons: *const u32, ); fn DrawCylinder(&self, pos: *const f32, rot: *const f32, l: f32, r: f32); fn DrawCylinderD(&self, pos: *const f64, rot: *const f64, l: f32, r: f32); fn DrawLine(&self, pos1: *const f32, pos2: *const f32); fn DrawLineD(&self, pos1: *const f64, pos2: *const f64); fn DrawSphere(&self, pos: *const f32, rot: *const f32, radius: f32); fn DrawSphereD(&self, pos: *const f64, rot: *const f64, radius: f32); fn DrawTriangle( &self, pos: *const f32, rot: *const f32, v0: *const f32, v1: *const f32, v2: *const f32, solid: i32, ); fn DrawTriangleD( &self, pos: *const f64, rot: *const f64, v0: *const f64, v1: *const f64, v2: *const f64, solid: i32, ); fn DrawTriangles( &self, pos: *const f32, rot: *const f32, v: *const f32, n: i32, solid: i32, ); fn DrawTrianglesD( &self, pos: *const f64, rot: *const f64, v: *const f64, n: i32, solid: i32, ); fn ElapsedTime(&self) -> f64; fn Error(&self, msg: *const i8); fn GetViewpoint(&self, xyz: *mut f32, hpr: *mut f32); fn Print(&self, msg: *const i8); fn SetCapsuleQuality(&self, n: i32); fn SetColor(&self, red: f32, green: f32, blue: f32); fn SetColorAlpha(&self, red: f32, green: f32, blue: f32, alpha: f32); fn SetDrawMode(&self, mode: i32); fn SetSphereQuality(&self, n: i32); fn SetTexture(&self, texture_number: i32); fn SetViewpoint(&self, xyz: *mut f32, hpr: *mut f32); fn SimulationLoop( &self, argc: i32, argv: *mut *mut i8, window_width: i32, window_height: i32, functions: *mut dsFunctions_C, ); fn Stop(&self);
}
Expand description

trait Tdrawstuff

Required Methods§

Source

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

dsDebug void dsDebug(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: u32, points: *const f32, pointcount: u32, polygons: *const u32, )

dsDrawConvex 3 12 planecount pointcount x

Source

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

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: i32, )

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: i32, )

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

Source

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

dsDrawTriangles 3 12 4n or 3n

Source

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

dsDrawTrianglesD 3 12 4n or 3n

Source

fn ElapsedTime(&self) -> f64

dsElapsedTime

Source

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

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

Source

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

dsGetViewpoint 3 3

Source

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

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

Source

fn SetCapsuleQuality(&self, n: i32)

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: i32)

dsSetDrawMode

Source

fn SetSphereQuality(&self, n: i32)

dsSetSphereQuality default 1

Source

fn SetTexture(&self, texture_number: i32)

dsSetTexture

Source

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

dsSetViewpoint 3 3

Source

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

dsSimulationLoop

Source

fn Stop(&self)

dsStop

Implementors§

Source§

impl Tdrawstuff for Drawstuff

Tdrawstuff for Drawstuff