Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 03 Jun 2012
Offline Last Active May 14 2013 12:29 PM

Posts I've Made

In Topic: Shader arhitecture

05 September 2012 - 03:38 AM

I was thinking about state changes and other CPU operations that will make the shader class reliable instead of just loading some shader files like textures. Also the framework strucutre is ok even if I dont complicate the things with shader ? I mean for everything else, like initiating objects with other objects and so on.

In Topic: Few question about DirectX 11

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 information about the code above to a file

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

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


In Topic: BMfont loader

20 August 2012 - 01:58 PM

Thank you very much for taking your time and writing this code. I will try it soon and reply back.
It worked as a charm thanks to your pseudocode explanation.
Thanks again.

In Topic: BMfont loader

20 August 2012 - 10:23 AM

I dont manage to do it. Its probably because I have quads that are not the same ? Im making gaps between characters with Xoffset but my characters are quads in the size of the UV I map.
Also the character id coresponds with a letter that I create in char by substractin 32;
for ex:

char char[0]= 'a' - 32;

char[0] will draw corectly lowercase a;

In Topic: BMfont loader

16 August 2012 - 09:13 AM

So, xoffset is for spacing between characters, yoffset for moving characters down (for example j,g) and kerning to space some characters that doesnt use default offset ?