Implement type generation for user uniforms in vertex shader.

This commit is contained in:
Jason Sams
2010-01-12 12:12:28 -08:00
parent 917cd4fcda
commit ea87e96959
8 changed files with 137 additions and 38 deletions

View File

@@ -973,6 +973,13 @@ static void SC_uploadToBufferObject(RsAllocation va)
rsi_AllocationUploadToBufferObject(rsc, va);
}
static void SC_syncToGL(RsAllocation va)
{
GET_TLS();
Allocation *a = static_cast<Allocation *>(va);
}
static void SC_ClearColor(float r, float g, float b, float a)
{
//LOGE("c %f %f %f %f", r, g, b, a);
@@ -1321,6 +1328,9 @@ ScriptCState::SymbolTable_t ScriptCState::gSyms[] = {
{ "uploadToBufferObject", (void *)&SC_uploadToBufferObject,
"void", "(int)" },
{ "syncToGL", (void *)&SC_syncToGL,
"void", "(int)" },
{ "colorFloatRGBAtoUNorm8", (void *)&SC_colorFloatRGBAtoUNorm8,
"int", "(float, float, float, float)" },
{ "colorFloatRGBto565", (void *)&SC_colorFloatRGBAto565,