pkgsrc/graphics/osg/patches/patch-ac
adam 343ff354d7 Changes 3.0.1:
* OpenGL ES 1.1, and OpenGL ES 2.0 support
* OpenGL 3.x and 4.x support along with associated OpenGL extensions
* Supoort for Android on tablets and phones
* Support for IOS on tablets and phones (end users applications have already
  been accepted on the App Store)
* Introduction of Present3D application for immersive 3D presentations
* New extensible serializers that provide new .osgb binary, .osgt ascii and
  .osgx xml file native formats
* New generalized serializable metadata architecture
* New osgQt library that makes it straight forward to integrate !OpenSceneGraph
  with Qt, including web browsing via QWebKit.
* New FBX plugin based on the Audodesk FBX DSK that enables reading of the the
  .fbx 3D authoring and interchange format
* New directshow plugin for handling movies under Windows
* New pov plugin for exporting a scene to POV-Ray format, enabling use of
  POV-Ray to do photo-realistic ray tracing
* New ply plugin for reading ply files
* Improvements to osgText that enable bevelling of 3D text and highter quality
  2D fonts
* Improvements to osgVolume enabling high quality ray traced volume rendering
* Improvements to osgManipulator making it more flexible
* Improvements to osgParticle to support shader based particle effects
* Revamped 3ds plugin for reading and writing of .3ds files
* Revamped dxf plugin for reading and writing of .dxf files
* Support for Cocoa and 64bit OSX build
* Improved thread safety and efficiency of database paging
* New Texture and buffer object pools for efficiently managing GL object
  resources
2012-03-07 16:27:35 +00:00

34 lines
1 KiB
Text

$NetBSD: patch-ac,v 1.2 2012/03/07 16:27:35 adam Exp $
--- include/osg/Math.orig 2008-11-23 13:35:43.000000000 +0200
+++ include/osg/Math 2009-01-14 09:49:00.000000000 +0200
@@ -14,7 +14,7 @@
#ifndef __OSG_MATH
#define __OSG_MATH
-#include <math.h>
+#include <cmath>
#include <osg/Export>
@@ -207,14 +207,14 @@
inline bool isNaN(float v) { return _isnan(v)!=0; }
inline bool isNaN(double v) { return _isnan(v)!=0; }
#else
- #if defined(__APPLE__)
+// #if defined(__APPLE__)
inline bool isNaN(float v) { return std::isnan(v); }
inline bool isNaN(double v) { return std::isnan(v); }
- #else
- // Need to use to std::isnan to avoid undef problem from <cmath>
- inline bool isNaN(float v) { return isnan(v); }
- inline bool isNaN(double v) { return isnan(v); }
- #endif
+// #else
+// // Need to use to std::isnan to avoid undef problem from <cmath>
+// inline bool isNaN(float v) { return isnan(v); }
+// inline bool isNaN(double v) { return isnan(v); }
+// #endif
#endif