7 Replies - 550 Views - Last Post: 30 December 2012 - 12:34 PM Rate Topic: -----

#1 Dragonstorm  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 35
  • Joined: 05-June 12

C,not c++ with DX11?

Posted 30 December 2012 - 10:02 AM

As the title suggests,is it possible to just use C when using directx 11 libraries?,This may sound like a simple question,but it is no small feat getting a definitive answer with searching google,which yes i have tried,and no i didn't get any actual results,as searching on google using keywords like directx 11,c,c++,languages that can be used,etc gives you a plethora information you are not looking for.

I don't know maybe im not searching with the correct keywords(unlikely due to the last 2 hours i spent on it)

Either way,Is it possible to write in only C with directx 11?

This post has been edited by Dragonstorm: 30 December 2012 - 10:03 AM


Is This A Good Question/Topic? 0
  • +

Replies To: C,not c++ with DX11?

#2 anonymous26  Icon User is offline

  • D.I.C Lover

Reputation: 1
  • View blog
  • Posts: 3,638
  • Joined: 26-November 10

Re: C,not c++ with DX11?

Posted 30 December 2012 - 10:09 AM

No, because the libraries are C++. You can write C code, but overall the project will need to be compiled as C++.
Was This Post Helpful? 1
  • +
  • -

#3 Dragonstorm  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 35
  • Joined: 05-June 12

Re: C,not c++ with DX11?

Posted 30 December 2012 - 10:18 AM

thanks for the reply,so i can write in c?,i dont mind compiling as c++ its just i have not actually learnt c++,so my understanding of classes and other standard c++ implementations is very limited,especialy those dang classes,i am reading: Beginning Directx 11 game programming,and since i have already studied some basics of winapi,i do understand window creating,and the actual D3D code i can understand,but in the book they make some funky dx11demo class that can be overridden by each example.
if i have no choice but to code in c++,what are the basis that i must cover after programming in C?
Was This Post Helpful? 0
  • +
  • -

#4 anonymous26  Icon User is offline

  • D.I.C Lover

Reputation: 1
  • View blog
  • Posts: 3,638
  • Joined: 26-November 10

Re: C,not c++ with DX11?

Posted 30 December 2012 - 10:55 AM

Just learn C++ then approach DirectX. It makes no sense, and will give you big headaches, if you try to structure your code in C when using DirectX.
Was This Post Helpful? 1
  • +
  • -

#5 Dragonstorm  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 35
  • Joined: 05-June 12

Re: C,not c++ with DX11?

Posted 30 December 2012 - 11:00 AM

thought so,thanks for the help!
and i just had another question,i might as well ask now
since Ogre can render using directx,would learning how to program with Ogre be easier/more useful then just going straight for direcxt?

And for actually learning c++,what must i focus more on?,since i have a background,as they say in C,what should i focus more on?,New functions,Classes,etc?
Was This Post Helpful? 0
  • +
  • -

#6 anonymous26  Icon User is offline

  • D.I.C Lover

Reputation: 1
  • View blog
  • Posts: 3,638
  • Joined: 26-November 10

Re: C,not c++ with DX11?

Posted 30 December 2012 - 11:30 AM

Don't add anything else into the mix, ignore Ogre for now.

What should you focus on for learning C++? I don't know because I have no idea how strong your C is. Get a C++ book and/or find a site to help you learn and take it from there.
Was This Post Helpful? 1
  • +
  • -

#7 Dragonstorm  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 35
  • Joined: 05-June 12

Re: C,not c++ with DX11?

Posted 30 December 2012 - 11:37 AM

thanks for the help
Was This Post Helpful? 0
  • +
  • -

#8 anonymous26  Icon User is offline

  • D.I.C Lover

Reputation: 1
  • View blog
  • Posts: 3,638
  • Joined: 26-November 10

Re: C,not c++ with DX11?

Posted 30 December 2012 - 12:34 PM

No problem. Good luck.

Check out our C++ forum, tons of resources there to aid you.

This post has been edited by ButchDean: 30 December 2012 - 12:34 PM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1