projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
can now set the font used for a menu
[freeglut]
/
progs
/
demos
/
spaceball
/
vmath.c
diff --git
a/progs/demos/spaceball/vmath.c
b/progs/demos/spaceball/vmath.c
index
58f2c41
..
7ef3c25
100644
(file)
--- a/
progs/demos/spaceball/vmath.c
+++ b/
progs/demos/spaceball/vmath.c
@@
-4,10
+4,10
@@
quat_t quat_rotate(quat_t q, float angle, float x, float y, float z)
\r
{
\r
quat_t rq;
\r
quat_t quat_rotate(quat_t q, float angle, float x, float y, float z)
\r
{
\r
quat_t rq;
\r
- float half_angle = angle * 0.5;
\r
- float sin_half = sin(half_angle);
\r
+ float half_angle = angle * 0.5f;
\r
+ float sin_half = (float)sin(half_angle);
\r
\r
\r
- rq.w = cos(half_angle);
\r
+ rq.w = (float)cos(half_angle);
\r
rq.x = x * sin_half;
\r
rq.y = y * sin_half;
\r
rq.z = z * sin_half;
\r
rq.x = x * sin_half;
\r
rq.y = y * sin_half;
\r
rq.z = z * sin_half;
\r