Flipping images drawn with draw2DImage()

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Mazer
Posts: 16
Joined: Sat Jun 19, 2004 12:21 pm

Flipping images drawn with draw2DImage()

Post by Mazer »

Is it possible? If I want to draw something that is square shaped (and vertically/horizontally symmetrical), can I just have one section of it in my image and then draw it four time but flipped?

eg
image:

Code: Select all

|\- -/|
|/- -\|
OK, that's an ugly image, but I never pretended to be good with ASCII art.
Instead of having that image (in the texture), could I just have one that represents 1/4 of it, ie

Code: Select all

|\-
And flip that in various ways to draw the rest of the image?
Post Reply