I wanted to draw some plain 2D text inside 3D sceene.
For that I need Microsoft.DirectX.Direct3D.Font class,
but to be able to acess to that class I need also to
add reference Microsoft.DirectX.Direct3DX to the project.
I have added these three references to my solution using References/Add reference option :
Microsoft.DirectX<br />
Microsoft.DirectX.Direct3D<br />
Microsoft.DirectX.Direct3DX
After that, above references can be seen inside Project / References folder.
Then I have typed in using directives to program code:
using Microsoft.DirectX;
using Microsoft.DirectX.Direct3D;
using Microsoft.DirectX.Direct3DX;
When I have tried to build program, this error message came up:
The type or namespace name 'Direct3DX' does not exist in the namespace 'Microsoft.DirectX' (are you missing an assembly reference?) (CS0234) - D:\PROJEKTI\Teren\Teren\Graphical_Matrix_Representation.cs:64,25.
How this error is possible when reference exists inside Project / References folder ?
What I have tried:
I have read most of the answers to similar questions but there is no solution to my problem.
I have tried to download
Microsoft.DirectX.dll<br />
Microsoft.DirectX.Direct3D.dll<br />
Microsoft.DirectX.Direct3DX.dll
and manually add reference to the project, but there is same error.