亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? glm.h

?? 嵌入式GUI OpenGL源代碼。OpenGL是嵌入式開發中常用的一種GUI系統。
?? H
字號:
/*          glm.h      Nate Robins, 1997      ndr@pobox.com, http://www.pobox.com/~ndr/       Wavefront OBJ model file format reader/writer/manipulator.      Includes routines for generating smooth normals with      preservation of edges, welding redundant vertices & texture      coordinate generation (spheremap and planar projections) + more. */#include <GL/glut.h>#ifndef M_PI#define M_PI 3.14159265#endif#define GLM_NONE     (0)		/* render with only vertices */#define GLM_FLAT     (1 << 0)		/* render with facet normals */#define GLM_SMOOTH   (1 << 1)		/* render with vertex normals */#define GLM_TEXTURE  (1 << 2)		/* render with texture coords */#define GLM_COLOR    (1 << 3)		/* render with colors */#define GLM_MATERIAL (1 << 4)		/* render with materials *//* GLMmaterial: Structure that defines a material in a model.  */typedef struct _GLMmaterial{  char* name;				/* name of material */  GLfloat diffuse[4];			/* diffuse component */  GLfloat ambient[4];			/* ambient component */  GLfloat specular[4];			/* specular component */  GLfloat emmissive[4];			/* emmissive component */  GLfloat shininess;			/* specular exponent */} GLMmaterial;/* GLMtriangle: Structure that defines a triangle in a model. */typedef struct _GLMtriangle {  GLuint vindices[3];			/* array of triangle vertex indices */  GLuint nindices[3];			/* array of triangle normal indices */  GLuint tindices[3];			/* array of triangle texcoord indices*/  GLuint findex;			/* index of triangle facet normal */} GLMtriangle;/* GLMgroup: Structure that defines a group in a model. */typedef struct _GLMgroup {  char*             name;		/* name of this group */  GLuint            numtriangles;	/* number of triangles in this group */  GLuint*           triangles;		/* array of triangle indices */  GLuint            material;           /* index to material for group */  struct _GLMgroup* next;		/* pointer to next group in model */} GLMgroup;/* GLMmodel: Structure that defines a model. */typedef struct _GLMmodel {  char*    pathname;			/* path to this model */  char*    mtllibname;			/* name of the material library */  GLuint   numvertices;			/* number of vertices in model */  GLfloat* vertices;			/* array of vertices  */  GLuint   numnormals;			/* number of normals in model */  GLfloat* normals;			/* array of normals */  GLuint   numtexcoords;		/* number of texcoords in model */  GLfloat* texcoords;			/* array of texture coordinates */  GLuint   numfacetnorms;		/* number of facetnorms in model */  GLfloat* facetnorms;			/* array of facetnorms */  GLuint       numtriangles;		/* number of triangles in model */  GLMtriangle* triangles;		/* array of triangles */  GLuint       nummaterials;		/* number of materials in model */  GLMmaterial* materials;		/* array of materials */  GLuint       numgroups;		/* number of groups in model */  GLMgroup*    groups;			/* linked list of groups */  GLfloat position[3];			/* position of the model */} GLMmodel;/* glmUnitize: "unitize" a model by translating it to the origin and * scaling it to fit in a unit cube around the origin.  Returns the * scalefactor used. * * model - properly initialized GLMmodel structure  */GLfloatglmUnitize(GLMmodel* model);/* glmDimensions: Calculates the dimensions (width, height, depth) of * a model. * * model      - initialized GLMmodel structure * dimensions - array of 3 GLfloats (GLfloat dimensions[3]) */GLvoidglmDimensions(GLMmodel* model, GLfloat* dimensions);/* glmScale: Scales a model by a given amount. *  * model - properly initialized GLMmodel structure * scale - scalefactor (0.5 = half as large, 2.0 = twice as large) */GLvoidglmScale(GLMmodel* model, GLfloat scale);/* glmReverseWinding: Reverse the polygon winding for all polygons in * this model.  Default winding is counter-clockwise.  Also changes * the direction of the normals. *  * model - properly initialized GLMmodel structure  */GLvoidglmReverseWinding(GLMmodel* model);/* glmFacetNormals: Generates facet normals for a model (by taking the * cross product of the two vectors derived from the sides of each * triangle).  Assumes a counter-clockwise winding. * * model - initialized GLMmodel structure */GLvoidglmFacetNormals(GLMmodel* model);/* glmVertexNormals: Generates smooth vertex normals for a model. * First builds a list of all the triangles each vertex is in.  Then * loops through each vertex in the the list averaging all the facet * normals of the triangles each vertex is in.  Finally, sets the * normal index in the triangle for the vertex to the generated smooth * normal.  If the dot product of a facet normal and the facet normal * associated with the first triangle in the list of triangles the * current vertex is in is greater than the cosine of the angle * parameter to the function, that facet normal is not added into the * average normal calculation and the corresponding vertex is given * the facet normal.  This tends to preserve hard edges.  The angle to * use depends on the model, but 90 degrees is usually a good start. * * model - initialized GLMmodel structure * angle - maximum angle (in degrees) to smooth across */GLvoidglmVertexNormals(GLMmodel* model, GLfloat angle);/* glmLinearTexture: Generates texture coordinates according to a * linear projection of the texture map.  It generates these by * linearly mapping the vertices onto a square. * * model - pointer to initialized GLMmodel structure */GLvoidglmLinearTexture(GLMmodel* model);/* glmSpheremapTexture: Generates texture coordinates according to a * spherical projection of the texture map.  Sometimes referred to as * spheremap, or reflection map texture coordinates.  It generates * these by using the normal to calculate where that vertex would map * onto a sphere.  Since it is impossible to map something flat * perfectly onto something spherical, there is distortion at the * poles.  This particular implementation causes the poles along the X * axis to be distorted. * * model - pointer to initialized GLMmodel structure */GLvoidglmSpheremapTexture(GLMmodel* model);/* glmDelete: Deletes a GLMmodel structure. * * model - initialized GLMmodel structure */GLvoidglmDelete(GLMmodel* model);/* glmReadOBJ: Reads a model description from a Wavefront .OBJ file. * Returns a pointer to the created object which should be free'd with * glmDelete(). * * filename - name of the file containing the Wavefront .OBJ format data.   */GLMmodel* glmReadOBJ(char* filename);/* glmWriteOBJ: Writes a model description in Wavefront .OBJ format to * a file. * * model    - initialized GLMmodel structure * filename - name of the file to write the Wavefront .OBJ format data to * mode     - a bitwise or of values describing what is written to the file *            GLM_NONE    -  write only vertices *            GLM_FLAT    -  write facet normals *            GLM_SMOOTH  -  write vertex normals *            GLM_TEXTURE -  write texture coords *            GLM_FLAT and GLM_SMOOTH should not both be specified. */GLvoidglmWriteOBJ(GLMmodel* model, char* filename, GLuint mode);/* glmDraw: Renders the model to the current OpenGL context using the * mode specified. * * model    - initialized GLMmodel structure * mode     - a bitwise OR of values describing what is to be rendered. *            GLM_NONE    -  render with only vertices *            GLM_FLAT    -  render with facet normals *            GLM_SMOOTH  -  render with vertex normals *            GLM_TEXTURE -  render with texture coords *            GLM_FLAT and GLM_SMOOTH should not both be specified. */GLvoidglmDraw(GLMmodel* model, GLuint mode);/* glmList: Generates and returns a display list for the model using * the mode specified. * * model    - initialized GLMmodel structure * mode     - a bitwise OR of values describing what is to be rendered. *            GLM_NONE    -  render with only vertices *            GLM_FLAT    -  render with facet normals *            GLM_SMOOTH  -  render with vertex normals *            GLM_TEXTURE -  render with texture coords *            GLM_FLAT and GLM_SMOOTH should not both be specified.   */GLuintglmList(GLMmodel* model, GLuint mode);/* glmWeld: eliminate (weld) vectors that are within an epsilon of * each other. * * model      - initialized GLMmodel structure * epsilon    - maximum difference between vertices *              ( 0.00001 is a good start for a unitized model) * */GLuintglmWeld(GLMmodel* model, GLfloat epsilon);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲午夜精品网| 精品国产乱码久久久久久牛牛| 日本亚洲电影天堂| 亚洲精品一区二区精华| 91久久精品午夜一区二区| 久久99国产精品免费网站| 最新国产成人在线观看| 欧美大片顶级少妇| 欧美性猛片aaaaaaa做受| 国产经典欧美精品| 免费在线观看不卡| 伊人一区二区三区| 欧美极品aⅴ影院| 日韩欧美高清一区| 欧美日韩精品专区| 色综合天天综合在线视频| 国产剧情一区二区三区| 欧美激情资源网| 日韩欧美另类在线| 91精品国产91久久久久久最新毛片| 欧美日韩二区三区| 成人亚洲精品久久久久软件| 久久精品国产精品亚洲精品| 午夜一区二区三区在线观看| 亚洲精品成人a在线观看| 国产精品久久久久永久免费观看| 日韩久久免费av| 欧美精品欧美精品系列| 欧洲人成人精品| 91视频观看视频| 不卡一区二区中文字幕| 懂色av一区二区三区蜜臀| 久久国产欧美日韩精品| 美女久久久精品| 日韩av不卡一区二区| 石原莉奈在线亚洲二区| 亚洲尤物视频在线| 一区二区三区加勒比av| 亚洲精品水蜜桃| 亚洲黄色录像片| 夜夜精品浪潮av一区二区三区| 国产精品久久久久久久浪潮网站| 久久精品视频一区| 国产欧美日韩久久| 国产精品黄色在线观看| 中文字幕在线观看一区二区| 国产精品视频免费看| 国产精品久久久久久久久果冻传媒 | 国产精品第一页第二页第三页| 国产女人aaa级久久久级| 亚洲国产高清不卡| 国产精品人妖ts系列视频| 日本一区二区视频在线| 中文字幕 久热精品 视频在线| 国产精品萝li| 一区二区三区中文字幕| 亚洲va韩国va欧美va精品| 青青草国产成人99久久| 寂寞少妇一区二区三区| 床上的激情91.| 色哟哟国产精品免费观看| 欧美日韩在线播放一区| 91精品国产色综合久久| wwwwxxxxx欧美| 中文字幕一区三区| 亚洲伊人色欲综合网| 视频一区二区三区中文字幕| 精品在线视频一区| 成人动漫一区二区在线| 欧美伊人久久久久久久久影院| 3d成人h动漫网站入口| 精品久久久网站| 国产精品区一区二区三| 亚洲在线观看免费视频| 老司机午夜精品| 北岛玲一区二区三区四区| 欧美日韩亚洲综合在线 欧美亚洲特黄一级| 欧美酷刑日本凌虐凌虐| 久久综合色鬼综合色| 亚洲色图欧洲色图婷婷| 免费成人在线观看视频| 丁香激情综合国产| 欧美久久一二区| 国产欧美精品区一区二区三区 | 日日摸夜夜添夜夜添国产精品| 国产乱码一区二区三区| 国产精品欧美极品| 亚洲一区二区欧美日韩| 激情小说亚洲一区| 91网站视频在线观看| 91精品啪在线观看国产60岁| 中文字幕免费不卡在线| 亚洲gay无套男同| 国产精品白丝av| 欧美日韩国产不卡| 中文字幕一区二区三区不卡 | 91视频国产观看| 精品久久久久久久久久久久久久久| 中文字幕中文字幕中文字幕亚洲无线| 香蕉影视欧美成人| zzijzzij亚洲日本少妇熟睡| 欧美一区二区三区视频在线| 亚洲欧美影音先锋| 黄色日韩三级电影| 欧美久久久久久蜜桃| 亚洲天堂成人在线观看| 国产一区二区三区不卡在线观看 | 欧美电影免费观看高清完整版| 国产精品美日韩| 激情欧美一区二区三区在线观看| 一本大道久久a久久精品综合| 26uuu成人网一区二区三区| 午夜精品久久久久久久99樱桃| 成人深夜在线观看| 欧美精品一区二区在线观看| 日韩电影网1区2区| 欧美日韩在线播放三区四区| 日韩码欧中文字| 成人精品亚洲人成在线| 久久综合99re88久久爱| 久久精品国产**网站演员| 欧美日本高清视频在线观看| 亚洲精品精品亚洲| www.成人网.com| 国产人妖乱国产精品人妖| 老司机午夜精品| 日韩欧美一二三四区| 青青草国产精品97视觉盛宴| 欧美精品vⅰdeose4hd| 亚洲成av人片一区二区三区 | 91精品国产福利| 香蕉加勒比综合久久| 一道本成人在线| 国产精品久久久一区麻豆最新章节| 国产精品12区| 国产精品午夜免费| 国产69精品一区二区亚洲孕妇| 久久久久久久精| 韩国视频一区二区| 欧美精品一区二| 国产成人亚洲综合a∨婷婷| 久久久久一区二区三区四区| 另类综合日韩欧美亚洲| 日韩精品自拍偷拍| 国产一区欧美日韩| 国产亚洲欧美日韩在线一区| 国产精品一区在线观看乱码| 久久久久久久久一| 国产成人精品亚洲777人妖| 久久精品夜夜夜夜久久| 成人一级视频在线观看| 自拍偷自拍亚洲精品播放| av影院午夜一区| 亚洲精品美腿丝袜| 欧美日韩在线亚洲一区蜜芽| 日本视频在线一区| 久久嫩草精品久久久精品| 国产 日韩 欧美大片| 一区二区三区国产精品| 国产精品盗摄一区二区三区| 激情综合亚洲精品| 久久精品亚洲精品国产欧美 | 精品久久久久久综合日本欧美| 日本一区中文字幕| 欧美v国产在线一区二区三区| 国产在线播放一区二区三区| 中文字幕一区二| 欧美另类高清zo欧美| 久国产精品韩国三级视频| 国产精品久久久久久久久快鸭| 欧美性色aⅴ视频一区日韩精品| 日韩福利电影在线| 国产亚洲精久久久久久| 日本韩国欧美三级| 男女男精品视频| 国产精品国产三级国产有无不卡 | 在线观看视频一区| 日日夜夜免费精品| 国产午夜精品福利| 日本韩国视频一区二区| 另类的小说在线视频另类成人小视频在线 | 狠狠色2019综合网| 中文字幕在线一区| 欧美视频在线观看一区二区| 美国十次了思思久久精品导航| 国产欧美日韩视频在线观看| 欧美日韩高清不卡| heyzo一本久久综合| 视频一区在线视频| 亚洲人亚洲人成电影网站色| 日韩欧美国产综合一区| 99r国产精品| 精品一区二区三区蜜桃| 亚洲免费观看高清完整版在线观看| 欧美成人官网二区| 在线观看一区二区视频| 成人免费福利片| 裸体健美xxxx欧美裸体表演| 亚洲乱码国产乱码精品精小说 | 亚洲欧洲在线观看av|