Hi Sergey,

On 13/5/09 7:53 PM, Sergey Bocharov wrote:
I spend my time and here is му test case for Dinamic Line Drawing

As I see , we dont need no setUseDisplayList(false), no dirtyBound()

It works fine.

Now i will search why it dont works in my application.

Test case in attach. run it and just press any key.

The test case you sent works for me.
And you do use setUseDisplayList(false) in the TglLine::TglLine() constructor.
However, in the TglLine::TglLine(float ...) constructor you have identical code that *doesn't* setUseDisplayList(false). Maybe you're using the other constructor?

I'd always refactor code like that to use a common init function:
TglLine::TglLine() { init(); }
TglLine::TglLine(float x, float y, float z, const osg::Vec4& colour) { init(); addNode(x,y,z,colour); }

Cheers,
/uli

PS: s/Dinamic/Dynamic/g ;-)
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to