예제 #1
0
void DessinPerso()
{
	/* Parametrage du placage de textures */
	glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
	glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
	glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 256, 256, 0,
		GL_RGB, GL_UNSIGNED_BYTE, poil);
	glEnable(GL_TEXTURE_2D);

	glTranslatef(0, 0.5 + time + ta, 0);
	glRotated(a, 1, 0, 0);
	glTranslatef(0, -0.5 - time - ta, 0);
	
	Tete();
	Socle();
	Ponpon();
	Nez();
	Oeil(1);
	Oeil(-1);
	Corps();
	BrasG();
	BrasD();
	JG();
	JD();
	//Aile Droite (DG=1)
	Aile(1);
	//Aile Gauche (DG=(-1)
	Aile(-1);
}
예제 #2
0
파일: type.c 프로젝트: krakjoe/jitfu
PHP_METHOD(Type, of) {
	long ztype = 0;
	zval *zcache = NULL;
	php_jit_type_t *ptype;
	
	if (php_jit_parameters("l", &ztype) != SUCCESS || !ztype) {
		php_jit_exception("unexpected parameters, expected (int type)");
		return;
	}
	
	if (!(zcache = zend_hash_index_find(&JG(types), ztype))) {
	 	object_init_ex(return_value, jit_type_ce);
	 	ptype = PHP_JIT_FETCH_TYPE(return_value);
	 	ptype->id = ztype;
	 	ptype->type = php_jit_type(ztype);
	 	zend_hash_index_update(
	 		&JG(types), ztype, return_value);
	 	Z_ADDREF_P(return_value);
	 } else ZVAL_COPY(return_value, zcache);
}