Advertisement

Direct3D frustration

Started by May 29, 2000 07:30 PM
1 comment, last by [bobafet] 24 years, 7 months ago
Hi.. I''m having a little trouble with d3d =[ I have the following code and it gives me 2 compile errors: D3DVECTOR p1(1, 1, 1); here are the errors it gives me: error C2078: too many initializers error C2440: ''initializing'' : cannot convert from ''const int'' to ''struct _D3DVECTOR'' No constructor could take the source type, or constructor overload resolution was ambiguous btw I''m including d3d.h and i''m linking with ddraw.lib, dxguid.lib, and d3dim.lib (but it''s not a linking error anyway so that wouldn''t matter) please help - [bobafet]
- Ian Perez (iperez.fett@verizon.net) - "It is by will alone I set my mind in motion"
I believe that you have forgotten to define D3D_OVERLOADS before including d3d.h. It should be done like this:

#define D3D_OVERLOADS
#include "d3d.h"



- WitchLord

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

Advertisement
that did it alright.

woohoo! thanks WitchLord =]
- Ian Perez (iperez.fett@verizon.net) - "It is by will alone I set my mind in motion"

This topic is closed to new replies.

Advertisement