Robert Osfield
4b71e3948b
Added VertexBufferObject and ElementBufferObject class interfaces, and wired
...
up osg::Array and osg::DrawElements* to these respectively.
Updated wrappers
2007-04-25 18:50:11 +00:00
Robert Osfield
5325653f30
Cleaned up numToTop method
2007-04-25 10:32:28 +00:00
Robert Osfield
cfe746f795
From Martin Aumueller, fixed unused parameter warnings
2007-04-25 10:12:46 +00:00
Robert Osfield
0e6bcc61f0
Updated version to 1.9.1
2007-04-23 20:21:06 +00:00
Robert Osfield
f242570269
Unified the setup of version numbers so that they all are based on the version
...
number setup in the include/osg/Version header file.
2007-04-22 20:19:43 +00:00
Robert Osfield
abd0c7fe67
Added support for sorting the graphics contexts so that the first context/window
...
returned from Viewer::getContexts/getWindows will be the left most window on the lowest screen number.
Added ability for StatsHandler and HelpHandler to support end users setting their
Camera's graphics context.
2007-04-20 16:17:48 +00:00
Robert Osfield
835e315494
Implement basic TerrainGeometry code
2007-04-16 19:34:25 +00:00
Robert Osfield
9db23e0b22
Fixed bug associated with complex RenderBin setup.
2007-04-16 12:18:56 +00:00
Robert Osfield
934ed30314
Added setWindowRectangle implementation for GraphicsWindowWin32, and
...
place holder for setWindowRectangle implementation for GraphicsWindowCarbon.
2007-04-13 14:23:10 +00:00
Robert Osfield
035b98993f
Added s/getWindowRectangle to GraphicsWindow and implementation in GraphicsWindowX11
2007-04-13 13:22:52 +00:00
Robert Osfield
07c3503dbb
Changed hitItr to be a const_iterator.
2007-04-13 13:19:29 +00:00
Robert Osfield
5954722c07
From Mike Wittman, fix to CopyOp&.
2007-04-12 09:32:34 +00:00
Robert Osfield
73f980bd49
Prep work on new TerrainGeometry Drawable which supports selective display list/VBO's usage.
...
Updated wrappers
2007-04-11 17:39:13 +00:00
Robert Osfield
557fdacba2
Added support for multiple colour layers, and fixed handling of elevation
...
and colour layers having different locator
2007-04-11 11:20:04 +00:00
Robert Osfield
cc1ab2c711
Create new incliude/osgViewer/api directory to hold platform specific classes such as GraphicsWindow implementations.
...
Moved GraphicsWindowWin32,X11 and Carbon into their api/Win32, api/X11 and api/Carbon directories.
2007-04-10 11:03:37 +00:00
Robert Osfield
6d7b5e7ebd
From Eric Wing, pedantic warning fixes
2007-04-06 15:36:13 +00:00
Robert Osfield
8a5b8d9656
Set default ShadeModel back to SMOOTH
2007-04-05 20:27:02 +00:00
Robert Osfield
6c12c71337
Added constructor argument to ShadeModel
2007-04-05 16:12:10 +00:00
Robert Osfield
538a83dad4
Added support for flushing buffer objects
2007-04-04 09:07:46 +00:00
Robert Osfield
9b5bbe862d
From Mike Wittman, C# build fixes
2007-04-04 08:05:23 +00:00
Robert Osfield
307a9a9a78
From Andy Skinner, warning fix for Windows 64-bit build
2007-04-03 19:42:43 +00:00
Robert Osfield
31d9f40a2f
Preliminary work on TransferFunction support
2007-04-03 15:39:05 +00:00
Robert Osfield
43c24da12d
Added setValue method and osg::Image setup to osg::TransferFunction1D, and setup
...
of TransferFunction1D into osgterrain example.
2007-04-02 13:06:59 +00:00
Robert Osfield
d434ee0db8
Added support for reading values from an ImageLayer, and building of the
...
elevation data in GeometryTechnique.
2007-03-30 14:57:57 +00:00
Robert Osfield
a2ecb93c2b
Converted osg::HeightField across to using a osg::FloatArray internally to enable
...
it to be assigned as a vertex attribute array to an osg::Geometry.
Removed the osgTerrain::ArrayLayer as its no longer required thanks to the above change
which makes the osgTerrain::HeightFieldLayer more flexible.
Updated wrappers
2007-03-29 19:42:07 +00:00
Robert Osfield
5ba0e5b930
Fixed missing initializer in Options constrctor
2007-03-29 19:39:20 +00:00
Robert Osfield
0f507e317d
Removed the using to avoid VS 7.1 build problem
2007-03-29 15:41:59 +00:00
Robert Osfield
cb811aa7cd
Added support for compute the extents on local NDC coordiantes of the
...
elevation and colour layers
2007-03-28 16:28:20 +00:00
Robert Osfield
b7967b7007
From Mike Wittman, "Here is a change to the .cpp file to fix it by disambiguating the cull invocation."
2007-03-28 15:05:49 +00:00
Robert Osfield
7fc714ada1
Removed deprecated drawImplementation(State&) method from Drawable and Drawable::DrawCallback
2007-03-28 11:30:38 +00:00
Robert Osfield
d30a33247d
Replaced the X11 Window by Carbon WindowRef in the WindowData structure.
2007-03-28 08:52:44 +00:00
Robert Osfield
78ed8f9219
Add computeBound support to TerrainNode and Layer.
2007-03-27 19:27:36 +00:00
Robert Osfield
4688d5ae8e
Rearranged the traversal and initialization of TerrainTechnique
2007-03-27 16:01:01 +00:00
Robert Osfield
e76e4e82db
Added EllipsoidLocator.
2007-03-27 11:23:57 +00:00
Robert Osfield
404d583b3e
Added return false; to default implementations of convert functions
2007-03-26 19:24:18 +00:00
Robert Osfield
8dc2a28945
Removed WindowData parameter from init().
2007-03-26 16:28:26 +00:00
Robert Osfield
1cdda0654f
Added Locator and layer setting to osgterrain example
2007-03-26 15:52:22 +00:00
Robert Osfield
7013c12a0d
From Mike Wittman, "This is another weirdo change to support code generation. It brings all the Drawable::supports and Drawable::accepts overloads into the ShapeDrawable scope to avoid errors invoking the ones that are not defined in ShapeDrawable. Currently you'll get compilation errors if you pass a Drawable::AttributeFunctor or PrimitiveIndexFunctor to the "accept" function invoked on a ShapeDrawable pointer or reference, since those overloads are only defined in the base class. You'll also get the same error passing a PrimitiveIndexFunctor to the "supports" function. These errors occur because C++ function overload resolution does not cross inheritance boundaries."
2007-03-26 13:00:29 +00:00
Robert Osfield
37f4740c45
From Mike Wittman, remove redundent const from in front of unsigned int.
...
From Robert Osfield, updated wrappers
2007-03-23 17:27:53 +00:00
Robert Osfield
56a1808794
Added ImageLayer, ArrayLayer and HeightFieldLayer classes
2007-03-21 17:18:53 +00:00
Robert Osfield
541c3f13e9
Added GeometryTechinque to osgTerrain. Added usage of GeometryTechnique into osgterrain example
...
Added --width and --height command line options to osgdistortion to allow users
to control the window size.
2007-03-21 16:34:04 +00:00
Robert Osfield
32166ca631
Build fixes
2007-03-19 10:54:39 +00:00
Robert Osfield
ed9aa1c6bf
Removed now redundent method
2007-03-18 11:04:12 +00:00
Robert Osfield
069adcf555
From David Callu, " bug:
...
Lost the functionality to find the real type pointed by a pointer.
Ex: a osg::Node pointer point on a osg::Group, if I look for information
on the pointer type, the introspection say it is a "osg::Node*".
But if I want information on the pointed type,
the introspection must return the "osg::Group".
This bug come from the osgIntrospection::Value::Ptr_instance_box::ptype() function.
In the original version, this function use the member "Instance_base *inst_"
like this :
typeof(*static_cast<Instance<T> *>(inst_)->_data)
But in the new version, this function use the template argument "T":
typeof(typename remove_pointer<T>::type)
This is a good meta-programming use, but here we need a dynamic request.
Moreover the "typeof" macro define in "Reflection" header accept only a type in parameter with the new version.
fix:
Add the macro "typeofvalue" in "Reflection" header which accept a value or a type in parameter.
Restore original code in osgIntrospection::Value::Ptr_instance_box::ptype() function.
"
2007-03-16 14:28:27 +00:00
Robert Osfield
aa28f60357
Added WindowData structures to GraphicsWindowX11,Win32 and Carbon to help support
...
GraphicsWindow inheriting their window handles from an external toolkit
2007-03-16 13:22:05 +00:00
Robert Osfield
2fae221f2d
Added class shells for osgTerrain::Locator and osgTerrain::Layer classes
2007-03-14 12:00:54 +00:00
Robert Osfield
c489b0af2c
Renamed HeightFieldNode and HeightFieldRenderer to TerrainNode and TerrainTechnique respectively
2007-03-14 11:24:04 +00:00
Robert Osfield
083618cc65
Added inheritedWindowData member variable to Traits.
2007-03-11 11:48:03 +00:00
Robert Osfield
bff1b51361
Added preliminary work on osg::TransferFunction
2007-03-10 11:53:31 +00:00
Robert Osfield
ebb571473f
Changed _pixel_x and _pixel_y to be floats
2007-03-06 12:01:55 +00:00