directx

d3dx11.lib not found?

穿精又带淫゛_ 提交于 2021-02-07 06:18:05
问题 I'm using Windows 8 / Visual Studio 2012, C++11 and Direct3D 11 for development. I include the Direct3D libraries like this #pragma comment(lib, "dxgi.lib") #pragma comment(lib, "d3d11.lib") #pragma comment(lib, "d3dx11.lib") // <-- error LNK1104: cannot open file 'd3dx11.lib' #pragma comment(lib, "d3dx10.lib") However, the linker can't seem to find the d3dx11.lib . After adding the path where the library is located to the 'Library directories' of the project, the linker still can't find

Programmatically set Graphics Performance for an app

丶灬走出姿态 提交于 2021-02-07 04:20:57
问题 There is an option in Windows control panel that allows to set a app to "high performance". Control Panel -> System -> Display -> Graphics Settings. On adding my application there, I noticed that, when encoding with Media Foundation and H.265 it uses the NVIDIA gfx adapter for encoding. Before that, it used to use the embedded Intel graphics which would only do H.264 encoding, so H.265 encoding was slowly done in CPU. How can I add my application there programmatically? It's crucial for my

Programmatically set Graphics Performance for an app

谁说胖子不能爱 提交于 2021-02-07 04:17:57
问题 There is an option in Windows control panel that allows to set a app to "high performance". Control Panel -> System -> Display -> Graphics Settings. On adding my application there, I noticed that, when encoding with Media Foundation and H.265 it uses the NVIDIA gfx adapter for encoding. Before that, it used to use the embedded Intel graphics which would only do H.264 encoding, so H.265 encoding was slowly done in CPU. How can I add my application there programmatically? It's crucial for my

Programmatically set Graphics Performance for an app

做~自己de王妃 提交于 2021-02-07 04:16:24
问题 There is an option in Windows control panel that allows to set a app to "high performance". Control Panel -> System -> Display -> Graphics Settings. On adding my application there, I noticed that, when encoding with Media Foundation and H.265 it uses the NVIDIA gfx adapter for encoding. Before that, it used to use the embedded Intel graphics which would only do H.264 encoding, so H.265 encoding was slowly done in CPU. How can I add my application there programmatically? It's crucial for my

How do I install Windows 10 SDK for use with Visual Studio 2017

有些话、适合烂在心里 提交于 2021-02-05 20:18:22
问题 I can't figure out how to install Windows 10 SDK for Visual Studio 2017. I downloaded and ran the Windows 10 SDK installer, and it displays Please find winsdksetup.exe in ....\Windows kits\10\WindowsSDK to install Windows Software Development Kit - Windows 10.0.17134.12. When I run winsdksetup.exe , it takes me through the same loop, where it downloads a bunch of executable installers into this directory and show the same exact message. When I try to build a DirectX project in VS2017, I get

How do I install Windows 10 SDK for use with Visual Studio 2017

随声附和 提交于 2021-02-05 20:16:54
问题 I can't figure out how to install Windows 10 SDK for Visual Studio 2017. I downloaded and ran the Windows 10 SDK installer, and it displays Please find winsdksetup.exe in ....\Windows kits\10\WindowsSDK to install Windows Software Development Kit - Windows 10.0.17134.12. When I run winsdksetup.exe , it takes me through the same loop, where it downloads a bunch of executable installers into this directory and show the same exact message. When I try to build a DirectX project in VS2017, I get

How do I rotate my camera correctly in my 3D world?

◇◆丶佛笑我妖孽 提交于 2021-02-05 11:54:20
问题 Im triyng to learn 3d programming and Im currently working on a FPS camera-style for a hobby project. I've created those matrices I believe I should use but Im having trouble seeing how to connect everything to the camera rotation. So, I have a camera Class with: get_World_To_View matrix mat4f rotMatrix = mat4f::rotation(-rotation.z, -rotation.x, -rotation.y); rotMatrix.transpose(); return rotMatrix * mat4f::translation(-position); get_ViewToWorld matrix return mat4f::translation(position) *

Microsoft DirectX Sound on Visual Studio 2017

主宰稳场 提交于 2021-02-05 09:00:26
问题 I have an old program made with Visual C# 2010. Now I would to use it again so I tried to compile on Visual 2017 Community but it launch an Exception on MicrosoftDirectSound. I understood that it's because is on 32bit so I would ask you if there is any workaround to implement that directx or alternatively what I have to use in the new scenario. I tried with "corflags" too, but it returns a warning about strong named signed. System.BadImageFormatException: ... is not a valid Win32 application.

SetLayeredWindowAttributes to make a window transparent is only working part of the time

时光怂恿深爱的人放手 提交于 2021-02-05 07:10:34
问题 I'm trying to make a window transparent so that only part of its contents are visible, I've tried using SetLayeredWindowAttributes to make this happen, this made the window transparent as I wanted, however it only works that way when part of the windows picture is outside of the visible area of my desktop. For some reason whenever the window is fully on screen it re-draws its black background (the color I use for transparency that's meant not to be seen.) Here is a video example of the

the type or namespace name 'directx' does not exist in the namespace 'microsoft'

 ̄綄美尐妖づ 提交于 2021-02-05 05:04:02
问题 I have been trying to include DirectX in C sharp project (Visual Studio 2010). I installed DirectX SDK and included the components as: using Microsoft.DirectX; using Microsoft.DirextX.Direct3D; When I try to compile, I get the error: the type or namespace name 'directx' does not exist in the namespace 'microsoft' Some blogs mentioned that I need to add 'reference' - Microsoft.DirectX under '.NET' tab. But I couldn't find it over there. Neither was any facility to add it to the tab. Any