dridk / cutegl

simple opengl 3.3 engine using Qt 5.5
GNU General Public License v2.0
3 stars 5 forks source link

CuteGL

CuteGL is a high level OpenGL 3.3 library based on Qt5.5. It allows user to develop openGL application quickly and faster by using a Scene / View models similar than QGraphicsView and QGraphicsScene.

Architecture

There are 3 class to render a basic 3d view.

Exemple

#include <QGuiApplication>
#include "view.h"
#include "cubemesh.h"

int main(int argc, char **argv)
{
    QGuiApplication app(argc, argv);
    cgl::View view;
    cgl::CubeMesh * mesh2 = new cgl::CubeMesh(1,1,1);
    view.scene()->addMesh(mesh);
    view.show();
    return app.exec();
}

Installation and Use

Actually cutegl is not a dynamics library. You can just copy the project and add from your *.pro file the following command :

include(cutegl/cutegl.pri)