|
-
Jun 6th, 2004, 04:39 PM
#1
Thread Starter
Member
Clippers!
How do i use clippers in direct draw i cannot find a tutorial on it ne wer, ne1 know how to use or know tutorials?
Thnx
"Microsoft isn't evil, they just make really crappy operating systems."
-Linus Torvalds
-
Jun 6th, 2004, 05:34 PM
#2
Clippers does actually not do anything else then changing the source rect. You can easily do that your self. And clippers dosn't work as they should in Windowed mode anyway.
-
Jun 6th, 2004, 06:22 PM
#3
Thread Starter
Member
So if i change the source in blt that will work, can u giv me an example Plz
thnx
"Microsoft isn't evil, they just make really crappy operating systems."
-Linus Torvalds
-
Jun 6th, 2004, 06:26 PM
#4
Never done any 2D in DX with C++ sorry....but if you have the code to Blt it to the screen, I can see if I can do something with it...
-
Jun 6th, 2004, 06:34 PM
#5
Ex-Super Mod'rater
Give me a sec I'll have a look, I should have an example.....
BTW if you are using scaling then it makes things easier when using a clipper .
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Jun 6th, 2004, 06:41 PM
#6
Ex-Super Mod'rater
Last edited by Electroman; Jun 6th, 2004 at 06:45 PM.
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Jun 6th, 2004, 06:44 PM
#7
He probably ment:
Code:
//Top
If (dest.Top < 0){
src.Top = -dest.Top;
dest.Top = 0;
}
//Left
If (dest.Left < 0){
src.Left = -dest.Left;
dest.Left = 0;
}
//Right
If (dest.Right > ScreenX){
src.Right = src.Right - (dest.Right - ScreenX);
dest.Right = ScreenX;
}
//Bottom
If (dest.Bottom > ScreenY){
src.Bottom = src.Bottom - (dest.Bottom - ScreenY);
dest.Bottom = ScreenY;
}
Last edited by NoteMe; Jun 6th, 2004 at 06:49 PM.
-
Jun 6th, 2004, 06:47 PM
#8
Ex-Super Mod'rater
Posted by NoteMe
He probably ment:
I was lost for a minute there .
BTW Note you are using VB comments in your code .
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Jun 6th, 2004, 06:50 PM
#9
-
Jun 6th, 2004, 06:54 PM
#10
Ex-Super Mod'rater
Its an easy mistake
When your thread has been resolved please edit the original post in the thread (  )
and amend "-[RESOLVED]-" to the end of the title and change the icon to  , Thank you.
When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

-
Jun 7th, 2004, 08:01 AM
#11
Thread Starter
Member
Thnx alot its workin fine now.
"Microsoft isn't evil, they just make really crappy operating systems."
-Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|