void init(struct hypnomix *hyp)
{
	transformProjection(&hyp->tr, hyp->pmatrix);
	hyp->var.nbbands = 3;
	skyboxInit(hyp);
	fprintf(stderr, "INFO: module init\n");
	transformComputeAverageNormals(idx, 4, vtx, 4, nrm, 3);
}
示例#2
0
文件: env.c 项目: thunderk/stormwar
/******************************************************************************
 *############################################################################*
 *#                             Public functions                             #*
 *############################################################################*
 ******************************************************************************/
void
envInit()
{
    skyboxInit();
    flockingInit();
    thunderboltInit();
    
    _lights = PtrArray_newFull(2, 2, (PtrFunc)lightDel, NULL);

    MOD_ID = coreDeclareModule("env", NULL, datasCallback, NULL, NULL, NULL, NULL);
}