|
Any way to mirror the complete output? |
Reilly Hamilton
Member #8,609
May 2007
|
Is there any way to mirror the entire output in Allegro? I'm developing a program that needs to be used in an environment where the display reflects off a mirror onto the final projection surface. Is there an easy way to do this in Allegro? |
Rampage
Member #3,035
December 2002
|
The manual said: These are like draw_sprite(), but they additionally flip the image vertically, horizontally, or both, respectively. Flipping vertically means that the y-axis is reversed, while flipping horizontally means that the x-axis is reversed, between the source and the destination. This produces exact mirror images, which is not the same as rotating the sprite (and it is a lot faster than the rotation routine). The sprite must be a memory bitmap.
-R |
julian_boolean
Member #8,201
January 2007
|
Your talking about reflections right? Like looking into water or a mirror? Holy crap Allegro has functions for that?? Sweeeeet |
Reilly Hamilton
Member #8,609
May 2007
|
I'm looking for a way to mirror the entire screen, not just a sprite. Is there a way to mirror the display buffer? |
X-G
Member #856
December 2000
|
Of course. When copying your backbuffer to the screen, simply draw it upside-down. -- |
gnolam
Member #2,030
March 2002
|
Be sure to clear the buffer with magenta/palette index 0 first though (iff you use it anywhere in your graphics, that is). -- |
gillius
Member #119
April 2000
|
I'm really curious to hear where you have an environment where the user views the screen via a mirror... Gillius |
Reilly Hamilton
Member #8,609
May 2007
|
We're creating a Heads-Up Display for use in automobiles. The image is reflected off of the windshield, and therefore needs to be flipped horizontally. Thanks for the help, should be pretty simple. |
gillius
Member #119
April 2000
|
Nice I was hoping it was something like that . I work on vehicle sensor systems and diagnostics... I wish we had that for our display . I doubt any of our vehicles have a suitable windshield as they are all either vertical or non-existent. Gillius |
Rampage
Member #3,035
December 2002
|
Hey! Where are my cookies? -R |
ixilom
Member #7,167
April 2006
|
I ate 'em, tasted bad ___________________________________________ |
ImLeftFooted
Member #3,935
October 2003
|
Cooool, allegro is taking over the automobile industry! |
GullRaDriel
Member #3,861
September 2003
|
Heh, you do not know the new lamborghini Allegro VT ? ;-P {"name":"lamborghini_diablo_sexycar_bis.jpg","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/e\/5\/e52e5bcebe0bd930d78bea70dc79d93b.jpg","w":250,"h":324,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/e\/5\/e52e5bcebe0bd930d78bea70dc79d93b"} "Code is like shit - it only smells if it is not yours" |
Kibiz0r
Member #6,203
September 2005
|
--- |
|