mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 08:23:04 +02:00
34 lines
552 B
C++
34 lines
552 B
C++
//
|
|
// Tool.h
|
|
// interface
|
|
//
|
|
// Copyright (c) 2013 High Fidelity, Inc. All rights reserved.
|
|
//
|
|
|
|
#ifndef __interface__Tool__
|
|
#define __interface__Tool__
|
|
|
|
#include <QAction>
|
|
|
|
#include "InterfaceConfig.h"
|
|
#include "Util.h"
|
|
|
|
class QAction;
|
|
|
|
class Tool {
|
|
public:
|
|
Tool(QAction *action, GLuint texture, int x, int y);
|
|
|
|
bool isActive();
|
|
virtual void render(int width, int height);
|
|
|
|
protected:
|
|
QAction* _action;
|
|
GLuint _texture;
|
|
|
|
// position in the SVG grid
|
|
double _x;
|
|
double _y;
|
|
};
|
|
|
|
#endif /* defined(__interface__Tool__) */
|