This repository has been archived on 2020-03-09. You can view files and clone it, but cannot push or open issues or pull requests.
pg-tp4/scene.cpp

20 lines
419 B
C++

#include "scene.h"
#include <GL/glu.h>
#include <stack>
using namespace std;
Scene::Scene()
: cylindre(1, 1, 4, Color(.702, .424, .286)) {}
void Scene::draw(QOpenGLFunctions &f, QOpenGLShaderProgram *prog, int mat_uni,
float alpha, QMatrix4x4 &matrix, int pos, int col)
{
// matrix.rotate(70, 1, 0, 0);
// matrix.rotate(15, 0, 0, 1);
prog->setUniformValue(mat_uni, matrix);
cylindre.draw(f, pos, col);
}