Archived

This topic is now archived and is closed to further replies.

D3DCOLORVALUE constructor problem, eg D3DCOLORVALUE(1,1,1,0)

This topic is 5047 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi, This is the error message im getting: error C2661: '_D3DCOLORVALUE::_D3DCOLORVALUE' : no overloaded function takes 4 parameters and this is what im doing: D3DCOLORVALUE aa; aa = D3DCOLORVALUE(1,1,1,0); why can't i do that? I seems logical enough. heres the D3DCOLORVALUE Structure: typedef struct _D3DCOLORVALUE { float r; float g; float b; float a; } D3DCOLORVALUE; thanks, [edited by - johnnyBravo on February 21, 2004 5:16:21 AM]

Share this post


Link to post
Share on other sites
close but no cigar.

D3DCOLORVALUE aa = { 1, 1, 1, 0 };

Keep in mind that D3DCOLORVALUE doesn''t have any explicit constructors defined.


"Sneftel is correct, if rather vulgar." --Flarelocke

Share this post


Link to post
Share on other sites