DirectX background

This is a discussion on DirectX background within the Game Programming forums, part of the General Programming Boards category; 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 ...

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

    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, 01: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, 10:30 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21