Questions tagged [directx-9]

DirectX 9 is the 9th version of Microsoft's DirectX API, which is used to develop and handle tasks related to Multimedia, such as game programming, 3d visualizations and video on Microsoft platforms including Windows XP, Windows Server 2003, and Xbox 360.

DirectX 9 is the 9th version of Microsoft's DirectX API, which is used to develop and handle tasks related to Multimedia, such as game programming, 3d visualizations and video on Microsoft platforms.

664 questions
0
votes
1 answer

How can I copy parts of an image from the buffer into a texture to render?

I have been searching around for a simple solution, but I have not found anything. Currently I am loading a texture from a file and rendering it into the buffer using C++ 2012 Express DirectX9. But what I want to do is be able to copy parts of the…
User
  • 659
  • 2
  • 12
  • 29
0
votes
1 answer

How to set top-left coordinates in DirectX 9?

I need to draw something in DirectX 9. I am interested to work in a way that the coordinates will be adjusted to pixels, while (0,0) will be the TopLeft corner. Here is what I do: RECT clientRect; ::GetClientRect(m_hWIN, &clientRect); D3DXMATRIX…
Iron-Eagle
  • 1,707
  • 2
  • 17
  • 34
0
votes
1 answer

undefined reference to WinMain@16 and unknown pragmas

Possible Duplicate: undefined reference to `WinMain@16' I am running CodeBlocks, the latest version. I tried to compile a code I found in a tutorial site and I get an error for some reason. I set my project to DirectX9 and I installed the June…
Gladstone Asder
  • 383
  • 1
  • 7
  • 11
0
votes
2 answers

DirectX9 Use Geometry Instancing for a Mesh with multiple materials

I am trying to have a flexible Geometry Instancing code able to handle meshes with multiple materials. For a mesh with one material everything is fine. I manage to render as many instances as I want with a single draw call. Things get a bit more…
Liemarzac
  • 1
  • 2
0
votes
1 answer

What is significance of comma (,) in .x file

I am loading and writing DirectX .x file. I am trying to follow a third party application in the way it loads the file. If I have following mesh: Mesh obj1…
Aman
  • 696
  • 1
  • 8
  • 26
0
votes
0 answers

Can I use gdi+ image as directx9 texture without copy overhead

I have a stream of jpeg pictures(25fps, aboud 1000x700) and i want to render it the screen with as less CPU usage as possible. By now I found out a fast way to decompress jpeg images - it is a gdi+ api. On my machine it take about 50ns per frame. I…
nshy
  • 1,074
  • 8
  • 13
0
votes
1 answer

Memory leaks in C++ when rendering meshes

I'm planning on making a game engine in C++ and DirectX 9. So I'm just testing out the features in Direct3D. My problem is that when i render objects with the Direct3DX functions, (text, textures, meshes) the app's memory usage keeps going up and my…
user1843195
0
votes
1 answer

Playing AVI movie on directx 9 surface

I have got a directx9 window and i want to play an avi-video on a texture. i have heard that i can use directshow to do this? if this is really posssible, where can i find tutorials or sample code to do this? thanks!
clamp
  • 33,000
  • 75
  • 203
  • 299
0
votes
2 answers

DirectX, GDI+ or SDI on Windows XP?

If I want to do scaling and compositing of 2D anti-aliased vector and bitmap images in real-time on Windows XP and later versions of Windows, making the best use of hardware acceleration available, should I be using GDI+ or DirectX 9.0c? (Actually,…
Ian Goldby
  • 5,609
  • 1
  • 45
  • 81
0
votes
2 answers

DirectX 9 HLSL Glow Effect

There are multiple rings on the screen as shown. The requirement says that the user can select any of the rings and the selected ring should undergo glow effect(glow for few seconds then become green). All graphics rendering is to be done using…
proton
  • 658
  • 1
  • 7
  • 26
0
votes
1 answer

Is it possible to write windows and directx code with language extensions off?

I've got extensions off on my project but have to turn them on for any cpp file that includes directx or windows headers. If I turn extensions off on those cpp files it won't compile. Is there a way to get this to work? With language extensions…
EddieV223
  • 5,085
  • 11
  • 36
  • 38
0
votes
1 answer

Math for zoom to cursor on mouse wheel scrolling

Have to implement a Directx9 project that involves zoom towards the cursor like Google maps with the mouse scroll wheel (similar to this implementation by Phrogz). Need the math and the variables required for the same.
proton
  • 658
  • 1
  • 7
  • 26
0
votes
2 answers

Missing ';' identifier before PVOID64

I saw another post addressing this issue however the asker was apparently including winnt.h instead of windows.h (which supposedly includes winnt.h) I'm using windows.h but still getting this issue. I've tried using Visual Studio 2010 Express and…
Ryuu
  • 596
  • 1
  • 5
  • 26
0
votes
0 answers

CreateDeviceEx sometimes returns D3DERR_DRIVERINVALIDCALL

Sometimes, not all the time... when creating a D3D device, I get the error code D3DERR_DRIVERINVALIDCAL and then other times I get S_OK. I've been stuck on this issue for the past 3 days, going on number 4. Looking at the documentation on this error…
bl4kh4k
  • 1,440
  • 4
  • 20
  • 34
0
votes
1 answer

Subclass of IDirect3DDevice9?

Is it possible to create and use a subclass of IDirect3DDevice9? It would be very convenient for my code to do so, but I see that a device pointer is given as an out parameter from IDirect3D9::CreateDevice(), and I can't just tell it to make an…
may5694
  • 133
  • 1
  • 6