well, i am using this tutorials to build a game and i found a problem that i need a transperancy.
i searched the web and found out that PNG have transperancy while bmp is not supporting it.
i am talking about alpha blending.
anyone can give me a code to generate png files?
loading png files
Re: loading png files
If you get to intermediate lesson 2 Chili shows you how to load a png using GDI and also writes a function to draw transparent sprites.
Musi
There are 10 types of people that understand binary.
Those that do, and those that don't.
There are 10 types of people that understand binary.
Those that do, and those that don't.
Re: loading png files
Try to understand the scripts inside the downloadable file in this topic
Loading Png's, jpg's, bmp's, dds's etc. files
Loading Png's, jpg's, bmp's, dds's etc. files
Chili++ for President
Re: loading png files
actually few hours later i watched lesson 2 and 7 after this threat...
well, wierd thing, but lesson 7 made my program run slower, but constant speed..
any ideas how to optimize more? because 3D games are bigger with lots of colculations, yet they run faster then my 2D game now :\
well, wierd thing, but lesson 7 made my program run slower, but constant speed..
any ideas how to optimize more? because 3D games are bigger with lots of colculations, yet they run faster then my 2D game now :\
Re: loading png files
From what i've read most games use whats called the Graphics Pipeline to render graphics. It works directly with the graphics card and is much faster. I think chili was gonna get there eventually.
Musi
There are 10 types of people that understand binary.
Those that do, and those that don't.
There are 10 types of people that understand binary.
Those that do, and those that don't.
Re: loading png files
does it work to boost 2D? or only 3D?