Advertisement

Smallest size of surfaces..

Started by February 10, 2000 08:25 PM
3 comments, last by habus 25 years, 1 month ago
Hi!! I''m having a little problem with my game, I''m creating a shooter and it goes fine, recently I added code to handle collitions, and I saw something real strange.. I changed my default image to the actual bullet image - size 29X29 pixels- and Dx is not showing a thing.. With bigger images it works .. Is there any size limit for surfaces?? I''m using the procedures to load bmps into a surface that come with the sdk and I''ve searched the doc file with no luck.. Any help would be great.. Thanks in advance!
"Old programmers don't die,they just terminate and stay resident."
There is no size limit to Surface Sizes. The only limit is if you are using 3D. If you are using 3D keep in mind that the Surfaces have to be a size by the powers of 2. Read the DX Help for info on that.
Advertisement
Does that condition aplies to DirectDraw surfaces too? I''ll try to make my bitmap power of 2 but that would mean my smallest bullet will be 16 pix wide??

Laters!
"Old programmers don't die,they just terminate and stay resident."
Only for Direct3D. Direct draw can have any surface size. Your code must have an error in it.
William Reiach - Human Extrodinaire

Marlene and Me


Hey! I finally found what was the real problem.. the name of my bitmap!! it was 9 chars long and the function couldn''t read the file.. *I feel so dumb*

Thanks for all your help!

"Old programmers don't die,they just terminate and stay resident."

This topic is closed to new replies.

Advertisement