selection
直线 

所属分类:OpenGL
开发工具:C++
文件大小:588KB
下载次数:17
上传日期:2005-07-04 15:45:57
上 传 者maomaotongzhi
说明:  从视点到鼠标点形成一条直线,来确定鼠标点选择了屏幕上的那一个多面体。Dev-c++编译
(View from the click of the mouse to form a straight line, to determine the click of the mouse, choose on the screen that a polyhedron. Dev- c compiler)

文件列表:
back.tga (16428, 2002-10-18)
camera.cpp (557, 2000-06-11)
camera.h (308, 2002-10-16)
collision.cpp (12408, 2003-08-07)
crcl.tga (262188, 2002-10-18)
east.tga (98348, 2002-09-30)
flar.tga (262188, 2002-10-18)
flare.cpp (12790, 2002-10-21)
flare.h (2078, 2002-10-18)
flare.txt (527, 2000-05-30)
general.cpp (25837, 2003-08-08)
glare.tga (262188, 2002-10-20)
glfont.c (3774, 2001-08-08)
glfont.cpp (3774, 2001-08-08)
glfont.h (1328, 2002-10-16)
hxgn.tga (262188, 2002-10-18)
icon.ico (2238, 1996-11-17)
images (0, 2003-08-08)
images\smselection.jpg (15988, 2003-08-07)
light.cpp (1785, 2002-10-16)
light.h (647, 2002-10-16)
main.cpp (18269, 2003-08-07)
Makefile.win (690, 2003-08-08)
math.cpp (10052, 2003-08-07)
matrix.cpp (5897, 2000-06-06)
matrix.h (442, 2001-02-24)
north.tga (98348, 2002-09-30)
object.cpp (6209, 2000-06-06)
object.h (1084, 2001-04-25)
polygon.cpp (1432, 2003-08-07)
polygon.h (297, 2003-08-07)
project.rc (89, 2002-08-18)
project.res (3576, 2003-08-08)
quat.cpp (2110, 2003-08-07)
quat.h (733, 2001-02-26)
resource.rc (1709, 2002-08-18)
resource.rh (149, 2001-08-07)
ring.tga (262188, 2002-10-18)
roman.glf (35096, 2001-08-05)
... ...

OpenGL & Win32 (Tutorial No.22 - Polygon Selection/Picking) Program by Alan Baylis Copyright 09/08/2003 This program demonstrates how to make a Win32 & OpenGL application with mouse controlled polygon selection/picking. See the tutorial called selection_tutorial.html for more details. The demo was compiled using Dev-C++ which is freely available from http://www.bloodshed.net/ This code may be freely modified and redistributed but I make no warrantees about it; use at your own risk. If you use this code then give me credit and a link back to my site. Controls: Double clicking the left mouse button while the cursor is over the cubes polygons selects the polygons. Pressing the letter 'R' randomly chooses a new flare. Pressing the letter 'C' cycles through all the cameras. The mouse controls the cameras orientation: Left clicking and holding the mouse button down while moving the mouse up and down controls pitch. Left clicking and holding the mouse button down while moving the mouse left and right controls yaw. Right clicking and holding the mouse button down while moving the mouse up and down controls forward and backward movement. Right clicking and holding the mouse button down while moving the mouse left and right controls roll. To move the cameras position use the arrow keys and the pgup and pgdown keys. Pressing the spacebar resets the current camera to its default position. The numbers 1 - 9 adjust the cameras movement step amount.

近期下载者

相关文件


收藏者