directx

How to handle multi touch in windows phone 8 app

喜夏-厌秋 提交于 2019-12-07 18:38:54
问题 I can not find an example how to handle multi touch in windows phone 8 app ( in game on c++ and directx ). May be anyone can help me? Thanks! 回答1: I figured out how to do it. I am a C++ newbie so there may be much better ways to do this, but my way works. (FYI - I wrote an article about this on Nokia's Developer site: http://developer.nokia.com/Community/Wiki/Multi-touch_handling_using_DirectX_C%2B%2B#PointerPoint ) You need to keep track of the PointerId inside of the PointerPoint. I store

Debugging/bypassing BSOD without source code

妖精的绣舞 提交于 2019-12-07 18:16:27
问题 Hello and good day to you. Need a bit of assitance here: Situation : I have an obscure DirectX 9 application (name and application details are irrelevant to the question) that causes blue screen of death on all nvidia cards (GeForce 8400GS and up) since certain driver version. I believe that the problem is indirectly caused by DirectX 9 call or a flag that triggers driver bug. Goal : I'd like to track down offending flag/function call (for fun, this isn't my job/homework) and bypass error

How to Draw Two Detached Rectangles in DirectX using the D3DPT_TRIANGLESTRIP Primitive Type

微笑、不失礼 提交于 2019-12-07 15:55:15
问题 I am new to DirectX and I am trying to draw two rectangles in one scene using D3DPT_TRIANGLESTRIP . One Rectangle is no problem but two Rectangles is a whole different ball game. Yes i could draw them using four triangles drawn with the D3DPT_TRIANGLELIST primitive type. My curiosity is on the technic involved using D3DPT_TRIANGLESTRIP . Parts of the code i am using for one Rectangle using D3DPT_TRIANGLESTRIP is as follows: CUSTOMVERTEX recVertex[] = { { 10.0f, 10.0f, 0.10f, 1.0f, 0xffffffff,

Media player/recorder (phonon)

给你一囗甜甜゛ 提交于 2019-12-07 15:08:13
问题 I would like to develop a media player/recorder. The primary target platform is Windows, support for other OSs would be nice, but that's not a high priority. It should be able to play formats like wav, mp3, avi. It should also be able to record audio (microphone) and video (webcam or capture card). As I have some experience with QT and C++, I looked at QT (4.7.2) phonon with DS backend. But unfortunately I was unable to play a simple AVI, even with the MediaPlayer sample that comes with the

How do I inject custom audio buffers into a DirectX filter graph using DSPACK?

时光怂恿深爱的人放手 提交于 2019-12-07 12:09:00
问题 I am using Delphi 6 with DSPACK to do several operations involving audio and DirectX. I have the "input" side figured out where I assign one of the enumerated audio input devices to a TFilter object and connect that filter to a TSampleGrabber object and that gives me the audio buffers I need to send audio to Skype. It is the logical inverse of that graph that I need to figure out. I receive audio buffers from Skype via a socket. I need to create a graph that has a filter that would be the

How to resize DirectX window efficiently?

泪湿孤枕 提交于 2019-12-07 11:05:20
问题 I looked at this site example: http://www.codesampler.com/dx9src/dx9src_6.htm But the code is rather weird: it frees every texture, vertex buffer, everything! and then builds them up again: loads the model from disk ... i dont think that is very efficient! OpenGL can do window resizing on fly with no such limitations. How can i do the same as OpenGL does: efficient window resize with no need to free every resource in my program? I tried the code in the above link example, without those

Find out DirectX Version

故事扮演 提交于 2019-12-07 08:25:30
how can you detect if the directx version on a windows 7 machine is 11 or 11.1 ? preferably using a .NET language maybe via PInvoke or SharpDX? Ivan Aksamentov - Drop Just try to create a device with a specific feature level (along with other parameters). In native code (use one of the D3D11CreateDevice* functions) . If function will not succeed - feature level is not supported. To make it easier, we usually pass array of feature levels, and then, if device is not nullptr , we can check which one is highest supported: const D3D_FEATURE_LEVEL arrFeatLevels[] = { D3D_FEATURE_LEVEL_11_1, D3D

UpdateLayeredWindow with normal canvas/textout

人盡茶涼 提交于 2019-12-07 08:17:14
问题 Is there a way to draw on form with canvas and then use the updatelayeredwindow so not the form will be visible but the text, like a transculent form showing only text? if not, then is there a way to make some sort of transculent form with only the canvas (opengl/directx) maybe? i would like to draw with commands on the top of all windows. 回答1: You can set the TransparentColor property of the form to 'True', then set the form color to the same color of TransparentColorValue , and all of the

Some options on DirectX control panel was disabled on Windows 8

笑着哭i 提交于 2019-12-07 06:47:18
问题 I am using DirectX 9.0 on Windows 8, when I open the DirectX control panel, I found some options was disabled, I am running as a administrator, so this is not an privilege issue. why this happened? I can't turn on the debug version runtime since it is disabled. see picture below. the SDK I am using is June 2010 回答1: Answer from Microsoft XNA forum The Direct3D 9 Developer Runtime (aka D3D9D.DLL) in the legacy DirectX SDK (June 2010) is not compatible with Windows 8. In fact, the entire

Full screen capture of a DirectX program in java (Javacv ?)

假装没事ソ 提交于 2019-12-07 06:10:56
问题 [For Windows] I know it is possible to capture screen of a DirectX program running under C# language, but do you know some sample code for Java? I am actually facing this same problem than this Take screen shots inside of full screen applications with java?. Robot class didn't helped and neither worked. But yet I didn't found any sample of java code on the internet concerning this. Thanks for any help you could provide on this topic. 回答1: Since I worked on it more, see also: import java.awt.*