From cbed7524eacb4adf61c20a0af8bfb37938610bd6 Mon Sep 17 00:00:00 2001 From: Alex Sakhartchouk Date: Mon, 16 Aug 2010 17:40:10 -0700 Subject: Added frustum plane extraction and sphere culling code. Change-Id: I9d55baecddc962f8973f0269f2f9977f1d4ce008 --- libs/rs/rsProgramVertex.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libs/rs/rsProgramVertex.cpp') diff --git a/libs/rs/rsProgramVertex.cpp b/libs/rs/rsProgramVertex.cpp index 60de04a..aee4133 100644 --- a/libs/rs/rsProgramVertex.cpp +++ b/libs/rs/rsProgramVertex.cpp @@ -318,6 +318,12 @@ void ProgramVertex::setTextureMatrix(const rsc_Matrix *m) const mDirty = true; } +void ProgramVertex::getProjectionMatrix(rsc_Matrix *m) const +{ + float *f = static_cast(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(mConstants[0]->getPtr()); -- cgit v1.1