   How to set Target pointer?
  hi all,I m working on 1st person shooting game.I have done all the camera handling but want toshow mouse cursor only inside the window area andits shape like Unreal game target pointer.The mouse curor should represent the camera lookatposition.  
  Unreal Tournament uses GetCursorPos / SetCursorPos to make sure that the cursor stays inside the window; the way it does this is to move the cursor to the center of the window, then when it''s moved, grabs the distance that it moved, and moves it back to the center.  If you didn''t do mouse input this way, your mouse might go to the edge of the screen, and stop sending input.As for the actual cursor (I''m assuming you mean crosshairs), just render a small quad to the center of your screen.  For a real cursor, I believe Direct3D has its own functions for it. ;  Concerning the crosshair ( the small cross in the middle of your screen that you will shoot at when you click ), psykr is right : simply render a textured, alpha-blended quad in the center of the screen once the rest of the scene has been rendered. You can render the rest of the HUD (Heads Up Display, shows your health and ammunition and frag count) this way as well.Concerning the mouse movement, the method psykr explained has the advantage of being easy to implement, but still lacks in performance when the mouse is moving slowly. Resetting the mouse to the center of the screen makes you lose all information about movement below one-pixel resolution, which can be sometimes be annoying.The method I generally use for mouse input (when I have to use GetCursorPos / SetCursorPos) is to store yourself the previous position of the mouse, and use this to compute the distance moved each frame. If the mouse gets too close to an edge, move it to the opposite edge (that way, if it keeps moving in the same direction, it''ll have a longer way to go before hitting the edge than it would have if it had been reset to the center of the screen).   Victor Nicollet, INT13 game programmer 