• Create Account

Posted 21 August 2012 - 12:53 AM

Yes, actually I didnt set the sampler state. Thank you for pointing that.
Another questions:
If I have a class and I want to debug to a file or to a messagebox etc is ok to do that with a define ?
For exemple:
#define DEBUG 0

//some code that makes something
//..

#if DEBUG == 1
//write debug information about the code above to a file
#endif

// other lines of code
// ....
#if DEBUG == 1
//write debug information about the code
#endif


I know that are many logical ways to do that but I wonder wich one is better and used by a programmer.

Thanks.

Posted 21 August 2012 - 12:52 AM

Yes, actually I didnt set the sampler state. Thank you for pointing that.
Another questions:
If I have a class and I want to debug to a file or to a messagebox etc is ok to do that with a define ?
For exemple:
#define DEBUG 0

//some code that makes something
//..

#if DEBUG == 1
//write debug infor to a file
#endif

// other lines of code
// ....
#if DEBUG == 1
//write anothre debug info
#endif


I know that are many logical ways to do that but I wonder wich one is better and used by a programmer.

Thanks.

PARTNERS