Skip to main content
GameDev.net gamedev.net
🔒 Locked

.:Textures:.

Started by REELHavoc Dec 2, 2001 at 9:38 PM 0 replies 400+ views
Original Post
REELHavoc
REELHavoc
OK..I have a face here, square: {-1.0f, -1.0f, 0.0f,-1.0f, -1.0f,}, {-1.0f, 1.0f, 0.0f, -1.0f, 1.0f,}, {1.0f, -1.0f, 0.0f,NULL ,NULL ,}, {-1.0f, 1.0f, 0.0f,NULL ,NULL ,}, { 1.0f, 1.0f, 0.0f, 1.0f, 1.0f,}, { 1.0f, -1.0f, 0.0f, 1.0f, -1.0f,}, Now I wanted to stretch my texture over the entire face, so I don''t have 4 repeating ones. So I just substituted NULL in for the texture coordinates that make the 4 textures appear. This works fine, but I thought there was another way to do that which is more efficient. Is this the right way or not?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.