DCSIMG
XNA,Source Code,Visual Studio - Alex Golesh's Blog About Silverlight Development

Browse by Tags

All Tags » XNA » Source Code » Visual Studio (RSS)

Where am I?

If you developing games using XNA game studio, many times you need to know where your code is running - on PC or on Xbox 360 hardware... Unfortunately, there is no any out-of-the box functionality provided by XNA Framework to check platform, but here is the solution: XBox 360 the only device, which supports special 3rd mode for Pixel & Shaders version 3 on its Shader profile and this could be checked out. Here is the sample code: 1: bool isXbox = false ; 2:   3: //Lets get graphics device...