Hello after having so much hassle getting win32 and OpenGL to work in sync I decided to say screw it and go for Direct3D 9 with HLSL and having a blast but there is a little problem understanding the right functions and the order in which pixel and vertex shaders need to be setup to use,create and code them both, turns out to be a hellish task due to the somewhat "abomination" that is the "MSDN" which doesn't really say exactly what to do or if it does it's so vague that I can't quite grasp the function order and names so with that can someone please ethier tell me what I need to do to use,create and code pixel and vertex shaders or provide me a non-retardedly technical resource for learning Direct3D9 that actually works out of the box so I can learn the hell out of it please.
I will complain to MSDN about the lazy-ness of there writers as well it's proper foul.
From what I've learnt on my own research is I need to setup vertex declaration,constants and the handle for which to reference the shader member functions with.
LPDIRECT3DVERTEXSHADER9 Vertex_Shader ; LPDIRECT3DVERTEXDECLARATIONS9 Vertex_Declarations;
Then this one line "LPD3DXCONSTANTTABLE" below doesn't have a definition on MSVS 2012 in the d3d9.h file any reasons why would be appreciated and very helpful.
Then I need to get the shader file with
of which I have not much of an idea how to use it if at all and doesn't compile, presume there is a header file I'm missing if so would be nice if someone could tell me which one so I can find it somewhat easily but I doubt anyone will :/ and yea that's about as far as I've gotten and still very confused.. please someone out there help!
EDIT: It also appears that some of these are deprecated so I defiantly need help now .
OpenGL all the way for Linux and MacOSX though
I'm on Windows!
Any advice or tips is also appreciated !
Edited by xXxRosexXxEE, 11 February 2014 - 07:36 AM.