mirror of
https://github.com/overte-org/overte.git
synced 2025-04-26 02:36:45 +02:00
37 lines
680 B
C++
37 lines
680 B
C++
//
|
|
// ToolsPalette.h
|
|
// interface
|
|
//
|
|
// Copyright (c) 2013 High Fidelity, Inc. All rights reserved.
|
|
//
|
|
|
|
#ifndef __interface__ToolsPalette__
|
|
#define __interface__ToolsPalette__
|
|
|
|
#include "Tool.h"
|
|
#include "Swatch.h"
|
|
|
|
#include <vector>
|
|
|
|
class ToolsPalette {
|
|
public:
|
|
void init(int screenWidth, int screenHeight);
|
|
void addAction(QAction* action, int x, int y);
|
|
void addTool(Tool* tool);
|
|
void render(int screenWidth, int screenHeight);
|
|
|
|
bool isActive();
|
|
|
|
private:
|
|
QImage _textureImage;
|
|
GLuint _textureID;
|
|
std::vector<Tool*> _tools;
|
|
|
|
int _top;
|
|
int _left;
|
|
|
|
int _width;
|
|
int _height;
|
|
};
|
|
|
|
#endif /* defined(__interface__ToolsPalette__) */
|