I'm new here and before I get into what I'm about to mention, I want to introduce myself.
I'm a 14 year old aspiring programmer that started programming in VB6 when I was around 12, now moved to C and C++. I've made a few projects in my life and created my own DirectX8 engine with dynamic lighting and the sorts. I hope that my stay here is great
I've decided on taking the task to convert this into Pure C with DirectX9. But, i've run into a problem with the 'CreateDevice' function, that seems to be only supported in C++.
Here is my code;
Code: Select all
// create a default DirectX device
Direct3DObj -> CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, wndHandle, D3DCREATE_HARDWARE_VERTEXPROCESSING, &D3DParams, &Direct3DDev);
Code: Select all
'CreateDevice' : is not a member of 'IDirect3D9' c:\program files\microsoft sdks\windows\v7.0a\include\d3d9.h(333) : see declaration of 'IDirect3D9'
I've looked on google and have yet to find such answer..
If any of you could help me out that would be fantastic