summaryrefslogtreecommitdiffstats
path: root/libs/rs/rsProgramVertex.h
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2009-07-21 12:20:54 -0700
committerJason Sams <rjsams@android.com>2009-07-21 12:20:54 -0700
commitee41112e1539de95596600fd2c6dada5d275217f (patch)
tree669b445213276b1f57f4f35f314fb9997b88c26c /libs/rs/rsProgramVertex.h
parentc7b0dba641d5417286caa3694e70b039012d1e91 (diff)
downloadframeworks_base-ee41112e1539de95596600fd2c6dada5d275217f.zip
frameworks_base-ee41112e1539de95596600fd2c6dada5d275217f.tar.gz
frameworks_base-ee41112e1539de95596600fd2c6dada5d275217f.tar.bz2
Enable light sources and update film test app.
Diffstat (limited to 'libs/rs/rsProgramVertex.h')
-rw-r--r--libs/rs/rsProgramVertex.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/rs/rsProgramVertex.h b/libs/rs/rsProgramVertex.h
index 1a92f01..ac15b70 100644
--- a/libs/rs/rsProgramVertex.h
+++ b/libs/rs/rsProgramVertex.h
@@ -28,6 +28,7 @@ class ProgramVertex : public Program
{
public:
const static uint32_t MAX_CONSTANTS = 2;
+ const static uint32_t MAX_LIGHTS = 8;
ProgramVertex(Element *in, Element *out);
virtual ~ProgramVertex();
@@ -38,12 +39,16 @@ public:
void setConstantType(uint32_t slot, const Type *);
void bindAllocation(uint32_t slot, Allocation *);
void setTextureMatrixEnable(bool e) {mTextureMatrixEnable = e;}
+ void addLight(const Light *);
protected:
bool mDirty;
+ uint32_t mLightCount;
ObjectBaseRef<Allocation> mConstants[MAX_CONSTANTS];
ObjectBaseRef<const Type> mConstantTypes[MAX_CONSTANTS];
+ ObjectBaseRef<const Light> mLights[MAX_LIGHTS];
+
// Hacks to create a program for now
bool mTextureMatrixEnable;
@@ -61,6 +66,8 @@ public:
ObjectBaseRef<ProgramVertex> mDefault;
ObjectBaseRef<Allocation> mDefaultAlloc;
+
+
ProgramVertex *mPV;