Topics about games made for Microsoft Windows products. These include Windows 7, Vista, XP.
3
votes
1answer
244 views
How can I show a texture in a separate window in an XNA game?
I'm playing around with random map generation and what I want to do is:
Input a command to generate a random map.
A texture will be created resembling the generation, each pixel resembling each ...
3
votes
3answers
6k views
Best way to get elapsed time in miliseconds in windows
I'm trying to do it using two FILETIMEs, casting them to ULONGLONGs, substracting the ULONGLONGs, and dividing the result by 10000. But it's pretty slow, and I want to know if there is a better way to ...
3
votes
3answers
624 views
Multi Threading In Update Loop
Okay so I am working on a game engine and this was my previous game loop:
Game::Run()
{
While(!m_GameDone)
Client.Update();
LocalServer.Update();
}
but what I want to do is:
...
3
votes
2answers
207 views
Unity game onto Windows 8 store
I've been searching around the web to see if it is possible to submit a unity game onto the windows 8 store. All I have found so far are articles months old saying it is coming soon, can anyone give ...
3
votes
1answer
2k views
Getting started with cross-platform game development
I am looking for a starting place to develop a crossplatform OpenGL game that runs on Mac, PC and potentially Linux. The difficulty is that I don't want to use an existing graphics library.
I've ...
3
votes
2answers
499 views
How can I hook into OpenGL initialization on Windows?
I want hook all OpenGL games/applications. I want load my library only if application actually use OpenGL. Something like Direct3DCreate9 for Direct3D 9 or CreateDXGIFactory for Direct3D 10/11.
I ...
3
votes
3answers
359 views
Pen tablet input for FPS
So in my FPS camera look code, I have something like this:
window->camera->stepYaw( getMouseDx()*speed ) ; // mouseDx is mouse change since last frame
window->camera->stepPitch( ...
3
votes
2answers
417 views
How to check Early Z efficiency on AMD GPU with Windows 7
I have a game using DirectX 9, and a development station using Win 7 x64. I am still able to get access to another station with Vista x64 / dual booted with WinXP x86.
I wanted to check early Z ...
3
votes
1answer
112 views
DXGI and 2+ full screen displays on Windows 7
I am developing a program that needs two full screen Direct3D dispalys. According to the documentation I should create the swap chains in windowed mode and then switch to full screen mode. While this ...
3
votes
2answers
439 views
Why can't I import third-party modules I've installed in the python-ogre SDK's interpreter?
Background Information
I'm using the python-ogre SDK, located here, under Windows 7. The SDK seems to have its own interface to the python 2.7 interpreter, judging from the fact that the generic ...
2
votes
4answers
611 views
Should the main game object be static in c++
I am creating a 2d platformer using SDL and I was thinking that my game object could be static, but I wasn't sure if this was a good idea.
The pros (that I can see):
Accessing settings options ...
2
votes
3answers
3k views
Bitmap to Texture2D problem with colors
I have a small problem with converting a bitmap to a Texture2D. The resulted image of the conversion has the red channel switched with the blue channel :/ I don't know why, because the pixel formats ...
2
votes
3answers
209 views
Multithreaded game fails on SwapBuffers in render thread at exit
The render loop and windows message loop run on separate threads. The way the program exits is that after PostQuitMessage is called in WM_DESTROY the message loop thread signals the render loop thread ...
2
votes
1answer
153 views
DirectX the same across platforms?
Various versions of DirectX are available on both Windows and Xbox. Are the libraries the same on both platforms? Obviosly I'm talking about the interfaces — such as the ones for working with ...
2
votes
2answers
355 views
Why doesn't this ContentLoader project (VS2010 e) recognize Microsoft.Build.dll?
I am working with an XNA content loader sample. In the references for the project (VS 2010 Express) there are:
Microsoft.Build
Microsoft.Build.Framework
//as well as the standard XNA framework and ...
2
votes
1answer
909 views
Loading textures with SharpDX in Metro
I have converted my C# game from OpenTK (OpenGL) to SharpDX (DirectX) and have it up and running from Visual Studio 2010. I also have it up and running from Visual Studio 11 in Metro, in the Windows 8 ...
2
votes
1answer
62 views
Augment an existing game with touch gestures
I want to enhance Homeworld 2 gameplay with touch gestures. The game is running on Windows.
So, two questions:
Is it possible to wrap the game with a program that would capture
touch gestures, ...
2
votes
1answer
84 views
Could the delta frame time be negative?
I'm following a tutorial about the time management and, the tutorial shows this function:
double GetFrameTime()
{
LARGE_INTEGER currentTime;
__int64 tickCount;
...
2
votes
2answers
142 views
Rendering output to arbitary quadrilateral
I want to render output on a device to an arbitary quadirlateral, i.e. project texture on to a quad. What are the possible ways I could implement it?
Till now, I have investigated:
Drawing textured ...
2
votes
1answer
277 views
Game programming basics under Windows
I've been trying to learn some Windows programming using the Win32 API. Now, i'm used to working with the OS layer being abstracted away, mostly thanks to libraries like SFML or Allegro. Could you ...
2
votes
2answers
779 views
Why is OpenGL using 100% CPU shortly after start up when wglSwapIntervalEXT is enabled?
I have a game which uses SFML, which in turn uses OpenGL.
When I run the game, it will use 100% CPU for (usually) about 24 seconds, and then immediately falls down to normal usage. I can't figure out ...
2
votes
1answer
436 views
How do I get an xbox 360 controller to rumble?
I am interfacing with the controller using the windows HID API. It seems that its output report length, as provided by the HID driver, is 0, which means I can't send it anything (e.g. make the rumble ...
2
votes
2answers
2k views
How detect which OpenGL texture formats are natively supported?
For example, how detect if my videocard doesn’t support "bgr8" and convert it to another format, such as "rgba8" in software mode.
UPDATE: Sorry for the confusion. This question more about situation ...
2
votes
2answers
2k views
Where can I get DirectX headers for Mingw?
I have downloaded the latest Mingw toolchain from mingw.org, but it seems DirectX headers are missing. Where can I get those?
I assume there are open source compatibility headers out there, in ...
2
votes
2answers
821 views
How to tell if a glut window has focus from c#
How can I tell if a glut window has focus? Im using c#/tao, Ill use p/invokes if necessary.
Basically I want to ignore input if it doesn't have focus.
1
vote
5answers
504 views
Game Timer In C++
I need to be able to find out how many milliseconds since that last update. Is there any way I can find it out with time rather then a thread that counts like I did below?
#include <iostream>
...
1
vote
1answer
510 views
Best API coverage for 2D game?
If one were to code a game for most versions of Windows, which API should be used?
I know DirectDraw works from NT4 and up (although DirectDraw is emulated on NT4 with GDI). However, I am told ...
1
vote
1answer
842 views
Am I allowed to release an app I developed with Xcode on windows?
I want to develop an app for the iOS app store, but don't want to invest in a mac since they start very expensive. So I considered running Xcode via VMware using OSX Lion on my windows 7 computer. ...
1
vote
3answers
1k views
How to draw 2D images using OpenGL, in SDL?
After everything, I managed to find a simple piece of code that shows how to draw a 2D image with openGL:
#include "SDL/SDL.h"
#include "SDL/SDL_opengl.h"
#include "SDL/SDL_image.h"
...
1
vote
2answers
237 views
What is the Xbox360's D3DRS_VIEWPORTENABLE equivalent on WinXP D3D9?
I posted this on StackOverlow, but of course it should be posted here.
I am maintaining a multiplatform codebase for Xbox360 and WinXP. I am seeing an issue on the XP side that appears to be related ...
1
vote
1answer
86 views
Packaging XNA game studio with project
I published an XNA game (for Windows only) using Visual Studio's publish feature which is supposed to handle dependencies and all that.
When I installed it on myself it verified system requirements ...
1
vote
1answer
139 views
Thread.SetProcessorAffinity() equivalent for Windows?
I want to be able to use multiple cores in my XNA game, but it seems that Thread.SetProcessorAffinity() is only usable on xbox. That being said, is there any way to run a small chunk of my code on ...
1
vote
1answer
635 views
DX11 application running on Windows XP using only DX9?
I'm developing an application that utilizes DX11. I know that DX11 is only available on Windows 7 (and Vista with SP). I wonder if there is some way to run the application on Windows XP and use only ...
1
vote
2answers
204 views
How to give parallax backgrounds more depth
I have 3 tiled images of some sort of galaxy/space in the background of a 2D Game:
The first one has an alpha of 100%, the second an alpha of 80% and the last one has an alpha of 60%.
I scroll the ...
1
vote
1answer
88 views
Task Core dividing
How can I divide the tasks for diffrent cores?
E.g. 4 Cores
func1() -> core1
func2() -> core2
func3() -> core3
func4() -> core4
Is there special libary for this? Or do I have to use the old ...
1
vote
1answer
341 views
High Resolution Timer Options in Windows
I'd like to know what are my options for high resolution timer in Window. I want a timer with at least 1ms precision since I need it for a rhythm game. I'm using QueryPerformanceCounter now, but I ...
1
vote
1answer
166 views
Why am I getting a “multiple definition of *” error when initializing OpenGL extensions?
I'm creating a game engine using OpenGL, and I'm initializing the extensions manually, i.e. this:
// .h file
PFNGLACTIVETEXTUREPROC glActiveTexture;
/* .cpp file, initialization function */
...
1
vote
1answer
231 views
What are developers using for voice chat on Windows?
On Xbox360 XHV2 is used for dealing with voice data, and XAudio2 is used for the low-level processing of that data. What is the XHV2 equivalent under Windows, assuming FMOD is used for the low-level ...
1
vote
1answer
421 views
Windows Class Library vs XNA Class Library
I'm going to start a library in C# for Navigational Meshes. I would like to use it in both WPF/Winforms and in XNA. Can I create a windows class library and still use it in XNA?
1
vote
2answers
162 views
Full screen blackout using allegro in codeblocks
I'm very interested in game programming and I'm taking my first steps alone. So I installed allegro. Although Dev-C++ didn't work, Code::Blocks compiled successfully. I started out with this basic ...
1
vote
2answers
274 views
How can i make my program use 2 windows?
I'm working in Xna 4.0 and iwant to make a program that uses the same code in 2 different windows.
What i want out of this is that one player plays in one window and the other player to play in the ...
1
vote
1answer
145 views
Present fails randomly on mixed C++ Direct3D9 app
I have a mixed .NET application (managed and unmanaged code bridged by C++/CLI wrappers) which uses unmanaged Direct3D9 9.0c to do rendering inside a control which is wrapped inside a C++/CLI class ...
1
vote
1answer
130 views
When rendering on two different computers, the texture is glitchy
I am using Ogre3D, and have been using it for a while. Also lately, I have been using the Opengl Rendering system that is included in Ogre, only because Directx will not compile correctly(Will post ...
1
vote
1answer
189 views
Can I change the order of these OpenGL / Win32 calls?
I've been adapting the NeHe OpenGL/Win32 code to be more object-oriented and I don't like the way some of the calls are structured.
The example has the following pseudo-structure:
Register ...
1
vote
1answer
297 views
Maya .IFF plugins for Gimp
Maya's preferred format for saving off a UV Snapshot is its own .IFF format, so I was hoping to find a plugin allowing Gimp 2 (Windows) to read it. I've found plenty of plugins for different linux ...
1
vote
2answers
69 views
Installing PhysicsFS on Mingw
I am trying to install PhysicsFS (icculus.org/physfs/) on my Win 7 with MinGW. But I am having hard time doing it. I googled it as well but still nothing - I have used linux environment and make ...
1
vote
1answer
118 views
Kinect for Windows Commercial License
Kinect for Windows SDK 1.6 is available for users to download. What I enquire is: Can I publish a commercial game with it? Do I have to apply for anything?
I've searched through the Microsoft's ...
1
vote
0answers
119 views
Help with Windows RawInput
I am having some trouble to receive and interpret mouse movement data from RawInput. Generally mouse input seems to work, I can query mouse buttons and receive updates of mouse movement.
The problem ...
1
vote
0answers
58 views
kinect application runs kinect game with different controls
I have an application (WPF) in which the mouse is controlled using the kinect. In that application I have a button that when clicked a kinect game is executed. The problem occurs when I try to control ...
1
vote
2answers
446 views
Best Way To Develop Robust Cross-Platform Application? [duplicate]
Possible Duplicate:
Any tips for creating cross-platform games?
Windows C programmer here (going back to 1992 and Windows95 back when it was called Windows93). Can function in C++, but ...
