Skip to main content
grammar and punctuation; removed blacklisted engine tag; replaced specific tag with more appropriate tag (topic is more broad to be applicable to general programming)
Source Link
Gnemlock
  • 5.3k
  • 5
  • 30
  • 60

Is there any potential downside to procedurally programmingh in DirectX procedural programming11, without classes?

Well I'm learning DX11DirectX 11, and I hope someday I canto start a simple 3D engine, some day. I'm following a tutorial series, and I realised that I have no need to create any class to mantainmaintain my code (the. The tutorials also usesuse this procedural approach, but I don't copy-paste and paste the tutorial code,code; I try to understand the tutorial, and then try to code the new stuff in my way),.

I can have the code 'understable'understable, and working well, with just functions and global variables. So I wonder, whenWhen I have enough knowledge of the API, and I want to start creating my own library, could this procedural approach have some downside? shouldShould I start writing some classes?

Thanks.

DirectX procedural programming

Well I'm learning DX11 and I hope someday I can start a simple 3D engine. I'm following tutorial series and I realised that I have no need to create any class to mantain my code (the tutorials also uses this procedural approach but I don't copy-paste the tutorial code, I try to understand the tutorial and then try to code the new stuff in my way), I can have the code 'understable' and working well with just functions and global variables. So I wonder, when I have enough knowledge of the API and I want to start creating my own library, could this procedural approach have some downside? should I start writing some classes?

Thanks.

Is there any potential downside to procedurally programmingh in DirectX 11, without classes?

I'm learning DirectX 11, and I hope to start a simple 3D engine, some day. I'm following a tutorial series, and I realised that I have no need to create any class to maintain my code. The tutorials also use this procedural approach, but I don't copy and paste the tutorial code; I try to understand the tutorial, and then try to code the new stuff in my way.

I can have the code understable, and working well, with just functions and global variables. When I have enough knowledge of the API, and I want to start creating my own library, could this procedural approach have some downside? Should I start writing some classes?

edited tags
Link
Eric
  • 4k
  • 1
  • 20
  • 29
Tweeted twitter.com/#!/StackGameDev/status/282652261086285824
Source Link
German
  • 181
  • 1
  • 6

DirectX procedural programming

Well I'm learning DX11 and I hope someday I can start a simple 3D engine. I'm following tutorial series and I realised that I have no need to create any class to mantain my code (the tutorials also uses this procedural approach but I don't copy-paste the tutorial code, I try to understand the tutorial and then try to code the new stuff in my way), I can have the code 'understable' and working well with just functions and global variables. So I wonder, when I have enough knowledge of the API and I want to start creating my own library, could this procedural approach have some downside? should I start writing some classes?

Thanks.