Jump to content
  • Advertisement
Sign in to follow this  

Bmp spirte as background?

This topic is 4935 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
make one quad and dont move it. move the texture parameters. or use small parts of the bitmap and make several quads. my advice do not use 1200x1600 bitmap. make backgroud just like a map. put your objects on it, and this will make your program faster and flexible.

Share this post


Link to post
Share on other sites
Quote:
Original post by stroma
another advice use smaller image format. eg. jpg

Unfortunately the image file format doesn't make any difference in video memory. Once the file is uploaded to video memory it will consume just as much memory as a BMP image will.
Nevertheless it is a good idea to store the image on disk in a more memory efficient format such as JPEG.

Share this post


Link to post
Share on other sites
Quote:
Original post by coderx04
How to load an jpg files as a background ??..

What is all opengl attributes for that?

OGL doesn't contain any image file format support. You will have to use an image library like DevIL to load the file.

Share this post


Link to post
Share on other sites
Owww, Thats why ..

how about if I use SDL for that? ..
If I use SDL for display all the sprite stuff, can I still use opengl to manipulate? like the lightning and stuff?

Share this post


Link to post
Share on other sites
Quote:
Original post by darookieUnfortunately the image file format doesn't make any difference in video memory.

i now this. but if you use images from file. your "program size" will encrease. and if you are making a simple demo, or game i want it to be small. small is beautiful :D

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!