コード例 #1
0
ファイル: decals.cpp プロジェクト: janisl/jlquake
//	adds decal surfaces to the scene
void R_AddDecalSurfaces( mbrush46_model_t* bmodel ) {
	//	get decal count
	int count = ( bmodel == tr.world->bmodels ? MAX_WORLD_DECALS : MAX_ENTITY_DECALS );

	//	iterate through decals
	mbrush46_decal_t* decal = bmodel->decals;
	for ( int i = 0; i < count; i++, decal++ ) {
		R_AddDecalSurface( decal );
	}
}
コード例 #2
0
ファイル: tr_decals.c プロジェクト: Ododo/etlegacy
/*
R_AddDecalSurfaces()
adds decal surfaces to the scene
*/
void R_AddDecalSurfaces(bspModel_t *bmodel)
{
	int     i, count = (bmodel == tr.world->models ? MAX_WORLD_DECALS : MAX_ENTITY_DECALS); // get decal count
	decal_t *decal = bmodel->decals;

	// iterate through decals

	for (i = 0; i < count; i++, decal++)
	{
		R_AddDecalSurface(decal);
	}
}
コード例 #3
0
void R_AddDecalSurfaces( bmodel_t *bmodel ) {
	int i, count;
	decal_t     *decal;

	/* get decal count */
	count = ( bmodel == tr.world->bmodels ? MAX_WORLD_DECALS : MAX_ENTITY_DECALS );

	/* iterate through decals */
	decal = bmodel->decals;
	for ( i = 0; i < count; i++, decal++ )
		R_AddDecalSurface( decal );
}