srand[getpid[]] /* initialize some of the memory */ memset[heightmap, 0, MAPSIZE*MAPSIZE] memset[vpage, 0, RENDERWIDTH * RENDERHEIGHT] printf["Creating dx d fractal terrain\n", MAPSIZE, MAPSIZE] heightmap[0] = [rand[] 128] + 64 // initialize starting point on map CreateFractalMap[0, 0, MAPSIZE, MAPSIZE] printf["Smoothing terrain\n"] for [i = 0 i < 5 i++] SmoothMap[] MakeColorMap[]
资源简介:srand[getpid[]] /* initialize some of the memory */ memset[heightmap, 0, MAPSIZE*MAPSIZE] memset[vpage, 0, RENDERWIDTH * RENDERHEIGHT] printf["Creating dx d fractal terrain\n", MAPSIZE, MAPSIZE] heightmap[0] = [rand[...
上传时间: 2014-01-04
上传用户:ainimao
资源简介:srand[getpid[]] /* initialize some of the memory */ memset[heightmap, 0, MAPSIZE*MAPSIZE] memset[vpage, 0, RENDERWIDTH * RENDERHEIGHT] printf["Creating dx d fractal terrain\n", MAPSIZE, MAPSIZE] heightmap[0] = [rand[...
上传时间: 2013-12-25
上传用户:CSUSheep
资源简介:Some of the basic matrix operations
上传时间: 2014-12-05
上传用户:小宝爱考拉
资源简介:This paper describes some of the author s experiences from a C++ implementation of a concordance program for texts in Old West Norse and Runic Swedish.
上传时间: 2014-01-11
上传用户:leixinzhuo
资源简介:a small program by Yuval Fisher that has gone a long way to revealing some of the secrets of fracal image compression.
上传时间: 2015-12-24
上传用户:脚趾头
资源简介:DataBurn is an Objective-C example which demonstrates some of the features of DRTracks. The sample illustrates how to create a DRFolder from an existing folder on the source disk and burn it to disc, creating a hybrid ISO9660/Joliet/HFS+ da...
上传时间: 2016-01-14
上传用户:小鹏
资源简介:Some of the basic design of C language algorithm C语言的几种算法:自顶向下、逐步求精方法、简单排序算法、枚举法、迭代法、递推与递归法、分治法
上传时间: 2017-01-02
上传用户:gundan
资源简介:This set of files show some of the principles of Monte Carlo simulations, applied in the financila industry. this si the content of the web seminar called "Simulations de Monte Carlo en MATLAB".
上传时间: 2013-12-18
上传用户:xiaoyunyun
资源简介:some of the image proceeing samples using java
上传时间: 2013-12-24
上传用户:playboys0
资源简介:An introduction to some of the key ideas in computer graphics is given. Modeling, 2D and 3D viewing, transformations and related ideas from linear algebra are presented.
上传时间: 2017-04-07
上传用户:hebmuljb