Thread: Code Blcoks: what is the best Directx tutorial for start?

  1. #1
    Registered User
    Join Date
    Aug 2013
    Posts
    434

    Code Blcoks: what is the best Directx tutorial for start?

    i'm starting with directx with Code Blocks, but i never had programmed it.
    can anyone advice 1 nice tutorial for start?
    i did the search, but i have seen 2 problems:
    1 - some code have errors;
    2 - it's too complex for start and difficulty to understand it.
    so can anyone advice me?

  2. #2
    Banned
    Join Date
    Aug 2017
    Posts
    861
    it does not really have anything to do with code blocks, code blocks is just a platform to write your code in and it gives you a button to "push" to make compiling your code a little easier. You just need to search for how to code for DIrectX with whatever platfrom you're using. IE. Linux MAC OSX, Windows, Uniux, DOS (??).

    as far as Q2, "it's too complex for start and difficulty to understand it."
    then start with something more simple then work your way into it, DerictX isn't going anywhere any time soon. At least I don't think so.

  3. #3
    Registered User
    Join Date
    Aug 2013
    Posts
    434
    have to do with compiler and it's headers files. my actual mingw GCC compiler it's limited. and, for now, i can use the DirectX 9. but no 11 or above
    what i mean about errors and complex have to do with ANCI code. the GCC uses 1 code, but can be a little different on Visual Studio.
    the manual that i found about DirectX was the best for start:
    - DirectXTutorial.com (some tutorials are for be pay... but it's good for we start);
    - 01. DirectX 9 - Braynzar Soft Tutorials [Collection] - Braynzar Soft (it's free, but it's for Visual Studio.. so it can have a little differences).
    like i said every tutorials(autors) have their own way for explain.
    1 little advice for all programmers: it's best use the ZeroMemory() function for change all instance structure members to zero:
    Code:
    ZeroMemory(&StructureInstance, sizeof(StructureName));
    now we can change only some and not all members values.
    thanks for all

  4. #4
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,729
    Quote Originally Posted by joaquim View Post
    1 little advice for all programmers: it's best use the ZeroMemory() function for change all instance structure members to zero
    Or you could use, oh I don't know, the standard library function memset() to do the same thing...
    Code:
    memset(&StructureInstance, 0, sizeof(StructureName));
    Devoted my life to programming...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Directx programming! Where to start from?
    By freiza in forum Game Programming
    Replies: 2
    Last Post: 02-24-2012, 07:51 PM
  2. Which is better to start off in DirectX or OpenGL
    By Kaho in forum Game Programming
    Replies: 6
    Last Post: 08-29-2005, 08:40 PM
  3. OpenGL (or) DirectX tutorial
    By bluehead in forum C++ Programming
    Replies: 11
    Last Post: 04-16-2004, 12:33 AM
  4. ultimate online directx api tutorial
    By stallion in forum Game Programming
    Replies: 19
    Last Post: 11-20-2002, 05:05 PM
  5. Where to start with DirectX 8.0
    By TheGr8one in forum Game Programming
    Replies: 5
    Last Post: 09-03-2001, 09:08 PM

Tags for this Thread