Skip to content

Latest commit

 

History

History
87 lines (56 loc) · 1.28 KB

README.md

File metadata and controls

87 lines (56 loc) · 1.28 KB

QTViewport for OpenGL

A simple QT viewport for OpenGL

Requirements

  • g++ or clang++
  • Qt >= 5 1
  • qmake
  • OpenGL

Instructions

Clone the repo

git clone https://github.com/EMACC99/QTViewport_OpenGL

Then change to the folder repo with

cd QTViewport_OpenGL

Compilation

To compile just run

qmake

then

make

This will generate an executable named openglwindow on Linux or openglwindow.app on Mac.

Run

  • Linux

    ./openglwindow
  • Mac

    open openglwindow.app

    Or

    ./openglwindow

    If CONFIG -= app_bundle is uncommented on the .pro file.

Intercactions

Currently the only intercations provided are:

  • W: Rotate up the object
  • A: Rotate left
  • S: Rotate down
  • D: Rotate right
  • R: Auto rotate

Currently, the only things that have this intercations are ejemplo 4 and ejemplo 5

Interface

To run something, just select it from the drop down.

select_window drop_down

cube

Footnotes

  1. For QT6, change the line in select_example.hpp from #include <QtWidgets/QAction> to #include <QtGui/QAction> and add QT += openglwidgets to the .pro file