Alberto Luaces
d64ad2e654
Code comments, log strings and some variable spell fixes.
2020-10-28 17:05:06 +01:00
PntAndCnt
b0e8b7c96b
Fix a typo and invisible 3dtext in examples/osgtext.
...
Second text alignment is wrong when "--alignment" specified.
3D text radius is too small, only SCREEN_COORDS can be seen.
Text position should multiply radius.
2019-12-13 09:26:43 +08:00
Robert Osfield
db1ff4c415
Added osgtext --alignment test to look the effect of calling Text::setAlignent() before and after the Text::setText().
2018-04-06 14:06:50 +01:00
Robert Osfield
726bb13e9a
Improved the setup of the --counter test
2017-09-29 09:54:43 +01:00
Robert Osfield
266b57c821
Removed no longer required GL3 shaders as osgText itself now provides shaders
2017-03-18 18:09:12 +00:00
Robert Osfield
2ef8f00e91
Fixed GL3 core profile and shandard shaders to work with new osgText
2017-03-18 11:48:55 +00:00
Robert Osfield
943beb220d
Improved handling of osgText::Text with and wihout shaders
2017-03-18 11:48:55 +00:00
Robert Osfield
5f407b3cc4
Added experimental --shaders path into osgtext example to test out using shaders for text rendering.
2017-03-14 10:43:52 +00:00
Robert Osfield
9b32395772
Added --counter test
2017-03-07 13:35:03 +00:00
Robert Osfield
fee826412c
Added --plain test to simply basic text testing
2017-03-07 09:13:29 +00:00
Robert Osfield
987513d309
Added --simple command line option and accompanying code to create a very simple text object for basic testing of osgText
2016-10-11 11:29:29 +01:00
Robert Osfield
dd996a3289
Introduced CMake option OSG_PROVIDE_READFILE option that defaults to ON, but when switched to OFF disables the building of the osgDB::read*File() methods,
...
forcing users to use osgDB::readRef*File() methods. The later is preferable as it closes a potential threading bug when using paging databases in conjunction
with the osgDB::Registry Object Cache. This threading bug occurs when one thread gets an object from the Cache via an osgDB::read*File() call where only
a pointer to the object is passed back, so taking a reference to the object is delayed till it gets reassigned to a ref_ptr<>, but at the same time another
thread calls a flush of the Object Cache deleting this object as it's referenceCount is now zero. Using osgDB::readREf*File() makes sure the a ref_ptr<> is
passed back and the referenceCount never goes to zero.
To ensure the OSG builds when OSG_PROVIDE_READFILE is to OFF the many cases of osgDB::read*File() usage had to be replaced with a ref_ptr<> osgDB::readRef*File()
usage. The avoid this change causing lots of other client code to be rewritten to handle the use of ref_ptr<> in place of C pointer I introduced a serious of
templte methods in various class to adapt ref_ptr<> to the underly C pointer to be passed to old OSG API's, example of this is found in include/osg/Group:
bool addChild(Node* child); // old method which can only be used with a Node*
tempalte<class T> bool addChild(const osg::ref_ptr<T>& child) { return addChild(child.get()); } // adapter template method
These changes together cover 149 modified files, so it's a large submission. This extent of changes are warrent to make use of the Object Cache
and multi-threaded loaded more robust.
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@15164 16af8721-9629-0410-8352-f15c8da7e697
2015-10-22 13:42:19 +00:00
Robert Osfield
0dd625f17e
Added explicit initialization of osg::Referenced(true) to osg::Operation subclasses as it uses virtual inhertiance from osg::Referenced.
...
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@15025 16af8721-9629-0410-8352-f15c8da7e697
2015-07-23 15:46:47 +00:00
Robert Osfield
f66b430476
Comment out debug notification
...
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14857 16af8721-9629-0410-8352-f15c8da7e697
2015-04-23 12:58:27 +00:00
Robert Osfield
47db2da8b4
From Andreas Henne, Support for GL3 core profile in osgText
...
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14717 16af8721-9629-0410-8352-f15c8da7e697
2015-02-25 18:56:29 +00:00
Robert Osfield
74f91037a7
Further work on Bound class/Node::getBound() and Drawable::getBound() and usage in OSG codebase
2014-05-14 16:01:40 +00:00
Robert Osfield
36f755670b
Cleaned up example
2011-04-19 09:53:34 +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
c3b7a04cf1
Added StateSet event handler to osgfont and osgtext to aid with debugging
2010-03-18 17:10:48 +00:00
Robert Osfield
c52fdc0c77
Reverted back to previous version of osgtext
2008-02-25 13:07:37 +00:00
Robert Osfield
e869200b3d
Refactored the mutex usage in osgText and freetype plugin to prevent multi-thread crash
2008-02-25 12:54:54 +00:00
Robert Osfield
fb2726b0db
From Philip Lowman, workaround for gcc 3.2.3 bug
2008-02-19 09:49:12 +00:00
Robert Osfield
dea067050c
Renamed osgText::Font::SizePair to osgText::FontSizePair in prep for use this more
...
widely within osgText/freetype plugin.
Added support for inserting loading models into --mt multithreaded implementation.
2007-12-23 13:18:40 +00:00
Robert Osfield
8e7e6529be
From David Callu, warning fixes
2007-09-07 15:03:56 +00:00
Robert Osfield
ecb8d5f8ab
Fixed cancel loop.
2007-09-02 22:31:09 +00:00
Robert Osfield
8d1ef9906a
Added support for running multiple text generation threads
2007-08-31 16:59:32 +00:00
Robert Osfield
fb3bd9c921
Tweeked settings
2007-08-28 15:31:43 +00:00
Robert Osfield
eabe2faf7e
Added multi-threaded test path
2007-08-28 14:02:16 +00:00
Robert Osfield
cc0f1cb0fe
From Martin Lavery and Robert Osfield, Updated examples to use a variation of the MIT License
2007-06-12 14:20:16 +00:00
Robert Osfield
5be86601bb
Removed old GNUmakefile.inst files
2007-04-10 13:58:18 +00:00
Robert Osfield
2e6ee4bb39
Removed old gmake and VisualStudio build files
2007-04-10 13:10:25 +00:00
Robert Osfield
d9a94f7890
Moved the TARGET_NAME setting into the SETUP_APPLICATION/EXAMPLE macro
2007-03-19 17:18:59 +00:00
Robert Osfield
da64127539
Ran dos2unix on CMakeLists.txt files.
2007-03-19 13:26:34 +00:00
Robert Osfield
be3f61c49f
From Luigi Calori, move to using local CMakeLists.txt files and explicit file lists.
...
From Robert Osfield, small ammendments of the above to seperate example and application installs, and fix the osgPlugins install directory.
2007-03-19 12:30:26 +00:00
Robert Osfield
bee545b82d
From Eric Sokolowski, added support for the new Text line spacing parameter to the .osg and .ive formats.
2007-02-02 16:51:59 +00:00
Robert Osfield
b121c9686f
Ported following examples to osgViewer:
...
osgteapot
osgtessellate
osgtext
osgtexture1D
osgtexture2D
osgtexture3D
osgtexturerectangle
osgvertexprogram
osgvolume
osgwindows
osgsimple
osgkeyboardmouse
2007-01-11 15:19:59 +00:00
Robert Osfield
fd2ffeb310
Renamed osg::CameraNode to osg::Camera, cleaned up osg::View.
...
Added beginnings of new osgViewer::Scene,View,Viewer,CompositeViewer and GraphicsWindowProxy files.
2006-11-27 14:52:07 +00:00
Robert Osfield
a4063335fa
From Martijn Kragtwijk, added example text for showing osgText::Text::CharacterSizeMode in action.
2006-08-10 12:13:02 +00:00
Robert Osfield
f8490e386a
Added code to reproduce Text outline bounding box compute bug.
2006-08-05 16:57:52 +00:00
Robert Osfield
de9ce1e85f
Removed debug code
2006-08-03 14:03:06 +00:00
Robert Osfield
7eb7bbdb84
Updated wrappers
2006-08-02 21:09:25 +00:00
Robert Osfield
41a4aa1548
Added viewer.cleanup_frame() to all examples.
2006-08-02 19:55:03 +00:00
Robert Osfield
f1c2694c17
Updated copyright years.
2006-07-18 15:21:48 +00:00
Robert Osfield
2fa2041655
From Joseph Winston, "Corrected displayed comment about the text size
...
to match the actual text size."
2005-08-22 13:45:15 +00:00
Robert Osfield
b9e651baf1
Added new osg::GraphicsContext base class
2005-07-20 15:55:07 +00:00
Robert Osfield
1c88914e5f
From Yuri Vilmanis, improved multi-line justifaction support and new alignment modes
2005-07-15 16:22:53 +00:00
Robert Osfield
b70ff91eaf
Changed ABSOLUTE and RELATIVE to ABSOLUTE_RF and RELATIVE_RF to avoid stooppid Win32 #define
2004-10-24 20:04:00 +00:00
Robert Osfield
6821a80e14
Changed the ReferenceFrame enums to be RELEATIVE and ABSOLUTE, and
...
deprecated the RELATIVE_TO_ABSOLUTE and RELATIVE_TO_PARENTS.
2004-10-22 19:26:45 +00:00
Robert Osfield
89a6e092cc
From Don Tidrow, fixes to comments.
2004-08-20 09:46:02 +00:00
Robert Osfield
8d5aa5644d
Added X_INC into the Make/makedefs and changed the *GNUmakefile* to use it.
2003-08-18 10:58:30 +00:00