projects
/
retroray
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dos port underway
[retroray]
/
src
/
gaw
/
gawswtnl.c
diff --git
a/src/gaw/gawswtnl.c
b/src/gaw/gawswtnl.c
index
a30d56c
..
c307f8a
100644
(file)
--- a/
src/gaw/gawswtnl.c
+++ b/
src/gaw/gawswtnl.c
@@
-187,7
+187,7
@@
void gaw_rotate(float deg, float x, float y, float z)
{
static float m[16];
{
static float m[16];
- float angle = M_PI * deg / 180.0f;
+ float angle = CGM_PI * deg / 180.0f;
float sina = sin(angle);
float cosa = cos(angle);
float one_minus_cosa = 1.0f - cosa;
float sina = sin(angle);
float cosa = cos(angle);
float one_minus_cosa = 1.0f - cosa;
@@
-266,7
+266,7
@@
void gaw_perspective(float vfov_deg, float aspect, float znear, float zfar)
{
static float m[16];
{
static float m[16];
- float vfov = M_PI * vfov_deg / 180.0f;
+ float vfov = CGM_PI * vfov_deg / 180.0f;
float s = 1.0f / tan(vfov * 0.5f);
float range = znear - zfar;
float s = 1.0f / tan(vfov * 0.5f);
float range = znear - zfar;