Skip to content

EMACC99/QTViewport_OpenGL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

OpenGL QTViewport for my computer graphics class

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published