first commit

This commit is contained in:
Dan Peori
2010-10-18 12:54:49 -03:00
commit 8a3bef9012
612 changed files with 74685 additions and 0 deletions

34
src/gu/sceGuLightColor.c Normal file
View File

@@ -0,0 +1,34 @@
/*
* PSP Software Development Kit - http://www.pspdev.org
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* Copyright (c) 2005 Jesper Svennevid
*/
#include "guInternal.h"
void sceGuLightColor(int light, int component, unsigned int color)
{
GuLightSettings* settings = &light_settings[light];
switch (component)
{
case GU_AMBIENT: sendCommandi(settings->ambient, color & 0xffffff); break;
case GU_DIFFUSE: sendCommandi(settings->diffuse, color & 0xffffff); break;
case GU_AMBIENT_AND_DIFFUSE:
{
sendCommandi(settings->ambient, color & 0xffffff); break;
sendCommandi(settings->diffuse, color & 0xffffff); break;
}
break;
case GU_SPECULAR: sendCommandi(settings->specular, color & 0xffffff); break;
case GU_DIFFUSE_AND_SPECULAR:
{
sendCommandi(settings->diffuse, color & 0xffffff); break;
sendCommandi(settings->specular, color & 0xffffff); break;
}
break;
}
}