You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The gist of it though is I have created an Ashton::Texture with width/height matching my Gosu::Window. When I draw directly to the Gosu::Window things will draw correctly, but if I draw to the Ashton::Texture images will be cut off in though they should be within the bounds of the texture.
In the example I have linked to if you run it you will see an image that is cut off as described.
I have something that looks like this
def initialize
self.texture = Ashton::Texture.new 640, 480
end
then in my update
def update
self.texture.render do
self.img.draw(150, 0, 0)
end
end
The image is 89 px wide, but it will be cut off even though the texture width is set to 640.
The text was updated successfully, but these errors were encountered:
I've uploaded a basic example to github
https://github.com/bigtunacan/nature
The gist of it though is I have created an Ashton::Texture with width/height matching my Gosu::Window. When I draw directly to the Gosu::Window things will draw correctly, but if I draw to the Ashton::Texture images will be cut off in though they should be within the bounds of the texture.
In the example I have linked to if you run it you will see an image that is cut off as described.
I have something that looks like this
then in my update
The image is 89 px wide, but it will be cut off even though the texture width is set to 640.
The text was updated successfully, but these errors were encountered: