• Advertisement

Archived

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

The perils of D3DVIEWPORT7!!!!!

This topic is 6422 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

I get this error..... ''initializing'' : cannot convert from ''const float'' to ''struct _D3DVIEWPORT7'' No constructor could take the source type, or constructor overload resolution was ambiguous when I set my viewport like so D3DVIEWPORT7 vp = (0,0,640,480,0.0f,1.0f); I have defined.. #define D3D_OVERLOADS Can someone please help me. Thanks -David

Share this post


Link to post
Share on other sites
Advertisement
isn''t it initiallized with braces (curly brackets) not parenthesis?

D3DVIEWPORT vp = {0,0,640,320,0,1};

Share this post


Link to post
Share on other sites

  • Advertisement