My first question is if C++:
pTexture.getSize().x
equals C# (because this is no result for me using this):
pTexture.Size().X
Second question is about C++ code (how to write in SFML.net this line).
pImage.move(0,-1)
pImage is Sprite and pTexture is Texture of course.
In SFML.NET there is no getter/setter methods for properties, so in order to get/set the size you have to :
texture.Size = // ...
myfunction(texture.Size);
As there is no setter method, you have to use +=
on the Position
property to simulate the move
method.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.