简体   繁体   English

Directx12 和击键

[英]Directx12 and keystrokes

making exercises with DX12.使用 DX12 进行练习。 I want to add the possibility of circling around objects with the w, a, s, d keys.我想添加使用 w、a、s、d 键环绕对象的可能性。 Can anyone point me to a valid resource on this topic?谁能指出我关于这个主题的有效资源? Or give me a good hint?或者给我一个好的提示? In a not too complex language, please.请用不太复杂的语言。 Look at my nick ( cppSTUDENT ).看看我的昵称 (cppSTUDENT)。 Thanks.谢谢。

First, if you are new to DirectX then you should probably start with DirectX 11. DirectX 12 is a very low-level API, and the developer is responsible for managing a lot of things which can be overwhelming when you are just starting out.首先,如果您是 DirectX 新手,那么您可能应该从 DirectX 11 开始。DirectX 12 是一个非常低级的 API,开发人员负责管理很多在您刚开始时可能会不知所措的事情。 You also need some reasonably good graphics debugging skills to work out bugs in the code.您还需要一些相当好的图形调试技能来解决代码中的错误。 Both APIs do basically the same thing in terms of functionality, but DirectX 11 is a little easier to get started with.两种 API 在功能方面基本相同,但 DirectX 11 更容易上手。

If you are a C++ programmer, then see DirectX Tool Kit for DX11 and/or DX12 .如果您是 C++ 程序员,请参阅DirectX Tool Kit for DX11和/或DX12 See the SpriteBatch , PrimitiveBatch , and Keyboard classes to start.请参阅SpriteBatchPrimitiveBatchKeyboard类开始。

If you are a C# programmer, then consider SharpDX , SlimDX , and/or Unity .如果您是 C# 程序员,请考虑使用 SharpDXSlimDX和/或Unity

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM