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§
Sourcefn DrawConvex(
&self,
pos: *const f32,
rot: *const f32,
planes: *const f32,
planecount: u32,
points: *const f32,
pointcount: u32,
polygons: *const u32,
)
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
Sourcefn DrawConvexD(
&self,
pos: *const f64,
rot: *const f64,
planes: *const f64,
planecount: u32,
points: *const f64,
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, )
dsDrawConvexD 3 12 planecount pointcount x
Sourcefn DrawTriangle(
&self,
pos: *const f32,
rot: *const f32,
v0: *const f32,
v1: *const f32,
v2: *const f32,
solid: i32,
)
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)
Sourcefn DrawTriangleD(
&self,
pos: *const f64,
rot: *const f64,
v0: *const f64,
v1: *const f64,
v2: *const f64,
solid: i32,
)
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)
Sourcefn DrawTriangles(
&self,
pos: *const f32,
rot: *const f32,
v: *const f32,
n: i32,
solid: i32,
)
fn DrawTriangles( &self, pos: *const f32, rot: *const f32, v: *const f32, n: i32, solid: i32, )
dsDrawTriangles 3 12 4n or 3n
Sourcefn DrawTrianglesD(
&self,
pos: *const f64,
rot: *const f64,
v: *const f64,
n: i32,
solid: i32,
)
fn DrawTrianglesD( &self, pos: *const f64, rot: *const f64, v: *const f64, n: i32, solid: i32, )
dsDrawTrianglesD 3 12 4n or 3n
Sourcefn ElapsedTime(&self) -> f64
fn ElapsedTime(&self) -> f64
dsElapsedTime
Sourcefn SetCapsuleQuality(&self, n: i32)
fn SetCapsuleQuality(&self, n: i32)
dsSetCapsuleQuality default 3
Sourcefn SetDrawMode(&self, mode: i32)
fn SetDrawMode(&self, mode: i32)
dsSetDrawMode
Sourcefn SetSphereQuality(&self, n: i32)
fn SetSphereQuality(&self, n: i32)
dsSetSphereQuality default 1
Sourcefn SetTexture(&self, texture_number: i32)
fn SetTexture(&self, texture_number: i32)
dsSetTexture
Sourcefn SimulationLoop(
&self,
argc: i32,
argv: *mut *mut i8,
window_width: i32,
window_height: i32,
functions: *mut dsFunctions_C,
)
fn SimulationLoop( &self, argc: i32, argv: *mut *mut i8, window_width: i32, window_height: i32, functions: *mut dsFunctions_C, )
dsSimulationLoop
Implementors§
impl Tdrawstuff for Drawstuff
Tdrawstuff for Drawstuff