Merge "Fix 2877497: export rsgProgramVertexLoadProjectionMatrix()"
This commit is contained in:
@@ -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 },
|
||||
|
||||
|
||||
@@ -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 *);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user