Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Direct Draw Clipper Question

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1 Brad   Members   

122
Like
Likes
Like

Posted 18 January 2000 - 05:13 AM

I''ve asked this before but didn''t get a response How can I atatch and than deattach a directdraw clipper within the game loop? Is that even possible? I''m having trouble with the detach part. Please somebody respond.

#2 Machaira   Moderators   

1033
Like
Likes
Like

Posted 18 January 2000 - 05:54 AM

To detach a clipper once it's set call the SetClipper function of the primary surface, passing NULL. Why would you want or need to though? To use a clipper follow these steps:

1) Call the CreateClipper function of the DirectDraw object
2) Call the SetHWnd function of the clipper object
3) Call the SetClipper function of the primary surface object

Hope this helps.

Breakaway Games

Edited by - Machaira on 1/18/00 11:56:43 AM

#3 Brad   Members   

122
Like
Likes
Like

Posted 18 January 2000 - 06:25 AM

I need to do this because I''m using the level editor mappy to create my levels. The editor comes with a library to load and render the levels created with it but for some odd reason they refuse to work when a clipper is attached. So I''ll just attach the clipper to the back surface, detach it before using the mappy functions and reattach it after.

I''m a bit confused about your explanation though. I''m attaching the clipper to the back surface so do I send the NULL to the BACK surface or the PRIMARY surface?

Thanks a ton


#4 mason   Members   

128
Like
Likes
Like

Posted 18 January 2000 - 06:27 AM

Send the NULL to the back surface.

Beware: Attaching and Detaching clippers is *really* slow...

Mason McCuskey
Spin Studios - home of Quaternion, 2000 GDC Indie Games Fest Finalist!
www.spin-studios.com




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.