added uniform interface for primitives
Merge pull request #9 from ad0/master

added uniform interface for primitives