Jump to content
  • Advertisement
Sign in to follow this  
coderx04

Bmp spirte as background?

This topic is 5064 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
I Create a bmp file that have 1600*1200 size
So that I can make a scrolling background..

Is there any other way except use the Quard?

Share this post


Link to post
Share on other sites
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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!