Robert Osfield
ffa75c9c84
Changed the _ARB cube map defines to non ARB versions.
2010-10-09 11:51:24 +00:00
Robert Osfield
a9dd08c3ba
Removed redudent set up of GL_ cubemap defines as these are now also in include/osg/Texture
2010-10-09 11:27:45 +00:00
Robert Osfield
270a9fc47e
Tempory fix for regression due to remove of glPushAttrib/glPopAttrib
2010-10-08 18:53:16 +00:00
Robert Osfield
2aa231cd11
Disabled the build of Qt examples when building against GLES1 & 2 as Qt GL includes OpenGL headers itself that cause conflict.
2010-10-08 18:13:10 +00:00
Robert Osfield
078b21fa1e
Build fixes for GLES1, GLES2 and GL3
2010-10-08 17:13:59 +00:00
Robert Osfield
9984281553
Refactored the Texture3D extension setup in osg::Texture3D and gluBuild3DMipmaps and gluBuild3DMipmapLevels.
2010-10-08 11:20:56 +00:00
Robert Osfield
d23ce985a1
Introduced osg namespace to new local GLU functions
2010-10-07 11:53:28 +00:00
Robert Osfield
12e6a23451
Introduced new gluScaleImage function that uses a PixelStorageModes structure to pass in details on image packing,
...
rather than relying upon glGet's to get the values.
2010-10-07 10:51:22 +00:00
Robert Osfield
021484440c
Added #define GL_PROXY_TEXTURE_3D
2010-10-06 19:09:48 +00:00
Robert Osfield
477524f254
Fixed warning
2010-10-06 18:51:53 +00:00
Robert Osfield
46e798a4dc
Changed tabs to 8 spaces
2010-10-06 18:37:43 +00:00
Robert Osfield
e928dfb6c7
From Jean-Sebastien Guay and Robert Osfield, build fix for Windows
2010-10-06 18:34:36 +00:00
Robert Osfield
6a00d7d356
Added #define for Windows build
2010-10-06 18:29:23 +00:00
Robert Osfield
ca4802142d
Added #define GLAPIENTRY to attempt to resolve some Windows build issues
2010-10-06 17:19:01 +00:00
Robert Osfield
29bc5995e7
Added #define's and local include<osg/Image> to fix Windows GL 1.1 build against
2010-10-06 16:36:30 +00:00
Robert Osfield
8a6b0f0cef
From Jean-Sebasien Guay, fix windows compile error
2010-10-06 16:29:16 +00:00
Robert Osfield
7859a2a46d
Removed gluois.h reference
2010-10-06 15:33:43 +00:00
Robert Osfield
10eac072c2
Removed usage gluos.h and redundent gluint.h
2010-10-06 15:14:01 +00:00
Robert Osfield
89f7726383
Copied libutil and libtess implementations in form Mesa 7.9/src/glu into the src/osg/glu,
...
changed extensions from .c to .cpp and got compiling as C files as part of the osg core library.
Updated and cleaned up the rest of the OSG to use the new internal GLU.
2010-10-06 14:44:52 +00:00
Robert Osfield
6df7dbf626
Improved the handling of matrices in serialization so that it's more reliable,
...
change was to use doubles for reading and writing matrices regardless of type of Matrix
being serialized.
Change does break backwards compatibility though, so code
path supporting original format has been left in for the
time being. However, this code is not reliable enough and
is over complicated compared to the simplified handling. Once
the new code has been bedded down for a while I'll remove this code block.
2010-10-04 15:23:19 +00:00
Robert Osfield
e6559af283
From Stephan Huber, "just a follow-up: I looked at the code of osg/Referenced.cpp and notice
...
a discrepancy in getOrCreateObserverSet. For the atomic- and
mutex-codepaths the newly created observerset gets manually ref'ed, but
not in the codepath used when OPENTHREADS_ATOMIC_USE_MUTEX is defined. I
added the manual ref and tadaaa, the crash went away."
2010-10-04 11:29:39 +00:00
Robert Osfield
b9f0efecb1
Added glMultMatrixf path for GLES1
2010-10-04 11:24:54 +00:00
Robert Osfield
b069b32c64
Added checks for NULL images to prevent crashes when no valid images are created
2010-10-04 11:19:41 +00:00
Robert Osfield
f81a9eff50
From Wojciech Lewandowski, "As promised I prepared a patch to expose WGL_SWAP_METHOD / PFD_SWAP_METHOD selection via GraphicsContext::Traits. Since Traits don't define any enums (I guess to be simple to use) I tried to keep it that way and have added two boolean values: swapCopy & swapExchange. It is somewhat similar approach to GDI PixelFormatDescription were both options can be present together. Feel free to replace it with enum if you find it more appropriate.
...
I also uderstand that there is a need to select system wide default method and have also modified DisplaySettings to contain swapMethod parameter. Swap method in Traits uses value set in DisplaySettings as default. Proper environment and command line args were added. Its possible to define default DeisplaySettings swap method in standard way via system flags or with comand line.
Env Vars:
OSG_SWAP_METHOD = DEFAULT | COPY | EXCHANGE
or Command Line:
--swap-method DEFAULT | COPY | EXCHANGE
I also added handling of WM_ERASEBKGND in GraphicsWindowWin32. It may be unneccessary but code should be safer this way than without handling it. I have placed a comment explaining the reason above the change.
Changes were made against today trunk.
PS. I tested only Windows code. I briefly checked X11 & Cocoa files but have not noticed SwapMethod to be used there.
"
2010-10-01 18:02:24 +00:00
Robert Osfield
c294814e95
2010-10-01 17:07:27 +00:00
Robert Osfield
fbbc8824cf
From Magnes Kessler, "Attached are some fixes for the environment variable help strings in
...
DisplaySettings. They contain spelling fixes and an attempt to use consistent
expressions throughout."
2010-10-01 15:58:49 +00:00
Robert Osfield
8f2497e21d
From Wojciech Lewandowski,"These are our changes to DatabasePager. To check if parent PLOD is registered, I resurrected PagedLODList::containsPagedLOD() method. This method was available some time ago, but got removed and was not currently present in trunk. To add this method I had to also modify the DatabasePager header. "
2010-10-01 15:37:35 +00:00
Robert Osfield
e5bc43f04c
From Magnus Kessler, "After a closer look at this particular issue, I used some grep and sed magic
...
to fix all occurrences of "macro's" and "paramter".
"
2010-09-30 16:57:02 +00:00
Robert Osfield
17aaa4db94
From Craig Bosma, "Attached is an updated Image.cpp that fixes a very specific
...
compatability regression that was introduced almost 2 years ago in
r8834. The IVE version number was bumped to 32 because of the change
in binary layout, but the guard for reading/writing the new field was
checked against 31. Of course this only causes a problem (as for us)
when you've produced IVE files at version 31, which no longer load (or
crash) when loaded by newer OSG/IVE versions."
2010-09-30 16:31:22 +00:00
Robert Osfield
34fa992ff5
From Chuck Seberino, "Here is a small optimization in osgDB/Serializer that only uses a single accessor call when retrieving serializable values during writing. This is a sizable win for some of my code since the getter() methods are non-trivial. I also removed some explicit namespace qualifiers to be consistent with the rest of the codebase."
2010-09-30 16:03:04 +00:00
Robert Osfield
0eded3efbe
From WojciechLewandowski, Added DispaySettings::SwapMethod and support for it in GraphicsContext::Traits
2010-09-30 14:25:27 +00:00
Robert Osfield
ff68236bad
From Stephan Huber, fixed build under OSX 10.5.
2010-09-30 09:40:48 +00:00
Robert Osfield
ab1920c427
From Wang Rui, "I've fixed the problem that osgx format doesn't read the Font property and wrapped string correctly. The first problem happened because the matchString() made a mistake in comparing two strings with the same start but different size. The second just needs complete rewriting of writeWrappedString() and readWrappedString() in src/osgPlugins/osg/XmlStreamOperator.h
...
I also fixed a possible bug in osgDB::XmlParser that doesn't handle control characters (like " to ") when reading node attributes, because the writeWrappedString() and readWrappedString() now depend heavily on control characters. An additional improvement is that osgx now supports comments."
2010-09-30 09:34:41 +00:00
Robert Osfield
47af827648
Fixed Text3D's handling of character aspect ratio.
2010-09-29 13:21:34 +00:00
Robert Osfield
dab1c79127
Moved handling of character aspect ratio into osgText::Style.
2010-09-29 12:45:35 +00:00
Robert Osfield
9bde24d3d2
Added command line option for writing out the scene graph to file.
2010-09-29 12:38:56 +00:00
Robert Osfield
b40acacf53
Moved set/getFont from Text/Text3D into TextBase
2010-09-29 11:34:55 +00:00
Robert Osfield
e942cc770a
Removed getScale() parameter from osgText::Font
2010-09-29 11:09:32 +00:00
Robert Osfield
5c3a1b3069
Fixed type of numberical constant
2010-09-29 10:54:53 +00:00
Robert Osfield
5af4884558
Moved Text3D across to using Style for character thickness.
...
Quitened down debug messages in 3D text geometry creation.
Improved the Text3D implementation of the new 3D text geometry.
2010-09-27 17:11:12 +00:00
Robert Osfield
f8b44c3b33
Added support for osgText::Style into osgText::Text3D.
...
Refactored Text3D implementation to use new GlyphGeometry class.
Implemented GlyphGeometry backend and cleaned up Glyph3D interface.
2010-09-27 16:18:20 +00:00
Robert Osfield
759749eb0c
Changed the reading of animation paths so that it's always done without using the osgDB object cache.
...
This fixes a bug of reusing the animination path in an P3D file.
2010-09-27 09:58:07 +00:00
Robert Osfield
fdfad4848b
Added include<osg/Geode> to fix compile error
2010-09-26 11:02:03 +00:00
Robert Osfield
f6517d2f8b
From Alexander Wiebel, "I did some spell checking in my spare time. Here come 20 files."
2010-09-24 14:53:10 +00:00
Robert Osfield
73a4e775c0
From Jean-Sebastien Guay, "Changeset 10833 renames discardAllDeletedGLObjects() to discardAllGLObjects() in src/osg/GLObjects.cpp, but the declaration of the function in include/osg/GLObjects remained. So an app using an old version of OSG that called this function would now fail with a linker error instead of a compile error as it should.
...
Removed the declaration. Also fixed a small typo in the following doxygen comment."
2010-09-24 14:40:56 +00:00
Robert Osfield
eb3d76f291
From Mikhail Izmestev, "This patch fixes operator >> used with std::istream without std::ios::skipws flag. This allow using boost::lexical_cast with osg vectors types, because boost's lexical_cast disable std::ios::skipws flag of std::istream before using operator >>.
...
"
2010-09-24 14:38:01 +00:00
Robert Osfield
1224836664
From Eric Wing, QTKit plugin for reading movies under OSX using QTKit + CoreVideo
2010-09-24 12:59:37 +00:00
Robert Osfield
c006c75615
Moved Style and Bevel classes out into their own include/osgText/Style header.
...
Introduced GlyphGeometry class for handling the geometry data for rendering 3D text
2010-09-24 12:57:55 +00:00
Robert Osfield
d9a133476a
Refactored the handling of readImage/writeImage/readObject/writeObject to avoid double setting of unique ID's, fixing the problem in reading/writing files with images
2010-09-23 16:12:05 +00:00
Robert Osfield
915b38dc25
Added deprecated notices.
2010-09-22 09:50:07 +00:00