91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 28.56MB
    文件類型: .rar
    金幣: 2
    下載: 1 次
    發布日期: 2023-06-28
  • 語言: 其他
  • 標簽: OpenGL??文檔??源碼??

資源簡介

OpenGL游戲程序設計 文檔 源碼 作者:(美國)K.霍金 (美國)D.阿斯特 編者:田昱川

資源截圖

代碼片段和文件信息

/****************************************************************************
?chapter1.cpp
?
?A?simple?OpenGL/GLUT?demonstration?showing?a?texture?mapped?lit?spinning
?cube?reflecting?in?a?surface.
??
?This?demo?should?give?you?a?general?idea?of?what?GLUT?is.??For?more
?information?visit?the?official?GLUT?page?at:
?
???????http://reality.sgi.com/opengl/glut3/glut3.html
?
?Author???:???Dave?Astle
?Date?????:???8/23/2000

?Written?for?OpenGL?Game?Programming
*****************************************************************************/

/*********************************?Includes?*********************************/
#include?
#include?
#include?
#include?“HiResTimer.h“


/***************************?Macros?and?constants?***************************/
enum?rendermode_t?{
??RENDER_REFLECTED
??RENDER_SHADOW
??RENDER_NORMAL
};

const?GLfloat?DEGREES_PER_SECOND?=?60.0f;


/********************************?Prototypes?********************************/
void?Initialize();
void?MouseHandler(int?button?int?state?int?x?int?y);
void?KeyboardHandler(unsigned?char?key?int?x?int?y);
void?MainMenuHandler(int?option);
void?Animate();
void?Reshape(int?width?int?height);
void?Display();

void?LoadTexture(char?*filename?GLuint?&texture);
void?DrawScene(rendermode_t?mode);
void?DrawCube();
void?DrawSurface();


/*********************************?Globals?**********************************/
//?index?for?the?texture?we‘ll?load?for?the?cube
GLuint?g_cubeTexture;

//?how?much?to?rotate?the?cube?around?an?axis
GLfloat?g_rotationAngle?=?0.0;

CHiResTimer?g_timer;


/****************************************************************************
?main()

?Setup?GLUT?and?OpenGL?drop?into?the?event?loop
*****************************************************************************/
int?main(int?argc?char?**argv)
{
??//?Setup?the?basic?GLUT?stuff
??glutInit?(&argc?argv);
??glutInitDisplayMode?(GLUT_DOUBLE?|?GLUT_RGB?|?GLUT_DEPTH?|?GLUT_STENCIL);

??//?Create?the?window
??glutInitWindowSize(512?512);
??glutInitWindowPosition(400?350);
??glutCreateWindow(“Chapter?1“);

??Initialize();

??//?Register?the?event?callback?functions
??glutDisplayFunc(Display);?
??glutReshapeFunc(Reshape);
??glutMouseFunc(MouseHandler);
??glutKeyboardFunc(KeyboardHandler);
??glutIdleFunc(Animate);

??//?At?this?point?control?is?relinquished?to?the?GLUT?event?handler.
??//?Control?is?returned?as?events?occur?via?the?callback?functions.
??glutMainLoop();???
???
??return?0;
}?//?end?main()


