Original Post
Hi, i''m making alot of classes containing basic directx features, eg meshes, textures, vertices and so on.
inside the classes i have functions eg set(D3DXVECTOR3 position, D3DXVECTOR2 textureCoords)
say i don''t need to use the textureCoords would it be a good design idea to use pointers on the textureCoords etc so the user can enter NULL, if they don''t need to use it?
eg
set(D3DXVECTOR3 * position, D3DXVECTOR2 * textureCoords)
//and using
set(&D3DXVECTOR3(20,10,100),NULL);
like the line above, is that a good idea, im just not sure because i am generally not sure about using pointers unless i do need them.
Thankyou,