?? hair.h
字號:
#if !defined(HAIR_H_)
#define HAIR_H_
#include <GL/glut.h>
#include "decal.h"
#define HAIR_PYRAMID_WIDTH 0.01
#define HAIR_PYRAMID_HEIGHT 0.2
class Hair
{
public:
Hair();
~Hair();
void CreateDisplayList(GLuint *id);
void Draw();
void SetTextureInfo(Decal *pInput);
void SetPixelPos(GLuint x, GLuint y);
private:
GLuint DisplayID;
GLuint pixelx;
GLuint pixely;
float xangle;
float yangle;
float xpos;
float ypos;
Decal *pDecal;
GLfloat fWhiteDif[4];
GLfloat fBlackDif[4];
float PixelToPhysicalPos(GLuint pixel, float fPhysicalSize, GLuint nPixelSize);
void SetAnglesWithPixelLoc(GLuint x, GLuint y);
void SetAnglesWithPixelColor(GLubyte r, GLubyte g, GLubyte b, GLubyte a);
float GetAngleFromBytes(GLubyte high, GLubyte low);
};
#endif // !defined(HAIR_H_)
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -