need some help with bitmaps
Can someone show me a decent function for loading and drawing a bitmap with the glDrawPixels function? I've tried using several from the internet and textbooks, none of them want to work. Does anyone have one they're willing to share that actually works?
What is it you are actually trying to do? I dunno about how fast or slow drawPixels is but my first gut reaction would be to just texture a quad instead.
Yea, I eventually want to texture it onto a quad, but I want to see if I can actually get the bitmap to load and display properly first before jumping into texture mapping.
Since it's just for looking, I suggest you just jump into texture mapping. You'll have to do it eventually, and it's not rocket science. There are also a lot of tutorials for it (including NeHe, which I can recommend to learn the very basics - don't actually adopt any of it for program architecture - but your first stop should be the Red Book itself).
If you do want to stick to glDrawPixels, post your code and I'll try looking at it to see what could the the problem. Can't promise anything though, I'm not too familiar with how that function works.
If you do want to stick to glDrawPixels, post your code and I'll try looking at it to see what could the the problem. Can't promise anything though, I'm not too familiar with how that function works.
I actually used Nehe's tutorial already, which didn't work due to the lack of the glaux library. Well, give me a minute to type up the function from my book again since I removed it.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement