Robert Osfield
71f7a74091
From Björn Blissing, "I found a minor error in documentation in include/osg/Math.
...
Function: absolute() had the same description as the function minimum()
I removed the erroneous text."
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14273 16af8721-9629-0410-8352-f15c8da7e697
2014-06-25 08:21:13 +00:00
Robert Osfield
63cd217c77
From Jordi Torres, Android build fix
2013-02-12 15:44:52 +00:00
Robert Osfield
19bfa92c91
Simplified include/osg/Math to use Standard C++ maths headers - <cmath> and <cfloat>
2013-02-06 12:02:05 +00:00
Robert Osfield
476dbf1c33
Fixed for including cmath before osg/Math.
2012-05-02 13:58:34 +00:00
Robert Osfield
14a563dc9f
Ran script to remove trailing spaces and tabs
2012-03-21 17:36:20 +00:00
Robert Osfield
a548daa4be
Added a check against OSX 10.6 to enable better selection of when to provide custom cosf etc. definition.
...
This change has been introduced to address recurcsion problems in 10.7 in the ac3d plugin.
2011-11-07 14:36:50 +00:00
Robert Osfield
e3f7d802e4
Form Jorge Ciges, improved GL version detection code.
2011-05-26 16:52:08 +00:00
Robert Osfield
b7cabac990
From Mathias Froechlich, "Attached the collected fixes I needed to compile with all of them.
...
Most notable the __hpux define stuff. The __hpux__ variant seems to be not
defined which resulted in a compile error at this time. Consequently I have
replaced all occurances of __hpux__ with __hpux. And huge surprise: now osg
plugins are found and loaded correctly ...
The next notable one is the MSVC_IDE fix which makes the nmake Makefiles cmake
generator target behave like the ide one. Showed up because I started to do
scripted builds with nmake instead of devenv...
The rest is the usual bunch of stuff that just happens during normal
coding ..."
2009-11-18 12:15:29 +00:00
Robert Osfield
199067d150
From Martin Spott, compile fixes for IBM AIX.
2009-03-10 11:14:56 +00:00
Robert Osfield
8264b31fa1
Introduce osg::asciiToDouble/asciiToFloat function.
2008-11-23 11:35:43 +00:00
Robert Osfield
f4afa427a7
From Roland Smeenk, "Attached you will find a large set of small typo fixes (mainly in the comments)."
2007-12-10 17:30:18 +00:00
Robert Osfield
7086aeeebc
Removed log2 and replaced the places where is was used with a new Image::computeNumberOfMipmapLevels method.
2007-10-01 08:50:58 +00:00
Robert Osfield
a933587753
Rejigged the casting to avoid warnings under Windows
2007-09-12 16:20:40 +00:00
Robert Osfield
d8f875ec9e
Added log2(int) and log2(uint) methods
2007-09-11 20:54:39 +00:00
Robert Osfield
b89a1480fc
Removed int version of log2 to avoid possible errors in assuming log2(10) should ~= log2(10.0)
2007-09-11 20:24:48 +00:00
Robert Osfield
b63ce0dee9
From Art Tevs, Added log2 function.
2007-09-11 17:08:06 +00:00
Robert Osfield
6c74589014
Added signOrZero template method, and to Matrix_implementation.cpp usage of this
...
method in the get(Quat&) code.
2007-05-09 09:26:33 +00:00
Robert Osfield
3bfa8a27a8
From Edgar Ellis, "Changed return type of osg::equivalent methods from float/double to bool.
...
"
2006-10-02 13:11:32 +00:00
Robert Osfield
62edacece5
From David Guthrie, "I know there are 50,000 changes to osg/Math for OSX a day, but I
...
think it can be simplified quite a bit. The old code includes
<cmath> for pre-10.2 and anything using something other than g++ 4
and then uses std::isnan. For the most current version, it leaves
out cmath and uses isnan(). std::isnan and cmath work for the
current version, so I just made it include cmath if __APPLE__ is
defined and removed the ifdef between versions of OS X for isnan
related things.
This way the code is all the same, and it's not fragile to someone
including <cmath> prior to including osg/Math."
2006-08-24 20:16:25 +00:00
Robert Osfield
a33955a56b
From Daniel Larimer, fix for OSX 10.4 when gcc != 4
2006-08-23 14:17:06 +00:00
Robert Osfield
14f924c2af
From Daniel Larimer, "Apple updated their developer tools again and broke the __isnanf and
...
__isnand methods... replacing them with a call to isnan(v) seems to
work on both Xcode 2.3 and 2.4"
2006-08-10 08:45:42 +00:00
Robert Osfield
553d017fd9
From Daniel Trstenjak, build fixes for Hpux 11.11, Irix 6.5, Solaris 8 and Aix
2006-08-02 10:43:26 +00:00
Robert Osfield
587adca056
From Eric Wing, compile fix for OSX.
2006-05-15 11:53:21 +00:00
Robert Osfield
bd895f94d4
From Farshid Lashari, round funciton.
2006-05-09 09:35:12 +00:00
Robert Osfield
4bc13ec71b
From David Guthrie, OSX marco reworking to better handling different OSX versions.
2006-02-05 21:53:37 +00:00
Robert Osfield
43ad7114be
Reworking to avoid compile issues under VS6.0.
2005-05-20 15:45:12 +00:00
Robert Osfield
e82a63ca81
Cross platform build fixes.
2005-05-13 11:11:52 +00:00
Don BURNS
af3ac699aa
Rolled in Olaf's changes for HP-UX build
2005-04-05 19:08:48 +00:00
Robert Osfield
3b90a0e8a6
From Sébastien Kuntz, spelling and typo fixes
2004-08-31 13:19:30 +00:00
Robert Osfield
bfd1286b25
Add clamping to 0..1 bounds for each of the r,g,b,a components in
...
the CubeMapGenerator::set_pixel() method.
2004-06-04 11:35:13 +00:00
Robert Osfield
bd37f999c4
From Bob Kuehne, change on __DARWIN_OSX__ define to __APPLE__
2004-03-08 11:02:05 +00:00
Robert Osfield
4aa7afedf3
Removed include <iostream> where possible, replacing with istream or ostream and changing
...
std::cout/cerr to osg::notify().
2004-03-03 13:27:21 +00:00
Robert Osfield
f5e2f7c731
Added atan2f to the list of #define's into include/osg/Math.
2004-02-02 08:55:17 +00:00
Don BURNS
15f88f35b2
*** empty log message ***
2003-06-24 15:40:09 +00:00
Robert Osfield
559f5f93e5
Added an osg::absolute template function into osg/Math.
2003-04-08 09:42:03 +00:00
Robert Osfield
7877c55770
Implemented an osg::minimum and osg::maximum template functions to replace
...
the std::min/max functions previously used in parts of the osg, since the
std::min/max methods do not seem implemented under IRIX.
2003-02-24 12:02:00 +00:00
Robert Osfield
48bda9cc79
Added new Copyright/License notice to header and source files.
2003-01-21 16:45:36 +00:00
Robert Osfield
a4404a388d
Fixes for Cywin gcc3.x build in GL and Math headers.
...
Fix for VS build in osgshadowtexture.
2002-12-04 17:34:52 +00:00
Robert Osfield
aca6c3c4f9
Added #define DARWIN_OSX_PRE_10_2 and related #ifdef checks to cope with backwards compatiblity
...
with versions of OSX before 10.2.
2002-11-08 12:26:41 +00:00
Robert Osfield
5db3229b5f
Updates to Math for OSX build.
...
Added 3dmodelworld.com to the data source directory.
Fixed compile problem under VC6.0 in osgimpostor.
2002-11-08 10:25:08 +00:00
Robert Osfield
ee93b70033
From Pavel Moloshtan, fixes for Mingw32 build.
2002-09-12 20:30:41 +00:00
Robert Osfield
cf9e9e2b5b
Fixes to Math for MacOSX build.
...
Converted TextureCubeMap to unix file endings.
2002-08-30 15:32:59 +00:00
Robert Osfield
59a5e800fe
Moved #define's for OpenGL1.2 image formats into the include/osg/Image header
...
to allow compilation of the rgb plugin under Windows with its 1.1 OGL headers.
Added float.h to Math's compile path for VS7 compilation.
2002-08-26 13:04:43 +00:00
Robert Osfield
9e3a282429
Added guard to prevent VS7 builds using the #defines for cosf etc.
2002-08-24 21:12:51 +00:00
Robert Osfield
6d690740a6
Mods for HP-UX port.
2002-07-23 15:01:51 +00:00
Robert Osfield
80afddc08d
Checked in Tino Schwarze's port to HP-UX.
2002-07-23 10:48:22 +00:00
Robert Osfield
3a964a6b93
Updated docs and added osgGA
2002-07-16 20:07:32 +00:00
Robert Osfield
3700e7e2cd
Reimplemted the osgUtil::SceneView::setCalcNearFar() functionality to bring
...
it inline with the CullStack/CullVisitor implementation. Also added the
setSmallFeatureCullingPixelSize() method and wired them up inside
SceneView.cpp so they set the corresponding CullVisitor paramters.
Intergrated pfImage copying change in the Performer plugin, submission sent in by Ulrich Hertlein
2002-07-02 19:53:18 +00:00
Robert Osfield
156a9fbaea
Fixes for Visual .NET and Mingw builds, and fix MacOSX notify() crash.
2002-06-15 20:57:50 +00:00
Robert Osfield
52c36dde70
Added computation of occluders volume scaled relative to the frustum volume,
...
all volumes computed in eye coords.
2002-06-15 12:14:42 +00:00