Colour Pointers in C Graphics

This is a discussion on Colour Pointers in C Graphics within the Game Programming forums, part of the General Programming Boards category; This is something i really need. Can someone tell me how to use coloured cursors instead of the boaring B/W ...

  1. #1
    Im a Capricorn vsriharsha's Avatar
    Join Date
    Feb 2002
    Posts
    192

    Unhappy Colour Pointers in C Graphics

    This is something i really need.
    Can someone tell me how to use coloured cursors instead of the boaring B/W cursors through C under DOS.

    I believe no service under interrupt 0x33 (mouse interrupt) is given for colours...
    Help everyone you can

  2. #2
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738
    you make your own bitmap and floodfill it with whatever color you want the cursor to be.

    lol...when i first read the title i was like, "you mean pointers to variables can be different colors! cooooll...." but you meant cursors....

    i wanted to make my int pointers green...
    My Website

    "Circular logic is good because it is."

  3. #3
    Im a Capricorn vsriharsha's Avatar
    Join Date
    Feb 2002
    Posts
    192

    Red face

    I've not left that Idea Buddy...
    I've created a bitmap that I want (using all colours etc) and was overlapping it on the mouse cursor but the problem started when I was moving my mouse fast. If i move it slowly the effect is cool but when i increase the speed its making a mess on the screen...

    So, need to dig in more...

    Warm Regards

  4. #4
    l'Anziano DavidP's Avatar
    Join Date
    Aug 2001
    Location
    Plano, Texas, United States
    Posts
    2,738
    what graphics mode are you using? I dont see why it would get messy with moving fast...

    You just put in on a surface...then blit the surface to the screen at the new mouse coords....

  5. #5
    Registered User
    Join Date
    Dec 2001
    Posts
    11
    hey buddy,

    check out the site
    www.brackeen.com.
    it has the answer 4 ur ?

    Hey i'm 4rm india

  6. #6
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Originally posted by denny
    hey buddy,

    check out the site
    www.brackeen.com.
    it has the answer 4 ur ?

    Hey i'm 4rm india
    Hmm, you replied the exact thing to another thread ...
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. pointers
    By InvariantLoop in forum C Programming
    Replies: 13
    Last Post: 02-04-2005, 09:32 AM
  2. Graphics Programming :: Approach and Books
    By kuphryn in forum Windows Programming
    Replies: 4
    Last Post: 05-11-2004, 09:33 PM
  3. egavga.bgi problem
    By sunil21 in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 09-22-2003, 06:06 PM
  4. Staticly Bound Member Function Pointers
    By Polymorphic OOP in forum C++ Programming
    Replies: 29
    Last Post: 11-28-2002, 01:18 PM
  5. Graphics Devices and Cprintf clash
    By etnies in forum C Programming
    Replies: 6
    Last Post: 05-09-2002, 12:14 PM

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