#include "main.h"
#include "material.h"
#include <string>
#include <gfx/mat4.h>
#include <gfx/vec3.h>
#include <ClanLib/core.h>
Go to the source code of this file.
Functions | |
Vec3 | world_to_screen (Vec3 world) |
convert world coords to screen | |
Vec3 | screen_to_world (Vec3 screen) |
convert screen coords to world | |
Mat4 | rotation_matrix_angles_rad (const Vec3 &angles) |
Make a rotation matrix out of a triplet of angles to rotate around each axis. | |
void | set_translation (Mat4 &mat, const Vec3 &translate) |
Set the translation vectors for a transformation matrix. | |
Mat4 | inverse_t_r (const Mat4 &mat) |
Invert a translation*rotation matrix. | |
void | draw_cylinder (Vec3 center, Vec3 dir, const Material &mat, double width, double height) |
Draw a cylinder at center along direction dir, with material mat, with the given width and height. | |
string | get_string (const CL_DomElement &element, string name) |
int | get_int (const CL_DomElement &element, string name) |
float | get_float (const CL_DomElement &element, string name) |
double | get_double (const CL_DomElement &element, string name) |
bool | get_bool (const CL_DomElement &element, string name) |
Vec3 | get_vec3 (const CL_DomElement &element, string name) |
CL_DomElement | get_element (CL_ResourceManager &manager, string resource) |
Vec3 | vec_mult (Vec3 a, Vec3 b) |
component-wise multiplication of Vec's | |
Vec3 | vec_dropw (Vec4 a) |
string | to_string (bool x) |
string | to_string (int x) |
string | to_string (double x) |
string | to_string (Vec3 v) |
string | convert_path (string path) |
Copyright 2003-2004 by GameBuilders. Distributed WITHOUT WARRANTY under the GPL. See COPYING for details.
Definition in file utils.h.
|
Definition at line 129 of file utils.cpp. References BAD_PATH_SEP, and PATH_SEP. |
|
Draw a cylinder at center along direction dir, with material mat, with the given width and height.
Definition at line 103 of file utils.cpp. References RAD_TO_DEG. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Invert a translation*rotation matrix. Optimized inverse for T*R matrix. Definition at line 90 of file utils.cpp. References set_translation(). |
|
Make a rotation matrix out of a triplet of angles to rotate around each axis. Milkshape3D likes to store their rotations this way. |
|
convert screen coords to world
|
|
Set the translation vectors for a transformation matrix.
Definition at line 51 of file utils.cpp. Referenced by inverse_t_r(). |
|
|
|
|
|
|
|
|
|
|
|
component-wise multiplication of Vec's
|
|
convert world coords to screen
|