Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » AllegroGL - how to getpixel32 from a Texture ?

Credits go to Bob, Kitty Cat, Krzysztof Kluczek, Milan Mimica, and Richard Phipps for helping out!
This thread is locked; no one can reply to it. rss feed Print
 1   2 
AllegroGL - how to getpixel32 from a Texture ?
Thomas Fjellstrom
Member #476
June 2000
avatar

Quote:

Well if it is not enabled than alt-tabbing away and then back results in a black screen as all the textures are lost (IIRC). :)

Might you be thinking of D3D? I'm quite sure OGL specifies that textures must not be lost.

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Richard Phipps
Member #1,632
November 2001
avatar

Thomas: It could be.. now I'm confused!

Kitty Cat
Member #2,815
October 2002
avatar

Quote:

If I enlarge the Texture, his alpha channel enlarges too... so if I must get a point from the BITMAP, I must do more computing (enlarged coordinates) to get the right point.
If I ROTATE the sprite, his alpha channel rotates too... same problem.

If you enlarge the texture you need to have something to rebuffer it with. I don't think you can just "enlarge a texture" while keeping its contents.. and rotate? How would you rotate a texture?

--
"Do not meddle in the affairs of cats, for they are subtle and will pee on your computer." -- Bruce Graham

 1   2 


Go to: