Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

Banderi

Member Since 03 Mar 2013
Offline Last Active Apr 04 2013 11:17 AM
-----

Posts I've Made

In Topic: Mouse movements

05 March 2013 - 01:52 PM

If you want to just check the press of its buttons, you can use GetKeyState on the button keys:

 

if ((GetKeyState(VK_LBUTTON) & 0x80) != 0)
{
   // left button pressed, do something
}
if ((GetKeyState(VK_RBUTTON) & 0x80) != 0)
{
   // right button pressed, do something
}

In Topic: [SOLVED] Shader crash

04 March 2013 - 03:56 PM

No, I'm pretty sure I can pass just a VS or a PX alone (some HLSLs in tutorials had only this or that and worked fine);

 

Anyways, I added its compilation to the VC++ debugger via the official FXC compiler and it showed me that there was a variable I didn't declare XD

Now it works just fine (well, actually the rendering is all messed up, but I knew it, I was just testing)

 

EDIT: If it can be of help, this is how to add the compilation of an .fx file to debug HLSL: http://takinginitiative.net/2011/02/19/debugging-hlsl/


In Topic: [SOLVED] Shader crash

04 March 2013 - 03:09 PM

Mhh, the D3DXCreateEffectFromFile() function returns me E_FAIL..

Looking for info on this, I think I'd need to debug the HLSL.. how can I do that the simplest way?


In Topic: [SOLVED] Shader crash

04 March 2013 - 10:44 AM

599524.jpg


In Topic: Image Loading problems

03 March 2013 - 08:59 AM

Oh, okay


PARTNERS