openspades/Sources/Client/PaletteView.h

39 lines
619 B
C
Raw Normal View History

2013-08-18 16:18:06 +09:00
//
// PaletteView.h
// OpenSpades
//
// Created by yvt on 8/5/13.
// Copyright (c) 2013 yvt.jp. All rights reserved.
//
#pragma once
#include <string>
#include "../Core/Math.h"
namespace spades {
namespace client {
class Client;
class IRenderer;
class PaletteView {
Client *client;
IRenderer *renderer;
int defaultColor;
std::vector<IntVector3> colors;
int GetSelectedIndex();
int GetSelectedOrDefaultIndex();
void SetSelectedIndex(int);
public:
PaletteView(Client *);
~PaletteView();
bool KeyInput(std::string);
void Update();
void Draw();
};
}
}