⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 toolmarker.h

📁 hair solusion, c&#226 cs ádasda
💻 H
字号:
#if !defined(TOOLMARKER_H_)
#define TOOLMARKER_H_

#include <GL/glut.h>

#include "decal.h"

#define TOOL_MARKER_WIDTH 0.01
#define TOOL_MARKER_HEIGHT 0.5

#define POINTER_WIDTH 0.02
#define POINTER_LENGTH 0.2
#define POINTER_HEIGHT 0.015

class ToolMarker
{
public:
	ToolMarker();
	~ToolMarker();

	void CreateDisplayList();
	void Draw();

	void SetTextureInfo(Decal *pInput);
	void SetPixelPos(GLuint x, GLuint y);
	void SetWorldPos(GLdouble x, GLdouble y);

private:
	GLuint DisplayID;
	GLuint pixelx;
	GLuint pixely;

	float xpos;
	float ypos;

	Decal *pDecal;

	GLfloat fRedDif[4];

	GLfloat mousevectorx;
	GLfloat mousevectory;

	GLfloat realmousex;
	GLfloat realmousey;

	float PixelToPhysicalPos(GLuint pixel);
	GLuint PhysicalToPixelPos(GLdouble pos);

	GLfloat GetMouseAngle();
};

#endif // !defined(TOOLMARKER_H_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -