Module gl_utils::graphics[][src]

General graphics-related utility functions.

Structs

Pose3d

Functions

orientation_from_yaw_pitch

Computes an orientation basis based on given yaw and pitch.

point2d_clamp

Clamp a 2D point to the given AABB rectangle, returns true if point was modified, or false otherwise if the point is already within the volume.

projection_mat_orthographic

Convenience method that calls cgmath::ortho on the given Ortho struct

projection_mat_perspective

Convenience method calling cgmath::perspective on the given PerspectiveFov struct.

rand_point3d

Generate a random point contained in the give AABB