CodeForge QQ客服 CodeForge 400电话 客服电话 4006316121

myKeyboard.CPP ( 文件浏览 )

  • GuoTong 发布于2016-12-25
  • 浏览次数:0
  • 下载次数:0
  • 下载需 1 积分
  • 侵权举报
			#include 
#include 
#include 
#include 

using namespace std;

struct GLintPoint {

			GLint x, y;

};

void drawDot(GLint x, GLint y)

{


	glBegin (GL_POINTS);
	glVertex2i(x,y);
	glEnd();


}

int	screenWidth = 640, screenHeight = 480;

void myDisplay() {


	glClear( GL_COLOR_BUFFER_BIT );
	glMatrixMode( GL_MODELVIEW );
	glLoadIdentity();
	glColor3f( 1.0f, 1.0f, 1.0f );

}
/*
	if( selected ) {


		glBegin( GL_QUADS );

		glVertex2i( corner[0].x, corner[0].y );
		glVertex2i( corner[0].x, corner[1].y );
		glVertex2i( corner[1].x, corner[1].y );
		glVertex2i( corner[1].x, corner[0].y );

		glEnd();
 
	
}

	glutSwapBuffers();
*/	


void myKeyboard(unsigned char theKey, int mouseX, int mouseY)
{

	  GLint x = mouseX;
		GLint y = screenHeight - mouseY; // flip the y value as always
	  switch(theKey)
  {

		  case p:
		  	drawDot(x, y);	// draw a dot at the mouse position
		  	break;
	  	case GLUT_KEY_LEFT: List[++last].x = x; // add a point
                        List[  last].y = y;
			  break;
    case E:
			  exit(-1);		//terminate the program		
	  	default: 
			break;		      // do nothing
	
}

}



