摘要: 配色函数private void setColor(double Z) { float r, g, b; if (Z > colorParam1) { r = (float)((Z - colorParam1) / colorParam2); b = 0; } else { r = 0; b = (float)((colorPara... 阅读全文
posted @ 2013-08-12 22:26 Lemon_Hi 阅读(1747) 评论(0) 推荐(0) 编辑
摘要: 1 static Font f = new Font("Times New Roman", 15, FontStyle.Regular);//Times New Roman 2 GDITextureFont myFont = new GDITextureFont(f); 3 /// 4 /// GDI Font(has fault) 5 /// 6 private void draw_font(float x,float y,float z,string str) 7 { ... 阅读全文
posted @ 2013-08-12 22:22 Lemon_Hi 阅读(572) 评论(0) 推荐(0) 编辑
摘要: 画图形,定义模式为GL_SELECT,并为图形创建名字堆栈: 1 /// 2 /// Draws the rectangles. 3 /// 4 /// The selection mode. 5 private static void DrawRects(uint mode) 6 { 7 // The three rectangles are drawn. In selection mode, each rectangle is given 8 // the ... 阅读全文
posted @ 2013-08-12 17:23 Lemon_Hi 阅读(674) 评论(0) 推荐(1) 编辑