C++ (Qt)#include <QtGui/QApplication>#include <QtGui/QLabel> int main(int argc, char *argv[]){ QApplication a(argc, argv); QLabel label; label.setWindowTitle ("For Igors"); QPixmap pixmap; pixmap.load ("/var/tmp/grad.png", "PNG"); label.setPixmap (pixmap); label.show (); label.setScaledContents (true); return a.exec();}
CglShadeModel(GL_SMOOTH);glBegin(GL_LINE_STRIP); glColor(....); glVertex(...); ....glEnd();