Jump to content

  • Log In with Google      Sign In   
  • Create Account


Mona2000

Member Since 08 Sep 2011
Offline Last Active Aug 26 2014 05:10 PM

Posts I've Made

In Topic: Directx 11 instancing

26 August 2014 - 05:10 PM

Frequency of update has nothing to do with that. Did you try removing row_major?


In Topic: Directx 11 instancing

26 August 2014 - 03:51 PM

Yes, but you are using them in the same way, passing the same data, yet one is column_major and the other is row_major. That doesn't sound right, unless I'm missing something.


In Topic: Directx 11 instancing

26 August 2014 - 03:22 PM

matrix World gets the same value as row_major matrix instancePos, so why is only the last one row_major?


In Topic: Strange ifstream crash

24 August 2014 - 07:14 AM

Just a note, since this seems to be resolved already, but "if(file)" is not a proper way to check if the file opened or not.

 

It actually is, using operator void * (or operator bool if c++11).


In Topic: D3D11DeviceContext::DrawIndexed Does'nt Draw anything

19 August 2014 - 05:29 AM

Since UINT doesn't have a default constructor mechanism, you end up with the contents of memory in your vector.

 

The parameter is declared as const value_type& val = value_type(), so it will perform zero initialization for built-in types:

int a; // garbage
int b = int(); // zero initialized

PARTNERS