Bonsai Posted January 20, 2018 Share Posted January 20, 2018 Hi, I have a little problem with dxDrawImageSection. When the section that I'm drawing becomes bigger than the actual image, it will start showing the "other side" of the image again. If I have a picture which is 500x500, and I draw a section of it from 200 to 700, it will draw the part from 200 to 500 followed by 0 - 200. This is a problem as I need it to stop drawing at 500. Is there a way to turn this off or avoid this? Bonsai Link to comment
Captain Cody Posted January 20, 2018 Share Posted January 20, 2018 (edited) DxSetTextureEdge Use the texture edge 'Clamp' Edited January 20, 2018 by CodyJ(L) 1 Link to comment
Bonsai Posted January 20, 2018 Author Share Posted January 20, 2018 Oh wow, thank you! It works. This was a lot easier than I thought. It also fixed another problem I had so now I don't even have to use dxDrawImageSection anymore and can use dxDrawImage instead. Thanks! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now