mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-04 18:51:17 -06:00
- Moved all OpenSpace headers to separate include directory - Added OpenSpaceTests binary with OPENSPACE_HAVE_TESTS define - Added CMake setting of BASE_DIR - Added OpenSpace initial tests for SceneGraph and SceneGraphNodes - Added OpenSpace initial tests for psc and pss - Restructured OpenSpace so no GL functions are called in constructors to make the classes testable - Todo: Make the base dir possible to set through command line argument and configuration file
29 lines
474 B
C++
29 lines
474 B
C++
#ifndef EXTERNALCONTROL_H
|
|
#define EXTERNALCONTROL_H
|
|
|
|
#include <openspace/util/pss.h>
|
|
#include <glm/glm.hpp>
|
|
#include <glm/gtc/quaternion.hpp>
|
|
|
|
namespace openspace {
|
|
|
|
class ExternalControl {
|
|
public:
|
|
|
|
// constructors & destructor
|
|
ExternalControl();
|
|
virtual ~ExternalControl();
|
|
|
|
virtual void update();
|
|
|
|
void rotate(const glm::quat &rotation);
|
|
void orbit(const glm::quat &rotation);
|
|
void distance(const pss &distance);
|
|
|
|
|
|
protected:
|
|
};
|
|
|
|
} // namespace openspace
|
|
|
|
#endif |