Robert Osfield
d9af748b78
From Tom Jolly, add detection for whether multi-texturing is supported before
...
checking for number of texture units supported, using 1 as a fallback value
2004-09-01 10:41:50 +00:00
Robert Osfield
7126ca44e9
Better macro support for switching on/off use of mutex
2004-08-03 11:01:39 +00:00
Robert Osfield
ebad31c3dd
Fixed warnings
2004-08-02 13:57:47 +00:00
Robert Osfield
c9f5749c12
Added preliminary support for thread safety in various delete GLobjects code
2004-07-21 19:16:49 +00:00
Robert Osfield
aa833acfd3
Added support for releasing GLObjects, and renamed DisplayListVisitor the
...
GLObjectVisitor to better fit its function, and added support for releasing
objects as well as compiling them.
2004-07-20 05:37:59 +00:00
Robert Osfield
3e5c491f54
Added debugging message, currently commented out.
2004-07-12 13:13:58 +00:00
Robert Osfield
b8aa8bfc40
Fixed warning.
2004-07-06 12:15:03 +00:00
Robert Osfield
fdbb1fe021
Re-organised Texture::computeInternalFormatWithImage() to avoid testing
...
for extensions when not required.
2004-06-28 22:09:52 +00:00
Robert Osfield
867a1ae105
From Bob Kuehne, more general checks for existance of extensions.
2004-05-17 13:20:41 +00:00
Robert Osfield
48dad727b1
From Bob Kuehne, added getting of the max number of texture units in
...
the Texture::Extension object
2004-05-07 11:28:55 +00:00
Robert Osfield
715cdcf5e2
From Don Tidrow, changed "setupGLExtenions()" to "setupGLExtensions()" in Texture and
...
Texture.cpp
2004-04-16 22:50:41 +00:00
Robert Osfield
884099b11c
From Bob Kuehne, updated extension/version checking for border clamp extension.
2004-04-16 10:05:57 +00:00
Robert Osfield
7c6734ff01
Added support for APPLE_client_storage to TextureRectange
2004-03-08 17:13:22 +00:00
Robert Osfield
358743f999
Added support for APPLE_client_storage of textures.
2004-03-08 17:09:58 +00:00
Robert Osfield
475c583975
From Pavel Moloshtan, add support to osg::Texture files for GL_ARB_shadow_ambinet support
2004-01-29 11:16:49 +00:00
Robert Osfield
635f302a2a
Added support for osg::Texture::setBorderWidth().
2004-01-27 21:29:58 +00:00
Robert Osfield
edce2211fa
From Romano Magacho, fixes to handle the subloading from Image when the
...
internal format changes requiring a rebuild of the texture object.
2004-01-23 13:25:45 +00:00
Robert Osfield
694aec666c
Fixed bug in logic in areAllTextureObjectsLoaded() which was producing the
...
exact opposite result to what it should have been generating.
2004-01-19 11:01:45 +00:00
Robert Osfield
23443aa5db
From Alberto Farre, added osgDB::SharedStateManager. Also a couple of
...
ammendments by Robert Osfield, adding get/setSharedStateManager()
methods into osgDB::Registry, and clean up fixes in SharedStateManager
for the StateSet arrays.
2004-01-10 17:13:20 +00:00
Robert Osfield
2cb360dd38
From Rommano Silva, admendments to Texture::computeRequiredTextureDimensions
...
so that it takes into account the current mip map settings.
2003-12-27 11:30:41 +00:00
Robert Osfield
3ee8ed15a6
Added _ARB to GL_COMPARE_R_TO_TEXTURE
2003-12-19 10:52:17 +00:00
Robert Osfield
8fefec9f47
From Pavel Moloshtan, added GL_ARB_shadow_support to osg::Texture.
2003-12-17 19:26:16 +00:00
Robert Osfield
de0253aac7
Changed the default wrap modes from REPEAT to CLAMP since CLAMP is the OpenGL
...
default value.
2003-12-15 23:22:35 +00:00
Robert Osfield
169eb0fd07
Changed applyTextParamaters() to set the wrap modes :
...
GL_TEXTURE_WRAP_S for all texture targets.
GL_TEXTURE_WRAP_T for all texture targets except GL_TEXRTURE_1D
GL_TEXTURE_WRAP_R for only GL_TEXTURE_3D
And changed the defaults to OpenGL defaults of GL_REPEAT.
2003-08-18 19:51:27 +00:00
Robert Osfield
282eb39ec5
Changed cout's to notufy(INFO).
2003-08-15 09:38:36 +00:00
Robert Osfield
a0d0803f1f
Improvements to the handling of deletion of OpenGL rendering objets such as
...
display lists and textures object such that they can be deleted according
to an available amount of time given to do deletes.
2003-07-16 09:52:43 +00:00
Robert Osfield
82008d5ecd
Updates to the flush rendering objects function calls to allow for
...
managment of amount of time available to do gl delete's. This control is
required for constant frame rate applications.
2003-07-15 21:19:03 +00:00
Robert Osfield
1b9d7d458a
Added support for texture object manager, which provides an automatic mechansim
...
for reusing deleted textures.
2003-07-14 14:42:10 +00:00
Robert Osfield
b5442ac835
Added support for the ARB_vertex_buffer_object into osg::Geometry.
2003-06-29 21:41:57 +00:00
Robert Osfield
aaa761e333
Added tests for presense of extensions to osgcubemap, osgvertexproram and
...
osgmultitexture examples.
Added osg::VertexProgram::Extensions class to better handle multiple graphics
context vertex program extensions.
2003-04-10 19:32:32 +00:00
Robert Osfield
8b03d59be3
Added support for modifying the osg::Texture*:Extensions stuctures.
...
Added an example modifying osg::Texture::Extensions to osgtext. Optionally
compiled out by default.
2003-04-10 13:41:45 +00:00
Robert Osfield
9f0fa75484
Added support for unref image data after apply in the osg::Texture*
...
classes. Only unref's after all graphics context have been applied.
2003-04-07 12:51:00 +00:00
Robert Osfield
7e58786b11
Moved the modified tag's from osg::Texture into the osg::Texture1D,2D,3D and
...
CubeMap classes.
2003-04-07 09:46:06 +00:00
Robert Osfield
0f3eaeba46
From Rune Schmidt Jensen - new dds loader.
2003-04-02 18:26:34 +00:00
Robert Osfield
5a974ab091
Fixes to osg::Texture's handling of anisotropy updating and
...
hardware generate mip mapping.
Added switching off generate mip map from osgText::Font.cpp.
Changed savedmodel.osg to saved_model.osg in ViewerEventHandler.
2003-04-01 20:32:57 +00:00
Robert Osfield
3975fc9b01
Improved handling of subloading.
...
Removed the rescalling of images in osg::Image during texture apply, moving
the rescale so it is locally calculated. This solves an outstanding threading
problem which occured by multiple draw threads all tried to rescale the same
image at one time.
Made osg::Image ptr in osg::Texture2D non mutable as it is no longer modified
during apply.
2003-04-01 11:49:09 +00:00
Robert Osfield
b728b1dd99
Implemented load and subload methods in osg::Texture/Texture2D.
2003-03-31 21:41:17 +00:00
Robert Osfield
11a38e12f2
Made the default transparent bin be bin number 10 rather than 1 to allow
...
more bins between it and the default opaque bin of 0.
Added a check for compressed image format in osg::Texture.
2003-03-31 12:48:33 +00:00
Robert Osfield
55c25a551b
Added support for using the generate mip map extension within osgText.
2003-03-04 15:47:28 +00:00
Robert Osfield
bd506b53da
Removed last of the uint references.
2003-02-14 11:41:52 +00:00
Robert Osfield
8f1ba9d21b
Removed include/osg/Types header defining osg::ubyte, osg::ushort etc. Changed
...
any reference to these in the distribution across to using unsigned char,
unsigned short etc. This has been done to keep the OSG code more opaque
to what types are.
2003-02-12 19:20:47 +00:00
Robert Osfield
9aaf5a560b
Changed the implementation of the texture objects and display list to delete
...
caches so that they use a std::vector<> swap on the internal data structures
when ready to delete to minimize the amount of time that a race condition
condition can happen.
2003-01-22 23:34:18 +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
f948a3de7c
Fixed typo.
2003-01-09 18:41:01 +00:00
Robert Osfield
043839f40b
Added #ifndef GL_TEXTURE_WRAP_S #define block to keep things compiling
...
on old drivers.
2003-01-09 16:13:30 +00:00
Robert Osfield
97da5d7f92
Fixed typo.
2003-01-09 11:48:49 +00:00
Robert Osfield
e8c2226e38
Added setting of the R wrap paramter to applyTexParamters().
2003-01-09 10:06:44 +00:00
Robert Osfield
5fca8ea229
Moved Drawable across to using osg::buffered_value.
...
Added new osg::State::setInterleavedArray() method.
Added new osg::Group::setNode(uint,Node*) method.
Cleaned up and fixed the osg::Texture's handling of dirtyTextureParamters().
2002-11-19 10:56:59 +00:00
Robert Osfield
35b9317baf
Fixes to typo of *Dirty()
2002-11-11 16:11:48 +00:00
Robert Osfield
55215651d7
Renamed osg::Primitive to osg::PrimitiveSet which better reflect what it
...
encapsulates.
Added new osg::IndexGeometry implemention, *not* complete yet.
Changed the rest of the OSG to handle the renaming og Primitive to PrimitiveSet.
2002-09-20 14:51:59 +00:00