|
-
Oct 30th, 2011, 08:24 AM
#1
Thread Starter
Addicted Member
2d Textures
I have a question regarding DirectX 8. I’m basically trying to draw a 2d pipe at any angle. Right now I can do it, but in a very slow way. I’m using a 20*24 bitmap for my pipe texture and I make a bunch of little 20*24 sets of vertices. So that means when I draw a pipe from (0, 20) to (500, 20) 25 polygons are created and there are 25 drawing operations. Is there a way that I can just have one polygon consisting of 4 vertices and have the texture draw properly? (by the way, the pipe texture is such that stretching it would completely mess it up the look). Hopefully someone knows how to do it because when I have a mere 50 pipes the fps plummets.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|