WiiFlow_Lite/source/gui/cursor.hpp
Fledge68 a4968a91ac - now platform ini is loaded on wiiflow start. instead of constantly loading and unloading it. platform ini is now used for gameinfo, coverflows, blank cover titles, and more.
- fixed some missing cleanup when leaving wiiflow. in particular the pointer textures and closing the language ini.
- new way to handle the custom blank covers by Abz. blank covers now must go in wiiflow/boxcovers/blank_covers folder and must be named after their platform name via platform ini. they can also now be png or jpg.
2019-04-08 11:10:30 -05:00

33 lines
707 B
C++

#ifndef __CURSOR_HPP
#define __CURSOR_HPP
#include "video.hpp"
class CCursor
{
public:
bool init(const char *png, bool wideFix, CColor shadowColor, float shadowX, float shadowY, bool blur, int chan);
void cleanup(void);
void draw(int x, int y, float a);
u32 width(void) const { return m_texture.height; }
u32 height(void) const { return m_texture.width; }
int x(void) const { return m_x; }
int y(void) const { return m_y; }
private:
TexData m_texture;
TexData m_shadow;
Mtx m_projMtx;
Mtx m_viewMtx;
int m_x;
int m_y;
bool m_wideFix;
float m_shadowX;
float m_shadowY;
CColor m_shadowColor;
private:
void _blur(void);
};
#endif // !defined()__CURSOR_HPP