/****************************************************************************
?Initialize()

?One?time?setup?including?creating?menus?creating?a?light?setting?the
?shading?mode?and?clear?color?and?loading?textures.
*****************************************************************************/
void?Initialize()
{
??//?set?up?the?only?meny
??int?mainMenu;

??mainMenu?=?gl

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件??????15006??2001-04-08?22:03??OpenGL游戲程序設計+源碼\OpenGL游戲程序設計(源碼)\chapter01\chapter1\chapter1.cpp

?????文件???????4430??2001-02-02?00:37??OpenGL游戲程序設計+源碼\OpenGL游戲程序設計(源碼)\chapter01\chapter1\Chapter1.dsp

?????文件????????539??2000-10-12?10:45??OpenGL游戲程序設計+源碼\OpenGL游戲程序設計(源碼)\chapter01\chapter1\Chapter1.dsw

?????文件??????69632??2001-04-08?22:03??OpenGL游戲程序設計+源碼\OpenGL游戲程序設計(源碼)\chapter01\chapter1\Chapter1.exe

?????文件???????4279??2001-02-02?00:19??OpenGL游戲程序設計+源碼\OpenGL游戲程序設計(源碼)\chapter01\chapter1\HiResTimer.h

?????文件?????196662??2000-08-22?00:17??OpenGL游戲程序設計+源碼\OpenGL游戲程序設計(源碼)\chapter01\chapter1\opengl.bmp

?????文件???????3960??2000-08-20?01:30??OpenGL游戲程序設計+源碼\OpenGL游戲程序設計(源碼)\chapter02\compwinapp\compwinapp.dsp

?????文件????????543??2000-08-20?01:10??OpenGL游戲程序設計+源碼\OpenGL游戲程序設計(源碼)\chapter02\compwinapp\compwinapp.dsw

?????文件??????33792??2001-04-09?17:11??OpenGL游戲程序設計+源碼\OpenGL游戲程序設計(源碼)\chapter02\compwinapp\compwinapp.ncb

?????文件??????48640??2001-04-09?17:11??OpenGL游戲程序設計+源碼\OpenGL游戲程序設計(源碼)\chapter02\compwinapp\compwinapp.opt

?????文件???????3069??2001-04-09?17:07??OpenGL游戲程序設計+源碼\OpenGL游戲程序設計(源碼)\chapter02\compwinapp\main.cpp

?????文件????????242??2000-08-19?12:34??OpenGL游戲程序設計+源碼\OpenGL游戲程序設計(源碼)\chapter02\winhello\main.cpp

?????文件???????3938??2000-08-19?03:06??OpenGL游戲程序設計+源碼\OpenGL游戲程序設計(源碼)\chapter02\winhello\winhello.dsp

?????文件????????539??2000-08-19?02:23??OpenGL游戲程序設計+源碼\OpenGL游戲程序設計(源碼)\chapter02\winhello\winhello.dsw

?????文件??????27765??2001-04-08?21:32??OpenGL游戲程序設計+源碼\OpenGL游戲程序設計(源碼)\chapter04\source\chapter4.cpp

?????文件???????4044??2000-10-24?11:18??OpenGL游戲程序設計+源碼\OpenGL游戲程序設計(源碼)\chapter04\source\chapter4.dsp

?????文件????????539??2000-10-23?11:21??OpenGL游戲程序設計+源碼\OpenGL游戲程序設計(源碼)\chapter04\source\chapter4.dsw

?????文件??????49152??2001-04-08?22:02??OpenGL游戲程序設計+源碼\OpenGL游戲程序設計(源碼)\chapter04\source\chapter4.exe

?????文件??????18216??2001-04-09?14:30??OpenGL游戲程序設計+源碼\OpenGL游戲程序設計(源碼)\chapter05\projections\projections.cpp

?????文件???????4080??2001-04-09?14:31??OpenGL游戲程序設計+源碼\OpenGL游戲程序設計(源碼)\chapter05\projections\projections.dsp

?????文件????????545??2001-04-09?14:14??OpenGL游戲程序設計+源碼\OpenGL游戲程序設計(源碼)\chapter05\projections\projections.dsw

?????文件??????45056??2001-04-09?14:30??OpenGL游戲程序設計+源碼\OpenGL游戲程序設計(源碼)\chapter05\projections\projections.exe

?????文件??????13913??2001-03-08?02:37??OpenGL游戲程序設計+源碼\OpenGL游戲程序設計(源碼)\chapter05\robot\robot.cpp

?????文件???????4018??2001-04-10?01:49??OpenGL游戲程序設計+源碼\OpenGL游戲程序設計(源碼)\chapter05\robot\robot.dsp

?????文件????????533??2001-01-17?12:46??OpenGL游戲程序設計+源碼\OpenGL游戲程序設計(源碼)\chapter05\robot\robot.dsw

?????文件??????32768??2001-04-10?01:49??OpenGL游戲程序設計+源碼\OpenGL游戲程序設計(源碼)\chapter05\robot\robot.exe

?????文件???????4050??2001-04-10?01:51??OpenGL游戲程序設計+源碼\OpenGL游戲程序設計(源碼)\chapter06\blendex1\blendex1.dsp

?????文件????????539??2000-12-11?02:52??OpenGL游戲程序設計+源碼\OpenGL游戲程序設計(源碼)\chapter06\blendex1\blendex1.dsw

?????文件??????32768??2001-04-10?01:51??OpenGL游戲程序設計+源碼\OpenGL游戲程序設計(源碼)\chapter06\blendex1\blendex1.exe

?????文件???????9924??2001-03-08?01:13??OpenGL游戲程序設計+源碼\OpenGL游戲程序設計(源碼)\chapter06\blendex1\main.cpp

............此處省略386個文件信息

評論

共有 條評論