Thread: DirectX background

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    589

    DirectX background

    When I clear my device I set the background color like so
    Code:
    device.Clear(ClearFlags.Target, System.Drawing.Color.Blue, 1.0f, 0);
    But what do I do if I want a background that graduatly(sp) shades from blue to black

    ~Barjor

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    Look up GammaRamp's. You can find them in the DirectX doc's and they are just what you need.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problems with my DirectX program
    By fighter92 in forum Game Programming
    Replies: 1
    Last Post: 01-23-2007, 06:28 PM
  2. Isometric Tile Engine using DirectX
    By Wraithan in forum Game Programming
    Replies: 3
    Last Post: 07-17-2006, 12:16 PM
  3. DirectSound header issues
    By dxfoo in forum C++ Programming
    Replies: 0
    Last Post: 03-19-2006, 07:16 PM
  4. DirectX - Starting Guide?
    By Zeusbwr in forum Game Programming
    Replies: 13
    Last Post: 11-25-2004, 12:49 AM
  5. DirectX 8 with Borland
    By Tommaso in forum Game Programming
    Replies: 11
    Last Post: 08-12-2003, 09:30 AM