Respected Sir/Madam
Regarding from the DrawMask function in CGapiMaskSurface.
now, i have been assigned to develop fighting game which need a lot of collision detection,so i would like to ask that :
Q1.Is CGapiMaskSurface designed for collision detection in Fighting game or not? From docs it is.
Q2.How to use it coz i use it and it's not displayed any things.
I declared following these in ProcessNextFrame
CGapiMaskSurface B_b; <-- declared obj B_b;
B_b.CreateSurface(0, hInstance, IDR_GIF1, TEXT "GIF")); <--- Create Surface from pic in
resource
B_b.DrawMask(0,0,dwMaskID); <-- dwMaskID i tried to change many values to match the operation below
Color = RGB(((dwMaskID&0x1F)<<3, ((dwMaskID&0x3E0)>>2), (dwMaskID&0x7C00)>>7))
but notthing come out on display screen, I just wondering whether i'm oo the right track or not.
Finally, I have looked forwarded for your kindness.
Eager reply
Regards
Regarding from the DrawMask function in CGapiMaskSurface.
now, i have been assigned to develop fighting game which need a lot of collision detection,so i would like to ask that :
Q1.Is CGapiMaskSurface designed for collision detection in Fighting game or not? From docs it is.
Q2.How to use it coz i use it and it's not displayed any things.
I declared following these in ProcessNextFrame
CGapiMaskSurface B_b; <-- declared obj B_b;
B_b.CreateSurface(0, hInstance, IDR_GIF1, TEXT "GIF")); <--- Create Surface from pic in
resource
B_b.DrawMask(0,0,dwMaskID); <-- dwMaskID i tried to change many values to match the operation below
Color = RGB(((dwMaskID&0x1F)<<3, ((dwMaskID&0x3E0)>>2), (dwMaskID&0x7C00)>>7))
but notthing come out on display screen, I just wondering whether i'm oo the right track or not.
Finally, I have looked forwarded for your kindness.
Eager reply
Regards