… | |
… | |
2757 | |
2757 | |
2758 | void glRect (float x1, float y1, float x2, float y2) |
2758 | void glRect (float x1, float y1, float x2, float y2) |
2759 | CODE: |
2759 | CODE: |
2760 | glRectf (x1, y1, x2, y2); |
2760 | glRectf (x1, y1, x2, y2); |
2761 | |
2761 | |
|
|
2762 | void glRect_lineloop (float x1, float y1, float x2, float y2) |
|
|
2763 | CODE: |
|
|
2764 | glBegin (GL_LINE_LOOP); |
|
|
2765 | glVertex2f (x1, y1); |
|
|
2766 | glVertex2f (x2, y1); |
|
|
2767 | glVertex2f (x2, y2); |
|
|
2768 | glVertex2f (x1, y2); |
|
|
2769 | glEnd (); |
|
|
2770 | |
2762 | PROTOTYPES: ENABLE |
2771 | PROTOTYPES: ENABLE |
2763 | |
2772 | |
2764 | void glBegin (int mode) |
2773 | void glBegin (int mode) |
2765 | |
2774 | |
2766 | void glEnd () |
2775 | void glEnd () |