Abstract: In a method for rotating geometric shape having an assigned texture image, a two dimensional outline of a rotated source geometric shape is defined by performing its perspective projection onto a two dimensional plane. Then, according to the method, the two dimensional outline is split into intermediate rectangles in places where pixel of each line non-parallel to the rotation axis of the two dimensional outline changes coordinates and for each intermediate rectangle the steps of finding a corresponding part of the texture image taking perspective correction into account. One of the last steps executes copying with scaling a corresponding part of the texture image in order to fit it into the intermediate rectangle.
Abstract: A method for drawing geometric shapes comprises the steps of obtaining a request to draw at least two geometric shapes, each having assigned a depth coordinate and at least one having the depth coordinate variable across its surface, dividing the geometric shapes into rectangles such that each rectangle has a constant depth coordinate, sorting the rectangles according to the depth coordinate value and drawing the rectangles in the sorted order so as to form an output image.