Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 22 Jul 2013
Offline Last Active Oct 06 2013 05:33 AM

Posts I've Made

In Topic: warning C4005

27 August 2013 - 12:13 PM

You can always use DirectTK and DirectTex http://directxtk.codeplex.com/ http://directxtex.codeplex.com/
These replace most of D3DX function that you need the math ones are replaced by DirectMath and the good thing about this is that it is SSE2 aware.

I skimmed through directxtk a little but I could not find functions for loading .fxo file. It only says it offers built-in shaders to create functionality equivalent of BasicEffect from XNA. Also, I am hearing that directx 11.1 handles effects differently. What are the future plans from microsoft, will directx 11.2 in win 8.1 have this things fixed?
This tutorial from Frank D. Luna shows how to use hlsl (compile, load, send parameters such as constant buffers, SRVs, etc.) without using deprecated Effects11 library.
He also said: "In Metro applications, you cannot link with D3DCompiler.lib. Metro only allows certain APIs to be used for security (this is also why D3DX library and Effects cannot be used).", what answers one of my previous questions.
So I decided to keep using effects11.lib. As for the warning, I created this header which I call when I need directx headers:


#pragma warning( disable : 4005 )

#include <d3d11.h>
#include <d3dx11.h>
#include <d3dx11effect.h>

#pragma warning( default : 4005 )