okay so i have some questions about graphics programming. i have gone through a C++ class so i understand the console programming but i dont want to move on to API becuase thats just how i am. i like the harder stuff when it comes to learning how to do something. so i guess what do i need to learn before i dive into the whole graphics process?
hey,
okay so i have started to learn how to program directx 11 but my graphics card doesnt exactly support directx 11 it has the reference .dll files but how do i use them?
Download the directX SDK from MS. Be careful to read the information and also study the example files.
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.
- Brian W. Kernighan
okay so now that i have worked on this stuff for a few days i decided to make a cool little bedroom deal. well i dont want it to rotate automatically forever. i want it so that if you press the left arrow key it moves left and if you press the right arrow key it moves right but how do i do that?
I'm absolutely not a DirectX guy but I've a looked at the interface. I do remember that you can register to get keyboard pressure. Have you looked into that?
Last edited by S_M_A; August 14th, 2010 at 05:13 PM.
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.
- Brian W. Kernighan
yeah i have i look to try and capture keyboard input but i cant seem to find a way that works. i try the whole switch statement for messages. ex.
switch (msg)
{
case WM_CHAR:
{
switch(wParam)
{
case VK_LEFT://Left arrow key
{
code here
}
}
}
}
however many i need but it wont run it through the statements at all. and the directx doesnt affect how you input keyboard input atleast i dont think. but how would you do it in WinAPI?
Bookmarks