Difference between revisions of "Talk:Missing Documentation"
(slight edits, removed reset because I added it to docs) |
|||
Line 3: | Line 3: | ||
=== SpriteBatch:lock, SpriteBatch:unlock=== | === SpriteBatch:lock, SpriteBatch:unlock=== | ||
The lock method has a mysterious light userdata return value. I have no idea what its use is on the Lua side. They also didn't seem to affect the performance of drawing operation in any measurable way, so I left them for later. | The lock method has a mysterious light userdata return value. I have no idea what its use is on the Lua side. They also didn't seem to affect the performance of drawing operation in any measurable way, so I left them for later. | ||
+ | |||
+ | I have no idea why these are wrapped, my only guess is that rude got carried away, anyway, the 'mysterious' light user data is the lock pointer (which is stored internally as well and as such is not needed for unlock). As far as I can tell locking is only needed when you want raw memory access, because it is only used when it is copied to mem. --[[User:Bartbes|Bartbes]] 18:23, 31 March 2010 (UTC) | ||
=== ParticleSystem:setRelativeDirection === | === ParticleSystem:setRelativeDirection === |
Latest revision as of 18:23, 31 March 2010
Contents
Some things that have prevented me from documenting these functions
SpriteBatch:lock, SpriteBatch:unlock
The lock method has a mysterious light userdata return value. I have no idea what its use is on the Lua side. They also didn't seem to affect the performance of drawing operation in any measurable way, so I left them for later.
I have no idea why these are wrapped, my only guess is that rude got carried away, anyway, the 'mysterious' light user data is the lock pointer (which is stored internally as well and as such is not needed for unlock). As far as I can tell locking is only needed when you want raw memory access, because it is only used when it is copied to mem. --Bartbes 18:23, 31 March 2010 (UTC)
ParticleSystem:setRelativeDirection
This sets the flag in the C++ particle system object, but this flag does not affect any calculations. I assume it is a feature that is meant to be implemented in the future, but is not done yet.
Shape:getGroupIndex, Shape:setGroupIndex
These don't seem to appear in CircleShape and PolygonShape, so I suspect they cannot be used yet. I might just have missed something.
-- Pekka