|
-
Jul 25th, 2001, 01:39 PM
#1
Thread Starter
Lively Member
Can DDraw blit directly to a VB form?
I know dx works with surfaces but can a form be used as a surface? If not, can you create a surface on a form?
I have a need to blit sprites graphics to a form for my level editor tool, I don't want to use bltbit because I don't want to have to create masks for all my sprites just to have transparencies.
Thanks for any info
-
Jul 25th, 2001, 01:50 PM
#2
Addicted Member
Yes you can Create a Surface Based on a Form or a Control.
The First DirectDraw VB example shows you how to do it, which i don't have around atm
Some Days, i just get this feeling that i'm helping to write dozens of Viruses...
-
Jul 25th, 2001, 03:11 PM
#3
transcendental analytic
Surfaces are not bound to forms, however the cooperativemode of directdraw can be set on a specific form or control that has a window handle. Directdraw will then be able to blit only within that area.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
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
|