Merge "Fix 2877497: export rsgProgramVertexLoadProjectionMatrix()"

This commit is contained in:
Jim Miller
2010-07-29 17:50:01 -07:00
committed by Android (Google) Code Review
2 changed files with 8 additions and 0 deletions

View File

@@ -91,6 +91,12 @@ static void SC_bindProgramRaster(RsProgramRaster pv)
// VP
//////////////////////////////////////////////////////////////////////////////
static void SC_vpLoadProjectionMatrix(const rsc_Matrix *m)
{
GET_TLS();
rsc->getVertex()->setProjectionMatrix(m);
}
static void SC_vpLoadModelMatrix(const rsc_Matrix *m)
{
GET_TLS();
@@ -355,6 +361,7 @@ static ScriptCState::SymbolTable_t gSyms[] = {
{ "rsgBindSampler", (void *)&SC_bindSampler },
{ "rsgBindTexture", (void *)&SC_bindTexture },
{ "rsgProgramVertexLoadProjectionMatrix", (void *)&SC_vpLoadProjectionMatrix },
{ "rsgProgramVertexLoadModelMatrix", (void *)&SC_vpLoadModelMatrix },
{ "rsgProgramVertexLoadTextureMatrix", (void *)&SC_vpLoadTextureMatrix },

View File

@@ -13,6 +13,7 @@ extern void rsgBindProgramRaster(rs_program_raster);
extern void rsgBindSampler(rs_program_fragment, int slot, rs_sampler);
extern void rsgBindTexture(rs_program_fragment, int slot, rs_allocation);
extern void rsgProgramVertexLoadProjectionMatrix(const rs_matrix4x4 *);
extern void rsgProgramVertexLoadModelMatrix(const rs_matrix4x4 *);
extern void rsgProgramVertexLoadTextureMatrix(const rs_matrix4x4 *);