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); }
/****************************************************************************** *############################################################################* *# 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); }