draw_rectangle


Description:

public void draw_rectangle (Pipeline pipeline, float x_1, float y_1, float x_2, float y_2)

Draws a rectangle to this with the given pipeline state and with the top left corner positioned at (x_1, y_1) and the bottom right corner positioned at (x_2, y_2).

<note>The position is the position before the rectangle has been transformed by the model-view matrix and the projection matrix. </note>

<note>If you want to describe a rectangle with a texture mapped on it then you can use draw_textured_rectangle.</note>

Parameters:

this

A destination Framebuffer

pipeline

A Pipeline state object

x_1

X coordinate of the top-left corner

y_1

Y coordinate of the top-left corner

x_2

X coordinate of the bottom-right corner

y_2

Y coordinate of the bottom-right corner