25 lines
706 B
C++
25 lines
706 B
C++
#pragma once
|
|
#include "BaseButtonInstance.h"
|
|
class ImageButtonInstance : public BaseButtonInstance
|
|
{
|
|
public:
|
|
//ImageButtonInstance(G3D::TextureRef);
|
|
//ImageButtonInstance(G3D::TextureRef,G3D::TextureRef);
|
|
//ImageButtonInstance(G3D::TextureRef,G3D::TextureRef,G3D::TextureRef);
|
|
ImageButtonInstance(G3D::TextureRef,G3D::TextureRef,G3D::TextureRef,G3D::TextureRef);
|
|
~ImageButtonInstance(void);
|
|
void drawObj(RenderDevice*, Vector2, bool);
|
|
Vector2 size;
|
|
Vector2 position;
|
|
|
|
G3D::TextureRef image;
|
|
int openGLID;
|
|
G3D::TextureRef image_ovr;
|
|
int openGLID_ovr;
|
|
G3D::TextureRef image_dn;
|
|
int openGLID_dn;
|
|
G3D::TextureRef image_ds;
|
|
int openGLID_ds;
|
|
bool mouseInButton(float, float, RenderDevice*);
|
|
};
|