Page 1 of 1
Is unlock necessary if I'm doing drop? (IImage)
Posted: Sat Jun 25, 2016 3:34 pm
by AlexAzazel
When using IImage object, is using unlock after lock necessary if I'm doing drop anyways?
A trivial question but still interesting. I suspect it's not necessary.
Re: Is unlock necessary if I'm doing drop? (IImage)
Posted: Sat Jun 25, 2016 4:06 pm
by CuteAlien
Basically doesn't matter at all as unlock() was never used (it does exactly nothing). In trunk we even deprecated it and replaced lock/unlock by a getData() function.
Re: Is unlock necessary if I'm doing drop? (IImage)
Posted: Sun Jun 26, 2016 12:23 am
by Cube_
wait, unlock doesn't do anything? Huh... so the call to unlock in my screenshot logic is irrelevant then?
Re: Is unlock necessary if I'm doing drop? (IImage)
Posted: Sun Jun 26, 2016 7:33 am
by hendu
It matters for textures only.
Re: Is unlock necessary if I'm doing drop? (IImage)
Posted: Sun Jun 26, 2016 10:17 am
by CuteAlien
Yeah, IImage::unlock() does nothing while ITexture::unlock() is important.
Re: Is unlock necessary if I'm doing drop? (IImage)
Posted: Sun Jun 26, 2016 10:35 am
by AlexAzazel
CuteAlien wrote:Basically doesn't matter at all as unlock() was never used (it does exactly nothing). In trunk we even deprecated it and replaced lock/unlock by a getData() function.
I will sound dumb but what is that trunk thing I keep hearing? I googled it and found a git repo that has no description other than how to install and stuff. What exactly does it do and how is it different?
Re: Is unlock necessary if I'm doing drop? (IImage)
Posted: Sun Jun 26, 2016 11:05 am
by CuteAlien
We are still using svn. svn repository is here:
https://sourceforge.net/p/irrlicht/code/HEAD/tree/
That side should also have the command to check-out trunk which is our most active development branch and will become Irrlicht 1.9
You need a svn client (like TortoiseSVN on Windows).
As for installing:
You have to compile it yourself with the project file and then you got a new dll.
You have to set the corresponding include and library paths in your project to include that.