• Advertisement

kubera

Member
  • Content count

    194
  • Joined

  • Last visited

Community Reputation

1591 Excellent

About kubera

  • Rank
    Member

Personal Information

  1. Modern Windows emulate Fixed Pipeline using a set of shaders. Such modification does not rather help.
  2. Hi! It looks like you are passing the size of vertex instead of index size. Maybe better would be: sizeof(WORD)*m_IndxNum Maybe DirectX would write some informations to console in debug mode.
  3. Maybe the BMFont: http://www.angelcode.com/products/bmfont/ I render texts using this free tool. It creates textures.
  4. DirectX install function error

    You would ask the question in https://gamedev.stackexchange.com/ Experts directly from Microsoft are contributing there.
  5. DirectX install function error

    OK, maybe DirectXSetupGetEULAW instead of DirectXSetupGetEULAA. I guess, that DirectXSetupGetEULAA is ANSI, not UNICODE, it could be another reason. (.NET is rather UNICODE layer). Here, I am not sure...
  6. DirectX install function error

    Hi! The last parameter is 16bit unsigned short, it is rather: UShort than Integer
  7. The WS_EX_LAYERED style is incompatible with DirectX processing (or was a few years ago).
  8. Maybe you could use such boolean expression: if (x % 2 == y % 2)
  9. Hi!   One idea. Do you render transparent models after others? The order is important in a typical scenario,   Happy Christmas
  10. Hi!   An interestic thread. I use the Direct3D11 API, but min. feature level 9_3. One comment, that 9_1 ... 9_3 feature levels are maximum on some tablets. For such devices it is a good idea to be back compatible.
  11. Yoy may post the question on the GitHub. https://github.com/Microsoft/DirectXTK
  12. DX11 Use different shaders

    Hi!   I have a containter class, which has a few std::unorderde_maps. It has PSes, VSes and Input Layouts. These three classes may be merged into one combine. One thing is important about Input Layouts. You need them: one per D3D11_INPUT_ELEMENT_DESC, not per VS. It makes code a bit complex. I have also XML parser (very simple based on MS XML Light), which is a database describing how to join them. The last thing, I have only precompiled shaders. They are loading faster. Everything is called by the std::wstring - name.
  13. C++ Class Constructor

    I am not sure, but it looks like the compiler wants to move instead of copying. Phonebook::Phonebook(const string & tmp_pb_name) : phonebook_name(tmp_pb_name) { } Phonebook::Phonebook(string && tmp_pb_name) noexcept: phonebook_name(std::move(tmp_pb_name)) { } The first thing, that is a bit interesting: that you can initialize the phonebook_name variable like me in this code. It is a bit faster, than yours. In your code is called default ctor, and the assigment later. In my is only ctor with value to copy.   The first version copies string from the parameter, the second moves. (the source become invalid or empty after the movement, for example string becomes an empty one, but it is more efficient sometimes)   P. S. In your code you pass string by value, sometimes is reference is better.
  • Advertisement