Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 16 Oct 2012
Offline Last Active Apr 20 2015 09:04 PM

Posts I've Made

In Topic: Game engine book?

20 November 2013 - 08:34 AM

《Game Engine Architecture》, this book may help!

But l haven't read it since now, my firend told me that this book may be good for some guy who want to know game engine but not just how to use it and what it is.


May google can help you got more  answer about your question.

In Topic: about keyword and include

01 October 2013 - 07:13 PM

If I understand your question correctly, you're asking why the keywords of C++ do not need a header file.  


Simply, they are a part of the language.  A compiler / parser is essentially hard-coded with the rules it needs to understand what keywords are, and what it is supposed to do with them.  Several international C++ standards exist which give precise definitions, depending on the version of C++ you're using.  


While it might be possible for a tool to construct a language from a set of rules, such as the keywords, you would have to require that tool to have certain rules to understand those definitions.  At some point a tool must have some set of basic definitions for it to do its job.  And that's what keywords partially represent -- an internal skeleton that guides the parsing / compiling processes to choose the appropriate rules when translating your code.

Nice answer!  Before ask this question, l think if we want use something from language we must include some header file,but yesterdayl try to remove any header in my source file,then no error is reported.  This break my cognitive.  Your answer is very nice for me, thanks.

In Topic: D3D11 Shader Compile error x3116 :flags parameter is invalid.

12 July 2013 - 07:07 PM


Sry... there is already an answer

DWORD shaderFlag;
        #if defined(DEBUG) || defined(_DEBUG)
        shaderFlag |= D3D10_SHADER_DEBUG;
        shaderFlag |= D3D10_SHADER_SKIP_OPTIMIZATION;

at creation moment shaderFlag contains some random value. change line :

DWORD shaderFlag;

to : 

DWORD shaderFlag = 0;


Although,l got the answer before your suggestion, thanks.smile.png

In Topic: D3D11 Shader Compile error x3116 :flags parameter is invalid.

10 July 2013 - 04:45 AM

Have you tried setting the shader flags to 0?


Also (I'm not sure if it matters) but you might want to try using "ps_5_0" instead of "fx_5_0" since that's how it's set up in the shader technique.


You are right,the shader flag should set to 0.sad.png

it's so stupid mistake......

l should more careful about this mistake,thanks for your help,guys.smile.png

In Topic: About input slot and vertex buffer

25 April 2013 - 07:16 AM

Thanks, it's work.biggrin.png