Hi Chris,
I agree with Sergey, I'm myself using for research helicopter
flight simulation a ATI Eyefinity 6x with VSync activated in order
to generate 6 views in a composite viewer each for one video
projector without any problems. The card we are using is
Hello forum,
I have a class declaration and i want to create a singleton instance to it.
Is there any utility class inside OSG that enables something like this?
Thank you!
Cheers,
Sajjadul
--
Read this topic online here:
Hi Sajjadul,
There isn't any general signleton template or base class in the OSG, but
it's doesn't take much code to implement so when we use singleton's they
tend to get implemented locally in the code via a static access method.
Getting singleton's to work cross platform with thread safety on
Hi Sajjadul,
There are nothing in OSG to do this, but make a class a singleton is really
straightforward.
- make constructor protected or private,
- add a static getInstance function
MyClass getInstance()
{
static MyClass * myClass = new MyClass();
return *myClass;
}
then use it in
oups beter like this, or with any other smart pointer
MyClass getInstance()
{
static osg::ref_ptrMyClass myClass( new MyClass() );
return *myClass;
}
2013/4/26 David Callu led...@gmail.com
Hi Sajjadul,
There are nothing in OSG to do this, but make a class a singleton is
really
On Fri, Apr 26, 2013 at 11:18 AM, David Callu led...@gmail.com wrote:
oups beter like this, or with any other smart pointer
MyClass getInstance()
{
static osg::ref_ptrMyClass myClass( new MyClass() );
return *myClass;
}
Do not forget to make all constructors private, though,
Hi all,
We will try to complete the migration to the new joomla site today, so you
may observe some disfunctions. Hopefully it won't take a long time.
Sorry for the inconvenience.
--
Jordi Torres
___
osg-users mailing list
Hi osg-ers
Due to the changes done in order to set the new Joomla site as the main
OpenSceneGraph web, we have had to change the URL of the svn server.
OpenScenenGraph sources are now athttp://svn.openscenegraph.org/osg/.
To download the sources:
svn checkout
This guy implemented it in OSG:
http://de.slideshare.net/acbess/order-independent-transparency-presentation
I contacted him, but he says the source was lost in a hard drive crash. I
have his email address if you want to ask him questions.
___
osg-users
Hi all.
I wanted to start using the latest dev build (3.1.5) with VisualStudio
2012. 64Bit.
However, I immediately got a few problems:
#1.WARNING: The warning: fstream(41): warning C4250: 'osgDB::fstream' :
inherits
On 04/26/2013 11:18 AM, David Callu wrote:
oups beter like this, or with any other smart pointer
MyClass getInstance()
{
static osg::ref_ptrMyClass myClass( new MyClass() );
return *myClass;
}
I wonder, why would you want a reference counting smart pointer for a
singleton? There
Hi forum,
I see the the declaration of LIBRARY_EXPORT along with function and class
declaration as the following form. Some explanation will be appreciated.
Code:
bool LIBRARY_EXPORT setupDevice(int device = 0);
and
Code:
class LIBRARY_EXPORT Resource : public osg::Object
{
Hi Sajjadul,
This is simply a solution to VisualStudio's silly library/dll symbol rules
that you have to jump through. These macro compile to nothing on all
platforms except Windows so you can safely ignore them, they are simple
glue to make things work under Windows. This approach is pretty
I'm having trouble with the OSG Collada plugins on Visual Studio. I
tried downloading the recommended version from the website, but that now
leads to a dead-end. I dug the the same Collada 2.2 download I use on
Mac Linux, but I am completely unable to get CMake to recognize boost
on windows, as
Hi Jan,
This is not for reference counting but to not forget to delete the instance
when program end.
Regards
David
2013/4/26 Jan Ciger jan.ci...@gmail.com
On 04/26/2013 11:18 AM, David Callu wrote:
oups beter like this, or with any other smart pointer
MyClass getInstance()
{
Hi forum,
Is that mandatory to declare the META_OBJECT() for every class declaration
that derives from osg::Object ?
What is its purpose? How to decide the parameters inside it ?
Is the osg reference site down ? trying to access the osg::Object reference
Thank you!
Regards
Sajjadul
16 matches
Mail list logo