Added frustum plane extraction and sphere culling code.

Change-Id: I9d55baecddc962f8973f0269f2f9977f1d4ce008
diff --git a/rsProgramVertex.cpp b/rsProgramVertex.cpp
index 60de04a..aee4133 100644
--- a/rsProgramVertex.cpp
+++ b/rsProgramVertex.cpp
@@ -318,6 +318,12 @@
     mDirty = true;
 }
 
+void ProgramVertex::getProjectionMatrix(rsc_Matrix *m) const
+{
+    float *f = static_cast<float *>(mConstants[0]->getPtr());
+    memcpy(m, &f[RS_PROGRAM_VERTEX_PROJECTION_OFFSET], sizeof(rsc_Matrix));
+}
+
 void ProgramVertex::transformToScreen(const Context *rsc, float *v4out, const float *v3in) const
 {
     float *f = static_cast<float *>(mConstants[0]->getPtr());