Allegro.cc - Online Community

Allegro.cc Forums » Allegro Development » ALLEGRO_PRIM_QUAD

This thread is locked; no one can reply to it. rss feed Print
 1   2 
ALLEGRO_PRIM_QUAD
Dario ff
Member #10,065
August 2008
avatar

OpenLayer's alternative BlitDistorted function actually uses a GL_TRIANGLE_FAN. :-/

TranslatorHack 2010, a human translation chain in a.cc.
My games: [GiftCraft] - [Blocky Rhythm[SH2011]] - [Elven Revolution] - [Dune Smasher!]

Elias
Member #358
May 2000

Well, do you have a screenshot how it looks in OpenLayer?

--
"Either help out or stop whining" - Evert

Dario ff
Member #10,065
August 2008
avatar

How curious, after months of not using it, it doesn't seem to be able to do this as well.
{"name":"601562","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/5\/2\/52818de022201e6db00ac0c433f54981.jpg","w":795,"h":602,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/5\/2\/52818de022201e6db00ac0c433f54981"}601562
I remember it working perfectly. ??? Maybe this case is hard to do?

TranslatorHack 2010, a human translation chain in a.cc.
My games: [GiftCraft] - [Blocky Rhythm[SH2011]] - [Elven Revolution] - [Dune Smasher!]

Elias
Member #358
May 2000

Ok, so we don't want a function that "works like OpenLayer's Bitmap::BlitDistorted" but a new function nobody has ever done yet...? :P

--
"Either help out or stop whining" - Evert

Todd Cope
Member #998
November 2000
avatar

Seems like too much of a hassle to me. I thought it would be something simple but from the looks of it this is something that is best left to being done in 3D. I retract my request.

Elias
Member #358
May 2000

Googling a bit I found this paper from 2004. It sounds like a method to do what you want: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.62.7170&rep=rep1&type=pdf

It requires a hardware implementation though and doesn't seem like any hardware supports it, they all just use triangles. OpenGL ES 1 and 2 as well as normal OpenGL 3 and 4 even removed the GL_QUAD primitives completely. So yes, your best bet is to just use one of the methods suggested in this thread to achieve it, in your own code.

--
"Either help out or stop whining" - Evert

 1   2 


Go to: