You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 rivejä
695 B

#ifndef __GLGUIWINDOW_H
#define __GLGUIWINDOW_H
#include <iostream>
#include <string>
#include <vector>
#include <SDL/SDL.h>
#include <SDL/SDL_opengl.h>
#include "../color.h"
#include "../gldrawhelper.h"
#include "object.h"
namespace segl {
class GLGuiWindow : public GLGuiObject {
private:
bool renderbackground;
SDL_Rect pos;
Color bgcolor;
std::vector<GLGuiObject*> items;
std::vector<GLGuiObject*> highlightable;
std::vector<GLGuiObject*> clickable;
std::vector<GLGuiObject*> keyboardable;
public:
GLGuiWindow(SDL_Rect _pos, Color _bgcolor);
~GLGuiWindow();
void addItem(GLGuiObject*);
SDL_Rect getPos();
void render();
};
} // namespace segl
#endif