Skip to main content
gamedev.net
🔒 Locked

Texture coordinates matrix ?

Started by markdezonia Dec 12, 2001 at 9:33 AM 0 replies 200+ views
Original Post
markdezonia
markdezonia
struct PANELVERTEX { FLOAT x, y, z; DWORD color; FLOAT u, v; }; #define D3DFVF_PANELVERTEX (D3DFVF_XYZ | D3DFVF_DIFFUSE | D3DFVF_TEX1) -------------------------------------- pVertices[1].u = pVertices[2].u = 1.0f; pVertices[0].u = pVertices[3].u = 0.0f; pVertices[0].v = pVertices[1].v = 0.0f; pVertices[2].v = pVertices[3].v = 1.0f; -------------------------------------- I have been using D3DFVF_TEX1 , Texture coordinates Vertices Is there a matrix I can use? Is Texture coordinates Vertices better than Texture coordinates Matrix? Is it harder to code? I have way to many Vertices. Were can I find the code for a Texture coordinates Matrix? Edited by - MarkDeZonia on December 12, 2001 10:59:22 AM

Topic Locked

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

Sign in to reply to this topic.