#pragma once

#include <C2/gl/Viewport.h>

#include <QPoint>



//! ‰æ–Ê‘I‘ð”ÍˆÍ
class SelRange
{
public:
	SelRange(void);

	void ReleaseSelect(void);

	void DrawRange(const lib_gl::Viewport& parent_vp);
	void DrawCenterCross(const lib_gl::Viewport& parent_vp);
	void DrawTitle(const lib_gl::Viewport& parent_vp, const char* title);

	void SetFirst(const QPoint& p);
	void SetSecond(const QPoint& p);

	bool IsOnSelect(void) const { return m_IsOnSelect; }

	QPoint GetCenter(void) const;

	int GetWidth(void) const;
	int GetHeight(void) const;

private:
	void BeginDrawBillboard(const lib_gl::Viewport& parent_vp);
	void EndDrawBillboard(void);

public:
	QPoint m_Pos0;
	QPoint m_Pos1;

private:
	bool m_IsOnSelect;
};
