View Full Version : Loading files and OpenGL
08-29-2001, 08:02 AM
I want to load images and use them as bitmaps in opengl, whats the easiest approach?
Say I have a .bmp file and want to use it with the glDrawPixels-function, how do I do?
08-31-2001, 11:24 PM
YOu should not use glDrawPixels, it's toooo sloow!!!!
09-01-2001, 12:53 AM
Okay, what should I use instead?
09-02-2001, 06:47 AM
They are faster (a lot) than glDrawPixels.
09-03-2001, 03:44 AM
They are faster but they only take 2^n images so, assuming his bmp is a random size, you need to pad the image and then scale it to your quad, this also makes them slow to load. If they don't need to be drawin quickly (i.e. just a bmp viewer) then drawpixels is a lot less hassle and they load quicker....
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.