文件名称:justforfun
- 所属分类:
- Linux/Unix编程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 4kb
- 下载次数:
- 1次
- 提 供 者:
- x***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
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[] 128]+ 64 // initialize starting point on map
CreateFractalMap[0, 0, MAPSIZE, MAPSIZE]
printf["Smoothing terrain\n"]
for [i = 0 i < 5 i++]
SmoothMap[]
MakeColorMap[]
/* 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[] 128]+ 64 // initialize starting point on map
CreateFractalMap[0, 0, MAPSIZE, MAPSIZE]
printf["Smoothing terrain\n"]
for [i = 0 i < 5 i++]
SmoothMap[]
MakeColorMap[]
相关搜索: terrain
(系统自动生成,下载前可以参看下载内容)
下载文件列表
justforfun
..........\land.c
..........\Makefile
..........\land.c
..........\Makefile