Article View: borland.public.cppbuilder.nativeapi
Article #14501Re: CreateCursor only for black&white cursors?
From: Bob Gonder
Date: Fri, 08 Aug 2003 22:24
Date: Fri, 08 Aug 2003 22:24
22 lines
1690 bytes
1690 bytes
Mauro wrote: >I'm right with my topic?? Don't know. Why do you say black&white? I don't think color depth makes much difference. >If yes, how do the game programmers create cursors if they need a lot of them. I would assume they use a paint program. > I don't think that they use LoadCursor several times... Why not? I think I would. HCURSOR Pointer = LoadCursor( hi, "PointingCursor"); HCURSOR BullsEye = LoadCursor( hi, "BullseyeCursor"); HCURSOR TurnLeft = LoadCursor( hi, "LeftCursor"); SetCursor(Pointer); if( MouseOverTarget() ) SetCursor(BullsEye); Or, depending upon their requirements, they might do away with cursors altogether and just use sprites to simulate them.
Technical Details
Message-ID:
<3988jvoabr6b92m92etpt6fo823qmah27f@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f33631f$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,e0abc180a45765e X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-08 15:33:05 PST From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: CreateCursor only for black&white cursors? Date: Fri, 08 Aug 2003 15:24:46 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <3988jvoabr6b92m92etpt6fo823qmah27f@4ax.com> References: <3f33631f$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.31.164.55 X-Trace: newsgroups.borland.com 1060381462 67.31.164.55 (8 Aug 2003 15:24:22 -0700) Lines: 25 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail