diff options
author | cutealien <cutealien@dfc29bdd-3216-0410-991c-e03cc46cb475> | 2020-06-12 20:41:49 +0000 |
---|---|---|
committer | cutealien <cutealien@dfc29bdd-3216-0410-991c-e03cc46cb475> | 2020-06-12 20:41:49 +0000 |
commit | 20b3d56987ca7b7a9d7f27b0a32a93f12e8dc530 (patch) | |
tree | 5fd7cc45a44c46b1134788ed90ffb70398179f4d /examples/23.SMeshHandling/main.cpp | |
parent | 084e0e669a8d9c6a373ff3bcb410febca4d4a48a (diff) | |
download | irrlicht-20b3d56987ca7b7a9d7f27b0a32a93f12e8dc530.tar.xz |
Merging r6075 through r6106 from trunk to ogl-es branch.
Burnings renderer changes.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@6116 dfc29bdd-3216-0410-991c-e03cc46cb475
Diffstat (limited to 'examples/23.SMeshHandling/main.cpp')
-rw-r--r-- | examples/23.SMeshHandling/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/23.SMeshHandling/main.cpp b/examples/23.SMeshHandling/main.cpp index 2d41309..a4ef9eb 100644 --- a/examples/23.SMeshHandling/main.cpp +++ b/examples/23.SMeshHandling/main.cpp @@ -57,7 +57,7 @@ typedef f32 generate_func(s16 x, s16 y, f32 s); f32 eggbox(s16 x, s16 y, f32 s)
{
const f32 r = 4.f*sqrtf((f32)(x*x + y*y))/s;
- const f32 z = expf(-r * 2) * (cosf(0.2f * x) + cosf(0.2f * y));
+ const f32 z = (f32)exp(-r * 2) * (cosf(0.2f * x) + cosf(0.2f * y));
return 0.25f+0.25f*z;
}
@@ -180,7 +180,7 @@ private: public:
SMesh* Mesh;
- TMesh() : Mesh(0), Width(0), Height(0), Scale(1.f)
+ TMesh() : Width(0), Height(0), Scale(1.f), Mesh(0)
{
Mesh = new SMesh();
}
|