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
2 answers

C2440 for overloaded function MsgProc

This is a continuation from this question. I have the following assignment: WNDCLASSEX wndClass = { sizeof( WNDCLASSEX ), CS_CLASSDC, MsgProc, 0, 0, GetModuleHandle( NULL ), NULL, NULL, NULL, NULL, "D3D Tutorial", NULL }; wc =…
Friso
  • 2,328
  • 9
  • 36
  • 72
0
votes
2 answers

Why can't I initialize WNDCLASSEX wc?

I declare the attribute WNDCLASSEX wc in my header file like so: private: HWND hWnd; LPDIRECT3D9 g_pD3D; // Used to create the D3DDevice LPDIRECT3DDEVICE9 g_pd3dDevice; // Our rendering device WNDCLASSEX wc; And I want to initialize…
Friso
  • 2,328
  • 9
  • 36
  • 72
0
votes
1 answer

Correctly rendering overlapping triangles?

I started learning DirectX 9 in C#. I want to render two triangles and rotate them around the Y axis. In this part I initialize the Device: public bool InitializeDevice() { try { meshList = new List(); // Erstellt…
Maxim
  • 317
  • 1
  • 5
  • 13
0
votes
1 answer

Rendering separate textures using DirectX

I'm sure there is a simple answer to this one somewhere. I currently have a program which correctly renders a .png image as a texture over a rectangle of vertices. This all works fine and displays correctly. My question is how do I go about…
user1780123
0
votes
2 answers

How to do .png image blur using DirectX9 without using advance 3d features HLSL / Per Pixel motion blut / Vertex Shader

Can anyone please help me how to do .png image blur using DirectX9 (2d graphics feature of d3d) without using the advance 3d features like High Level Shader Language(HLSL), Direct3D Per Pixel Motion blur and Vertex Shader. Detailed explanation: I've…
SridharKritha
  • 8,481
  • 2
  • 52
  • 43
0
votes
1 answer

How to use function D3DXSaveSurfaceToFile() in C#

I use directx 9 to build model. I want to save it to bmp file. I found the function D3DXSaveSurfaceToFile() But I do not know how to use it in C#. How can I use it?
user1369825
  • 694
  • 6
  • 9
0
votes
1 answer

Directx9 Font Update with int to LPCTSTR conversion

I'm trying to show the score on the screen. Following code works fine: g_Font = NULL; D3DXFONT_DESC f = {fontSize, 0, 400, 0, false, …
mtyurt
  • 3,369
  • 6
  • 38
  • 57
0
votes
0 answers

2 x "LNK2019: unresolved external symbol" errors when compiling

I get the below two linking errors when I try to compile in VS 2010. I have ensured that my include & library settings are correct in the project properties > VC ++ Directories & also checked to make sure that Project > Linker > Input has d3d9.lib…
user1780123
0
votes
1 answer

Getting debug output from a crashed VS2010 application

Question: Can I set up VS2010 so it automatically writes debug output to a file? Motivation: I have a DirectX 9 application that I'm trying to debug. I've noticed that when my application is fullscreen, it may crash under certain conditions.…
Saage
  • 363
  • 1
  • 3
  • 12
0
votes
1 answer

Ambient/Diffuse Lighting, get a final static diffuse shade color of vertex

I'm not sure if this is possible (or if I'm asking the right question). I have a vertices/indices and I render in a scene in DirectX 9.0. Now, I'd like to add ambient and diffuse lights, and then get the final resulting calculated Diffuse Shade…
Mary Ellen Bench
  • 589
  • 1
  • 8
  • 28
0
votes
1 answer

Clipping surface to viewport

I'm trying to render a surface with a method that takes a Surface and X, Y position to render at. The problem is that when the surface is outside the screen by one small pixel, it doesn't render at all. Why is that? I'm trying to search for DirectX…
Deukalion
  • 2,516
  • 9
  • 32
  • 50
0
votes
2 answers

Changing resolution in DirectX9

I'm finding it hard to find good sources of information for explanations of DirectX API although I've been looking at the DirectX Documentation for a while. I'm trying to create a method for a wrapper class for DX9 that changes the resolution during…
Deukalion
  • 2,516
  • 9
  • 32
  • 50
0
votes
1 answer

Skybox texture not showing in DirectX9

I am trying to render a skybox in DirectX9 with fixed function pipeline (without shader or effect file). I can view the cube rendering. When I set the texture all faces are getting painted with a single strange color (not white or blank). The…
proton
  • 658
  • 1
  • 7
  • 26
0
votes
1 answer

Stencil buffer test settings DirectX9

I have a function that renders a triangle of desired color. I am trying to render a yellow triangle and then a red triangle over it with stencil test enable. I am using a circle as my stencil window. What should be my stencil test equations and…
proton
  • 658
  • 1
  • 7
  • 26
0
votes
1 answer

How does one copy a texture from one device to another?

I have a directx9 device for separate windows. One of the windows has a rendered image on it. What I would like to do is actually take Device 'A' image and place the texture on Device 'B's texture. Is this possible? I was trying to figure out why…
User
  • 659
  • 2
  • 12
  • 29