Changeset 3230
- Timestamp:
- 08/04/04 10:27:43 (9 years ago)
- Location:
- OpenSceneGraph/trunk
- Files:
-
- 33 modified
-
Make/dependencies (modified) (1 diff)
-
Make/makedefs (modified) (10 diffs)
-
NEWS.txt (modified) (1 diff)
-
examples/osgcluster/broadcaster.cpp (modified) (9 diffs)
-
examples/osgcluster/broadcaster.h (modified) (3 diffs)
-
examples/osgcluster/osgcluster.cpp (modified) (1 diff)
-
examples/osgcluster/receiver.cpp (modified) (6 diffs)
-
examples/osgcluster/receiver.h (modified) (2 diffs)
-
examples/osgdem/GNUmakefile (modified) (1 diff)
-
include/osg/AnimationPath (modified) (1 diff)
-
include/osg/Array (modified) (2 diffs)
-
include/osg/AutoTransform (modified) (1 diff)
-
include/osg/CoordinateSystemNode (modified) (1 diff)
-
include/osg/Vec2d (modified) (1 diff)
-
include/osg/Vec2f (modified) (1 diff)
-
include/osg/Vec3d (modified) (1 diff)
-
include/osg/Vec3f (modified) (1 diff)
-
include/osg/Vec4f (modified) (1 diff)
-
include/osgDB/ReadFile (modified) (2 diffs)
-
include/osgText/Font (modified) (2 diffs)
-
include/osgText/String (modified) (1 diff)
-
include/osgUtil/CullVisitor (modified) (3 diffs)
-
include/osgUtil/SmoothingVisitor (modified) (1 diff)
-
src/osgPlugins/directx/directx.h (modified) (1 diff)
-
src/osgPlugins/gdal/GNUmakefile (modified) (1 diff)
-
src/osgPlugins/obj/glm.cpp (modified) (2 diffs)
-
src/osgPlugins/txp/trpage_sys.h (modified) (1 diff)
-
src/osgProducer/KeyboardMouseCallback.cpp (modified) (1 diff)
-
src/osgTerrain/GNUmakefile (modified) (1 diff)
-
src/osgText/DefaultFont.h (modified) (1 diff)
-
src/osgText/String.cpp (modified) (1 diff)
-
src/osgText/Text.cpp (modified) (1 diff)
-
src/osgUtil/SmoothingVisitor.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/Make/dependencies
r2980 r3230 2 2 # Dependency library which have been installed on this system 3 3 4 GDAL_INSTALLED = no4 GDAL_INSTALLED = yes 5 5 JASPER_INSTALLED = no 6 6 -
OpenSceneGraph/trunk/Make/makedefs
r3206 r3230 198 198 FREETYPE_LIB = /usr/local/lib/libfreetype.a 199 199 endif 200 DYNAMICLIBRARYLIB = -ldl 201 OSG_LIBS = -losgGA -losgDB -losgUtil -losg 202 GL_LIBS = -lGLU -lGL 203 X_INC = -I/usr/X11R6/include 204 X_LIBS = -lXext -lXmu -lXi -lX11 205 SOCKET_LIBS = -lsocket -lnsl 206 INSTBINCMD = cp 207 INSTDEVCMD = cp 208 INST_LOCATION = /opt/OpenSceneGraph 209 MAKEDIST = $(TOPDIR)/Make/makepkg 210 OTHER_LIBS = -lOpenThreads 200 201 DYNAMICLIBRARYLIB = -ldl 202 OSG_LIBS = -losgGA -losgDB -losgUtil -losg 203 GL_LIBS = -lGLU -lGL 204 X_INC = -I/usr/X11R6/include 205 X_LIBS = -lXext -lXmu -lXi -lX11 206 SOCKET_LIBS = -lsocket -lnsl 207 INSTBINCMD = cp 208 INSTDEVCMD = cp 209 INST_LOCATION = /opt/OpenSceneGraph 210 MAKEDIST = $(TOPDIR)/Make/makepkg 211 OTHER_LIBS = -lOpenThreads 212 213 GDAL_INCLUDES = -I`gdal-config --prefix`/include 214 GDAL_LIBS = `gdal-config --dep-libs` 215 GDAL_LIBS += `gdal-config --libs` 216 217 211 218 endif 212 219 … … 291 298 MAKEDIST = $(TOPDIR)/Make/makeirixdist 292 299 300 GDAL_INCLUDES = -I`gdal-config --prefix`/include 301 GDAL_LIBS = `gdal-config --dep-libs` 302 GDAL_LIBS += `gdal-config --libs` 303 304 293 305 endif 294 306 … … 369 381 endif 370 382 383 GDAL_INCLUDES = -I`gdal-config --prefix`/include 384 GDAL_LIBS = `gdal-config --dep-libs` 385 GDAL_LIBS += `gdal-config --libs` 386 371 387 endif 372 388 … … 396 412 TIFF_LIB = -ltiff 397 413 GIF_LIBS = -lungif 414 415 GDAL_INCLUDES = -I`gdal-config --prefix`/include 416 GDAL_LIBS = `gdal-config --dep-libs` 417 GDAL_LIBS += `gdal-config --libs` 418 398 419 endif 399 420 … … 442 463 TIFF_LIBS = -ltiff -lz -ljpeg 443 464 465 GDAL_INCLUDES = -I`gdal-config --prefix`/include 466 GDAL_LIBS = `gdal-config --dep-libs` 467 GDAL_LIBS += `gdal-config --libs` 468 444 469 endif 445 470 … … 452 477 OPTF = -O2 453 478 DBGF = -g -DOSG_COMPILE_UNIT_TESTS 454 SHARED = -shared \455 -Wl,--out-implib,$(TOPDIR)/lib/$(OS)/lib$(TARGET_BASENAME).dll.a456 -Wl,--export-all-symbols479 SHARED = -shared \ 480 -Wl,--out-implib,$(TOPDIR)/lib/$(OS)/lib$(TARGET_BASENAME).dll.a \ 481 -Wl,--export-all-symbols 457 482 458 483 EXE_EXT =.exe … … 472 497 GIF_LIBS = -lungif 473 498 TIFF_LIB = -ltiff -lz -ljpeg 474 FREETYPE_LIB = -lfreetype 499 FREETYPE_LIB = `freetype-config --libs` 500 501 GDAL_INCLUDES = -I`gdal-config --prefix`/include 502 GDAL_LIBS = `gdal-config --dep-libs` 503 GDAL_LIBS += `gdal-config --libs` 475 504 476 505 LIBINST = bin … … 496 525 #### Mingw specific definitions 497 526 ifeq ($(OS),MINGW) 498 C++ = c++ -mthreads 527 C++ = c++ -mthreads 528 # -fomit-frame-pointer -march=pentium3 -msse -mmmx -mfpmath=sse 499 529 DEPARG = -M 500 530 INC += 501 531 DEF += -DWIN32 -Wall 502 532 # -W 503 OPTF = -O2 533 OPTF = -O2 504 534 DBGF = -g -DOSG_COMPILE_UNIT_TESTS 505 535 SHARED = -shared -mthreads \ … … 524 554 TIFF_LIB = -ltiff -lz -ljpeg 525 555 FREETYPE_LIB = -lfreetype 556 GDAL_LIB = -lgdal -ljpeg -lgeotiff -ltiff -lpng -lz 526 557 527 558 LIBXML2_INCLUDE = -I/usr/mingw/include/libxml2 … … 593 624 GIF_LIBS = -L/opt/libungif/lib -lungif 594 625 626 GDAL_INCLUDES = -I`gdal-config --prefix`/include 627 GDAL_LIBS = `gdal-config --dep-libs` 628 GDAL_LIBS += `gdal-config --libs` 629 595 630 endif 596 631 -
OpenSceneGraph/trunk/NEWS.txt
r3227 r3230 11 11 12 12 DatabasePager 13 14 Double Vec & Matrix classes 13 15 14 16 osgUtil - tristipper, simplifier, GLObjectVisitor. -
OpenSceneGraph/trunk/examples/osgcluster/broadcaster.cpp
r2788 r3230 3 3 #include <sys/types.h> 4 4 5 #if !defined (WIN32) 5 #if !defined (WIN32) || defined(__CYGWIN__) 6 6 #include <sys/ioctl.h> 7 7 #include <sys/uio.h> … … 27 27 #include <net/soioctl.h> 28 28 #elif defined(__CYGWIN__) 29 // nothing needed29 #include <unistd.h> 30 30 #elif defined(__sun) 31 31 #include <unistd.h> … … 57 57 Broadcaster::~Broadcaster( void ) 58 58 { 59 #if defined (WIN32) 59 #if defined (WIN32) && !defined(__CYGWIN__) 60 60 closesocket( _so); 61 61 #else … … 66 66 bool Broadcaster::init( void ) 67 67 { 68 #if defined (WIN32) 68 #if defined (WIN32) && !defined(__CYGWIN__) 69 69 WORD version = MAKEWORD(1,1); 70 70 WSADATA wsaData; … … 84 84 return false; 85 85 } 86 #if defined (WIN32) 86 #if defined (WIN32) && !defined(__CYGWIN__) 87 87 const BOOL on = TRUE; 88 88 #else … … 90 90 #endif 91 91 92 #if defined (WIN32) 92 #if defined (WIN32) && !defined(__CYGWIN__) 93 93 setsockopt( _so, SOL_SOCKET, SO_REUSEADDR, (const char *) &on, sizeof(int)); 94 94 #else … … 100 100 if( _address == 0 ) 101 101 { 102 #if defined (WIN32) 102 #if defined (WIN32) && !defined(__CYGWIN__) 103 103 setsockopt( _so, SOL_SOCKET, SO_BROADCAST, (const char *) &on, sizeof(int)); 104 104 #else … … 106 106 #endif 107 107 108 #if !defined (WIN32) 108 #if !defined (WIN32) || defined(__CYGWIN__) 109 109 struct ifreq ifr; 110 110 #endif 111 #if defined (__linux) 111 #if defined (__linux) || defined(__CYGWIN__) 112 112 strcpy( ifr.ifr_name, "eth0" ); 113 113 #elif defined(__sun) … … 175 175 } 176 176 177 #if defined (WIN32) 177 #if defined (WIN32) && !defined(__CYGWIN__) 178 178 unsigned int size = sizeof( SOCKADDR_IN ); 179 179 sendto( _so, (const char *)_buffer, _buffer_size, 0, (struct sockaddr *)&saddr, size ); -
OpenSceneGraph/trunk/examples/osgcluster/broadcaster.h
r1697 r3230 8 8 // 9 9 10 #if ndef WIN3210 #if !defined(WIN32) || defined(__CYGWIN__) 11 11 #include <netinet/in.h> 12 12 #endif … … 37 37 38 38 private : 39 #if defined (WIN32)39 #if defined(WIN32) && !defined(__CYGWIN__) 40 40 SOCKET _so; 41 41 #else … … 46 46 void *_buffer; 47 47 unsigned int _buffer_size; 48 #if defined (WIN32)48 #if defined(WIN32) && !defined(__CYGWIN__) 49 49 SOCKADDR_IN saddr; 50 50 #else -
OpenSceneGraph/trunk/examples/osgcluster/osgcluster.cpp
r3067 r3230 13 13 #include <osg/Quat> 14 14 15 #if defined (WIN32) 15 #if defined (WIN32) && !defined(__CYGWIN__) 16 16 #include <winsock.h> 17 17 #endif -
OpenSceneGraph/trunk/examples/osgcluster/receiver.cpp
r1697 r3230 2 2 #include <fcntl.h> 3 3 #include <sys/types.h> 4 #if defined (WIN32) 4 #if defined (WIN32) && !defined(__CYGWIN__) 5 5 #include <winsock.h> 6 6 #else … … 27 27 Receiver::~Receiver( void ) 28 28 { 29 #if defined (WIN32) 29 #if defined (WIN32) && !defined(__CYGWIN__) 30 30 closesocket( _so); 31 31 #else … … 36 36 bool Receiver::init( void ) 37 37 { 38 #if def WIN3238 #if defined(WIN32) && !defined(__CYGWIN__) 39 39 WORD version = MAKEWORD(1,1); 40 40 WSADATA wsaData; … … 54 54 return false; 55 55 } 56 #if defined (WIN32) 56 #if defined (WIN32) && !defined(__CYGWIN__) 57 57 // const BOOL on = TRUE; 58 58 // setsockopt( _so, SOL_SOCKET, SO_REUSEADDR, (const char*) &on, sizeof(int)); … … 65 65 saddr.sin_family = AF_INET; 66 66 saddr.sin_port = htons( _port ); 67 #if defined (WIN32) 67 #if defined (WIN32) && !defined(__CYGWIN__) 68 68 saddr.sin_addr.s_addr = htonl(INADDR_ANY); 69 69 #else … … 118 118 tv.tv_usec = 0; 119 119 120 #if defined (WIN32) 120 #if defined (WIN32) && !defined(__CYGWIN__) 121 121 // saddr.sin_port = htons( _port ); 122 122 recvfrom( _so, (char *)_buffer, _buffer_size, 0, (sockaddr*)&saddr, &size ); -
OpenSceneGraph/trunk/examples/osgcluster/receiver.h
r1697 r3230 9 9 // 10 10 11 #if ndef WIN3211 #if !defined(WIN32) || defined(__CYGWIN__) 12 12 #include <netinet/in.h> 13 13 #endif … … 34 34 35 35 private : 36 #if defined (WIN32) 36 #if defined (WIN32) && !defined(__CYGWIN__) 37 37 SOCKET _so; 38 #else39 int _so;40 #endif41 #if defined (WIN32)42 38 SOCKADDR_IN saddr; 43 39 #else 40 int _so; 44 41 struct sockaddr_in saddr; 45 42 #endif -
OpenSceneGraph/trunk/examples/osgdem/GNUmakefile
r3200 r3230 5 5 osgdem.cpp\ 6 6 7 ifneq ("$(GDAL_INCLUDES)","")8 7 INC += $(GDAL_INCLUDES) 8 9 LIBS += -losgProducer -lProducer -losgTerrain -losgFX -losgGL2 -losgText -losgGA -losgDB -losgUtil -losg $(GDAL_LIBS) $(GL_LIBS) $(X_LIBS) $(OTHER_LIBS) 10 11 ifeq ($(OS),MINGW) 12 LIBS += -ljpeg -lpng -lgeotiff -ltiff -lz -L/usr/mingw/lib/malloc.o 9 13 endif 10 11 ifneq ("$(GDAL_LIB_DIR)","")12 LDFLAGS += -L$(GDAL_LIB_DIR)13 endif14 15 LIBS += -losgProducer -lProducer -losgTerrain -losgFX -losgGL2 -losgText -losgGA -losgDB -losgUtil -losg -lgdal $(GL_LIBS) $(X_LIBS) $(OTHER_LIBS)16 14 17 15 INSTFILES = \ -
OpenSceneGraph/trunk/include/osg/AnimationPath
r3008 r3230 15 15 #define OSG_ANIMATIONPATH 1 16 16 17 #include <map> 18 #include <istream> 19 #include <float.h> 20 17 21 #include <osg/Matrixf> 18 22 #include <osg/Matrixd> 19 23 #include <osg/Quat> 20 24 #include <osg/NodeCallback> 21 22 #include <map>23 #include <istream>24 #include <float.h>25 25 26 26 namespace osg { -
OpenSceneGraph/trunk/include/osg/Array
r3208 r3230 15 15 #define OSG_ARRAY 1 16 16 17 #include < osg/Object>18 #include <osg/GL> 17 #include <vector> 18 19 19 #include <osg/Vec2> 20 20 #include <osg/Vec3> … … 22 22 #include <osg/UByte4> 23 23 24 #include <vector> 24 #include <osg/Object> 25 #include <osg/GL> 25 26 26 27 namespace osg { -
OpenSceneGraph/trunk/include/osg/AutoTransform
r2761 r3230 15 15 #define OSG_AUTOTRANSFORM 1 16 16 17 #include <osg/AnimationPath> 17 18 #include <osg/Group> 18 19 #include <osg/Transform> 19 #include <osg/AnimationPath>20 20 #include <osg/Quat> 21 21 -
OpenSceneGraph/trunk/include/osg/CoordinateSystemNode
r3051 r3230 148 148 X = (N+height)*cos_latitude*cos(longitude); 149 149 Y = (N+height)*cos_latitude*sin(longitude); 150 Z = (N*(1-_eccentricitySquared)+height)*sin (latitude);150 Z = (N*(1-_eccentricitySquared)+height)*sin_latitude; 151 151 } 152 152 -
OpenSceneGraph/trunk/include/osg/Vec2d
r3134 r3230 16 16 17 17 #include <osg/Vec2f> 18 19 #include <ostream>20 18 21 19 namespace osg { -
OpenSceneGraph/trunk/include/osg/Vec2f
r3048 r3230 15 15 #define OSG_VEC2F 1 16 16 17 #include <ostream> 18 17 19 #include <osg/Math> 18 19 #include <ostream>20 20 21 21 namespace osg { -
OpenSceneGraph/trunk/include/osg/Vec3d
r3134 r3230 17 17 #include <osg/Vec3f> 18 18 19 #include <ostream>20 21 19 namespace osg { 22 20 -
OpenSceneGraph/trunk/include/osg/Vec3f
r3011 r3230 15 15 #define OSG_VEC3F 1 16 16 17 #include <ostream> 18 17 19 #include <osg/Math> 18 19 #include <ostream>20 20 21 21 namespace osg { -
OpenSceneGraph/trunk/include/osg/Vec4f
r3008 r3230 17 17 #include <osg/Vec3f> 18 18 19 #include <ostream>20 21 19 namespace osg { 22 20 -
OpenSceneGraph/trunk/include/osgDB/ReadFile
r2877 r3230 15 15 #define OSGDB_READFILE 1 16 16 17 #include <string> 18 17 19 #include <osg/Node> 18 20 #include <osg/Image> … … 21 23 #include <osgDB/Export> 22 24 #include <osgDB/Registry> 23 24 #include <string>25 25 26 26 namespace osgDB { -
OpenSceneGraph/trunk/include/osgText/Font
r3159 r3230 15 15 #define OSGTEXT_FONT 1 16 16 17 #include <string> 18 17 19 #include <osg/Vec2> 18 20 #include <osg/Image> … … 23 25 24 26 #include <osgText/Export> 25 26 #include <string>27 27 28 28 namespace osgText { -
OpenSceneGraph/trunk/include/osgText/String
r2674 r3230 15 15 #define OSGTEXT_STRING 1 16 16 17 #include <osg/Referenced>18 #include <osgText/Export>19 20 17 #include <vector> 21 18 #include <set> 22 19 #include <string> 20 21 #include <osg/Referenced> 22 #include <osgText/Export> 23 23 24 24 namespace osgText { -
OpenSceneGraph/trunk/include/osgUtil/CullVisitor
r3214 r3230 15 15 #define OSGUTIL_CULLVISITOR 1 16 16 17 #include <map> 18 #include <vector> 19 17 20 #include <osg/NodeVisitor> 18 21 #include <osg/BoundingSphere> … … 25 28 #include <osg/ClearNode> 26 29 #include <osg/Notify> 27 #include <osg/Notify>28 30 29 31 #include <osg/CullStack> … … 31 33 #include <osgUtil/RenderGraph> 32 34 #include <osgUtil/RenderStage> 33 34 #include <map>35 #include <vector>36 35 37 36 #include <osg/Vec3> -
OpenSceneGraph/trunk/include/osgUtil/SmoothingVisitor
r1529 r3230 31 31 32 32 /// default to traversing all children. 33 SmoothingVisitor() 34 { 35 setTraversalMode(osg::NodeVisitor::TRAVERSE_ALL_CHILDREN); 36 } 37 33 SmoothingVisitor(); 34 virtual ~SmoothingVisitor(); 35 38 36 /// smooth geoset by creating per vertex normals. 39 37 static void smooth(osg::Geometry& geoset); -
OpenSceneGraph/trunk/src/osgPlugins/directx/directx.h
r1471 r3230 25 25 #define _DIRECTX_H_ 26 26 27 #include <osg/Math>28 29 27 #include <string> 30 28 #include <vector> 31 29 #include <fstream> 30 31 #include <osg/Math> 32 32 33 33 namespace DX { -
OpenSceneGraph/trunk/src/osgPlugins/gdal/GNUmakefile
r3200 r3230 5 5 ReaderWriterGDAL.cpp\ 6 6 7 ifneq ("$(GDAL_INCLUDES)","") 7 8 8 INC += $(GDAL_INCLUDES) 9 endif10 9 11 ifneq ("$(GDAL_LIB_DIR)","") 12 LDFLAGS += -L$(GDAL_LIB_DIR) 13 endif 14 15 LIBS += $(OSG_LIBS) -lgdal $(OTHER_LIBS) 10 LIBS += $(OSG_LIBS) $(GDAL_LIBS) $(OTHER_LIBS) 16 11 17 12 TARGET_BASENAME = gdal -
OpenSceneGraph/trunk/src/osgPlugins/obj/glm.cpp
r2530 r3230 9 9 10 10 /* includes */ 11 #include "glm.h" 11 12 #include <math.h> 12 13 #include <stdio.h> … … 15 16 #include <osg/Math> 16 17 #include <stdlib.h> 17 #include "glm.h"18 18 19 19 #include <osg/Math> -
OpenSceneGraph/trunk/src/osgPlugins/txp/trpage_sys.h
r2570 r3230 38 38 #include <windows.h> 39 39 40 #ifdef __MSC_VER 40 41 // Microsoft Developer warnings that annoy me 41 42 #pragma warning ( disable : 4251) 42 43 #pragma warning ( disable : 4275) 43 44 #pragma warning ( disable : 4786) 45 #endif 44 46 45 47 // Somewhat system independent file deletion macro -
OpenSceneGraph/trunk/src/osgProducer/KeyboardMouseCallback.cpp
r2427 r3230 1 #include <osgProducer/KeyboardMouseCallback> 2 1 3 #include <osg/Math> 2 4 #include <osg/Notify> 3 4 #include <osgProducer/KeyboardMouseCallback>5 5 6 6 #include <float.h> -
OpenSceneGraph/trunk/src/osgTerrain/GNUmakefile
r3200 r3230 9 9 Version.cpp\ 10 10 11 ifneq ("$(GDAL_INCLUDES)","")12 INC += $(GDAL_INCLUDES)13 endif14 15 ifneq ("$(GDAL_LIB_DIR)","")16 LDFLAGS += -L$(GDAL_LIB_DIR)17 endif18 19 11 DEF += -DOSGTERRAIN_LIBRARY 20 12 21 LIBS += -losgDB -losgUtil -losg -lgdal $(GL_LIBS) $(OTHER_LIBS) 13 INC += $(GDAL_INCLUDES) 14 15 LIBS += -losgDB -losgUtil -losg $(GDAL_LIBS) $(GL_LIBS) $(OTHER_LIBS) 22 16 23 17 TARGET_BASENAME = osgTerrain -
OpenSceneGraph/trunk/src/osgText/DefaultFont.h
r1994 r3230 15 15 #define NEWTEXT_DEFAULTFONT_H 1 16 16 17 #include <map> 18 17 19 #include <osg/ref_ptr> 18 20 19 21 #include <osgText/Font> 20 21 #include <map>22 22 23 23 namespace osgText { -
OpenSceneGraph/trunk/src/osgText/String.cpp
r2674 r3230 1 1 #include <osgText/String> 2 2 3 #include <osg/Notify> 3 4 #include <osg/Math> 4 #include <osg/Notify>5 5 6 6 using namespace osgText; -
OpenSceneGraph/trunk/src/osgText/Text.cpp
r3195 r3230 13 13 14 14 15 #include <vector> 16 #include <osgText/Text> 17 18 #include <osg/Math> 15 19 #include <osg/GL> 16 #include <osg/Math>17 20 #include <osgUtil/CullVisitor> 18 21 #include <osgDB/ReadFile> 19 #include <osgText/Text>20 22 21 23 #include "DefaultFont.h" -
OpenSceneGraph/trunk/src/osgUtil/SmoothingVisitor.cpp
r2315 r3230 87 87 }; 88 88 89 SmoothingVisitor::SmoothingVisitor() 90 { 91 setTraversalMode(osg::NodeVisitor::TRAVERSE_ALL_CHILDREN); 92 } 93 94 SmoothingVisitor::~SmoothingVisitor() 95 { 96 } 97 89 98 void SmoothingVisitor::smooth(osg::Geometry& geom) 90 99 {