int main( int argc, char ** argv ) {


	glutInit( &argc, argv );

	// initialize window
...
...
(完整源码请下载查看)
			
...
展开> <收缩

下载源码到电脑,阅读使用更方便

1 积分

快速下载
还剩0行未阅读,继续阅读
云测速

源码文件列表

温馨提示: 点击源码文件名可预览文件内容哦 ^_^
...
名称 大小 修改日期
01.96 kB
01.96 kB
main.obj15.35 kB2007-02-06|17:46
threedots.exe184.13 kB2007-02-06|17:46
threedots.ilk202.41 kB2007-02-06|17:46
threedots.pch3.60 MB2007-02-06|17:47
threedots.pdb361.00 kB2007-02-06|17:47
vc60.idb137.00 kB2007-02-06|17:47
vc60.pdb76.00 kB2007-02-06|17:47
main.cpp1.56 kB2007-02-06|17:47
threedots.dsp4.21 kB2007-02-06|17:47
threedots.plg891.00 B2007-02-06|17:47
01.96 kB
01.96 kB
dotoplt.exe208.10 kB2007-02-06|17:48
dotoplt.ilk224.64 kB2007-02-06|17:48
dotoplt.obj16.20 kB2007-02-06|17:48
dotoplt.pch3.61 MB2007-02-06|17:49
dotoplt.pdb369.00 kB2007-02-06|17:49
vc60.idb137.00 kB2007-02-06|17:49
vc60.pdb76.00 kB2007-02-06|17:49
dotoplt.cpp1.83 kB2007-02-06|17:49
dotoplt.dsp3.33 kB2007-02-06|17:49
dotoplt.dsw539.00 B2007-02-06|17:49
dotoplt.ncb49.00 kB2007-02-06|17:49
dotoplt.opt47.50 kB2007-02-06|17:49
dotoplt.plg745.00 B2007-02-06|17:49
01.96 kB
01.96 kB
rubberrect.exe184.10 kB2007-02-06|17:49
rubberrect.ilk208.80 kB2007-02-06|17:50
rubberrect.obj17.30 kB2007-02-06|17:50
rubberrect.pch3.59 MB2007-02-06|17:51
rubberrect.pdb457.00 kB2007-02-06|17:51
vc60.idb145.00 kB2007-02-06|17:51
vc60.pdb76.00 kB2007-02-06|17:51
rubberrect.cpp1.71 kB2007-02-06|17:51
rubberrect.dsp3.37 kB2007-02-06|17:51
rubberrect.dsw545.00 B2007-02-06|17:51
rubberrect.ncb49.00 kB2007-02-06|17:51
rubberrect.opt48.50 kB2007-02-06|17:51
rubberrect.plg760.00 B2007-02-06|17:51
01.96 kB
01.96 kB
vc60.idb33.00 kB2007-02-06|17:51
vc60.pdb44.00 kB2007-02-06|17:51
version1.exe184.08 kB2007-02-06|17:51
version1.ilk211.13 kB2007-02-06|17:52
version1.obj9.07 kB2007-02-06|17:52
version1.pch315.06 kB2007-02-06|17:52
version1.pdb441.00 kB2007-02-06|17:52
version1.cpp1.34 kB2007-02-06|17:52
version1.dsp3.41 kB2007-02-06|17:52
version1.dsw541.00 B2007-02-06|17:52
version1.ncb41.00 kB2007-02-06|17:52
version1.opt47.50 kB2007-02-06|17:52
version1.plg784.00 B2007-02-06|17:52
01.96 kB
c_plus_plus_book_first_program.dsp4.44 kB2007-02-06|17:53
c_plus_plus_book_first_program.dsw585.00 B2007-02-06|17:53
c_plus_plus_book_first_program.ncb33.00 kB2007-02-06|17:53
c_plus_plus_book_first_program.opt47.50 kB2007-02-06|17:53
c_plus_plus_book_first_program.plg978.00 B2007-02-06|17:53
01.96 kB
c_plus_plus_book_first_program.exe200.17 kB2007-02-06|17:52
c_plus_plus_book_first_program.ilk234.01 kB2007-02-06|17:52
c_plus_plus_book_first_program.pch186.43 kB2007-02-06|17:52
c_plus_plus_book_first_program.pdb489.00 kB2007-02-06|17:52
main.obj5.71 kB2007-02-06|17:52
vc60.idb41.00 kB2007-02-06|17:52
vc60.pdb60.00 kB2007-02-06|17:53
main.cpp192.00 B2007-02-06|17:53
Gingerbread0.00 B2007-02-06|17:54
Gingerbread0.00 B2007-02-06|17:54
Gingerbread28.75 kB2007-02-06|17:53
Gingerbread3.57 MB2007-02-06|17:54
Gingerbread25.00 kB2007-02-06|17:54
Gingerbread129.00 kB2007-02-06|17:54
Gingerbread76.00 kB2007-02-06|17:54
Gingerbread15.28 kB2007-02-06|17:54
Gingerbread3.54 kB2007-02-06|17:54
Gingerbread555.00 B2007-02-06|17:54
Gingerbread32.00 kB2007-02-06|17:54
Gingerbread33.00 kB2007-02-06|17:54
Gingerbread47.50 kB2007-02-06|17:54
Gingerbread2.77 kB2007-02-06|17:54
01.96 kB
01.96 kB
main.obj15.80 kB2007-02-06|17:54
mouseDots.exe184.13 kB2007-02-06|17:54
mouseDots.ilk206.82 kB2007-02-06|17:54
mouseDots.pch3.59 MB2007-02-06|17:56
mouseDots.pdb449.00 kB2007-02-06|17:56
vc60.idb137.00 kB2007-02-06|17:56
vc60.pdb76.00 kB2007-02-06|17:56
main.cpp1.38 kB2007-02-06|17:56
mouseDots.dsp4.21 kB2007-02-06|17:56
mouseDots.dsw543.00 B2007-02-06|17:56
mouseDots.ncb41.00 kB2007-02-06|17:56
mouseDots.opt47.50 kB2007-02-06|17:56
mouseDots.plg1.30 kB2007-02-06|17:56
myKeyboard.CPP1.92 kB2007-02-06|17:56
云测速

myKeyboard.CPP (7.50 MB)

需要 1 积分
您持有 积分

CodeForge积分(原CF币)全新升级,功能更强大,使用更便捷,不仅可以用来下载海量源代码马上还可兑换精美小礼品了 了解更多

您的积分不足

支付宝优惠套餐快速获取 30 积分

订单支付完成后,积分将自动加入到您的账号。以下是优惠期的人民币价格,优惠期过后将恢复美元价格。

更多付款方式:网银PayPal

上传代码,免费获取

您本次下载所消耗的积分将转交上传作者。

同一源码,30天内重复下载,只扣除一次积分。

登录 CodeForge

还没有CodeForge账号? 立即注册
关注微博
联系客服

Switch to the English version?

Yes
CodeForge 英文版
No
CodeForge 中文版

完善个人资料,获价值¥30元积分奖励!

^_^"呃 ...

Sorry!这位大神很神秘,未开通博客呢,请浏览一下其他的吧
好的