27 lines
386 B
C++
27 lines
386 B
C++
#ifndef __PSX_BUTTON_H__
|
|
#define __PSX_BUTTON_H__
|
|
|
|
#include<iostream>
|
|
|
|
#include<SDL.h>
|
|
|
|
#include"PSX_Texture.h"
|
|
|
|
class PSX_Button{
|
|
public:
|
|
PSX_Button(SDL_Renderer* render, SDL_Rect* rButton,std::string text);
|
|
void render(int state);
|
|
void hover();
|
|
|
|
SDL_Rect getRect();
|
|
private:
|
|
SDL_Renderer* renderer;
|
|
|
|
SDL_Rect* rButton;
|
|
|
|
PSX_Texture tText;
|
|
SDL_Rect rText;
|
|
};
|
|
|
|
#endif
|