xna-3.0

Graphics Card and XNA 4.0

对着背影说爱祢 提交于 2020-06-22 08:28:18
问题 I create a new project in xna 4.0 for windows. I put it on both Reach and HiDef profile settings in properties. When debugging I get the following error: No suitable graphics card found. Could not find a Direct3D device that supports the XNA Framework HiDef profile. I made sure to select the 'Reach' profile, I still get this error. Graphics card is an intel GM45. It states support of DX10 on their website. Intel Core 2 Duo 2.2Ghz Windows 7 Professional Visual Studio 2010 Ultimate 3GB RAM So

Graphics Card and XNA 4.0

喜你入骨 提交于 2020-06-22 08:27:43
问题 I create a new project in xna 4.0 for windows. I put it on both Reach and HiDef profile settings in properties. When debugging I get the following error: No suitable graphics card found. Could not find a Direct3D device that supports the XNA Framework HiDef profile. I made sure to select the 'Reach' profile, I still get this error. Graphics card is an intel GM45. It states support of DX10 on their website. Intel Core 2 Duo 2.2Ghz Windows 7 Professional Visual Studio 2010 Ultimate 3GB RAM So

How to use DirectX.DirectInput in XNA

走远了吗. 提交于 2019-12-20 05:15:40
问题 joystick.cs using System; using Microsoft.DirectX.DirectInput; namespace gameproject { /// <summary> /// Description of device. /// </summary> class joysticks { public static Device joystick; public static JoystickState state; public static void InitDevices() //Function of initialize device { //create joystick device. foreach (DeviceInstance di in Manager.GetDevices( DeviceClass.GameControl, EnumDevicesFlags.AttachedOnly)) { joystick = new Device(di.InstanceGuid); break; } if (joystick ==

How to use DirectX.DirectInput in XNA

你离开我真会死。 提交于 2019-12-20 05:15:28
问题 joystick.cs using System; using Microsoft.DirectX.DirectInput; namespace gameproject { /// <summary> /// Description of device. /// </summary> class joysticks { public static Device joystick; public static JoystickState state; public static void InitDevices() //Function of initialize device { //create joystick device. foreach (DeviceInstance di in Manager.GetDevices( DeviceClass.GameControl, EnumDevicesFlags.AttachedOnly)) { joystick = new Device(di.InstanceGuid); break; } if (joystick ==

Asset not found XNA

烈酒焚心 提交于 2019-12-17 10:05:47
问题 I am very new to XNA and I began by following a tutorial that draws an image on the screen. I was able to move my image into the Content folder but when I try to use it in my code, it can't be found. I am using the asset name and I just cannot find what I am doing wrong. The tutorials use XNA 3.0 and I am using Visual Studio 2010, not sure if that matters or not. Here is my code public class Game1 : Microsoft.Xna.Framework.Game { Vector2 mPosition = new Vector2(0, 0); Texture2D mSpriteTexture

Why is Visual Studio not able to open .csproj files?

旧巷老猫 提交于 2019-12-09 07:58:53
问题 I have the odd problem that I am not able to open the properties of my .NET projects in Visual Studio. If I try to open it by clicking on the Properties tree node in the Solution Explorer I get the following message: There is no editor available for '....csproj'. Make sure the application for the file type (.csproj) is installed. If I try to open the project properties by the main menu nothing happens at all. I already tried to reset the Visual Studio settings by command line and a repair

Why is Visual Studio not able to open .csproj files?

我只是一个虾纸丫 提交于 2019-12-03 11:20:11
I have the odd problem that I am not able to open the properties of my .NET projects in Visual Studio. If I try to open it by clicking on the Properties tree node in the Solution Explorer I get the following message: There is no editor available for '....csproj'. Make sure the application for the file type (.csproj) is installed. If I try to open the project properties by the main menu nothing happens at all. I already tried to reset the Visual Studio settings by command line and a repair installation but nothing helped so far. I use the Visual Studio 2008 in version 9.0.30729.1 SP including

Asset not found XNA

家住魔仙堡 提交于 2019-11-27 09:48:48
I am very new to XNA and I began by following a tutorial that draws an image on the screen. I was able to move my image into the Content folder but when I try to use it in my code, it can't be found. I am using the asset name and I just cannot find what I am doing wrong. The tutorials use XNA 3.0 and I am using Visual Studio 2010, not sure if that matters or not. Here is my code public class Game1 : Microsoft.Xna.Framework.Game { Vector2 mPosition = new Vector2(0, 0); Texture2D mSpriteTexture; GraphicsDeviceManager graphics; SpriteBatch spriteBatch; public Game1() { graphics = new