Jotaf98 has made some cool stuff with BitBlt and Directdraw... (I think it's Jotaf98)
Printable View
Jotaf98 has made some cool stuff with BitBlt and Directdraw... (I think it's Jotaf98)
Do you, have some samples?
I'll check Jotaf98.
Go to the thread that Jotaf98 has in his signature, it provides sample code. He has the last post in the sentience thread in this forum.
msdn has listed all kinds of rasteroperations you can do on gdi devices...
http://msdn.microsoft.com/library/en...tdraw_8qnn.asp
http://msdn.microsoft.com/library/en...tdraw_6n77.asp
Here's the most commone ones listed
Code:Value Description
BLACKNESS Fills the destination rectangle using the color associated with index 0 in the physical palette. (This color is black for the default physical palette.)
CAPTUREBLT Windows 98/Me, Windows 2000 or later: Includes any windows that are layered on top of your window in the resulting image. By default, the image only contains your window.
DSTINVERT Inverts the destination rectangle.
MERGECOPY Merges the colors of the source rectangle with the brush currently selected in hdcDest, by using the Boolean AND operator.
MERGEPAINT Merges the colors of the inverted source rectangle with the colors of the destination rectangle by using the Boolean OR operator.
NOMIRRORBITMAP Windows 98/Me, Windows 2000 or later: Prevents the bitmap from being mirrored.
NOTSRCCOPY Copies the inverted source rectangle to the destination.
NOTSRCERASE Combines the colors of the source and destination rectangles by using the Boolean OR operator and then inverts the resultant color.
PATCOPY Copies the brush currently selected in hdcDest, into the destination bitmap.
PATINVERT Combines the colors of the brush currently selected in hdcDest, with the colors of the destination rectangle by using the Boolean XOR operator.
PATPAINT Combines the colors of the brush currently selected in hdcDest, with the colors of the inverted source rectangle by using the Boolean OR operator. The result of this operation is combined with the colors of the destination rectangle by using the Boolean OR operator.
SRCAND Combines the colors of the source and destination rectangles by using the Boolean AND operator.
SRCCOPY Copies the source rectangle directly to the destination rectangle.
SRCERASE Combines the inverted colors of the destination rectangle with the colors of the source rectangle by using the Boolean AND operator.
SRCINVERT Combines the colors of the source and destination rectangles by using the Boolean XOR operator.
SRCPAINT Combines the colors of the source and destination rectangles by using the Boolean OR operator.
WHITENESS Fills the destination rectangle using the color associated with index 1 in the physical palette. (This color is white for the default physical palette.)
Hi! Jotaf here :cool:
The links for the DX and BitBlt versions are in my signature, all you have to do is follow the link! :D
Oh, and there's no need to credit me in your game for the effects ;)
Btw thanks Sastraxi for remembering me ;)
I'll always remember you ;) :p
Thanks :D
Btw I've gotta find something like your "S. A. S. T. R. A. X. I." signature :p
It's the CYBORG thread in Chit-Chat.
:confused:
What's with that thread?