diff options
Diffstat (limited to 'libs/rs/rsLight.cpp')
-rw-r--r-- | libs/rs/rsLight.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/libs/rs/rsLight.cpp b/libs/rs/rsLight.cpp index 6f2cf3e..eab9a07 100644 --- a/libs/rs/rsLight.cpp +++ b/libs/rs/rsLight.cpp @@ -14,9 +14,13 @@ * limitations under the License. */ +#ifndef ANDROID_RS_BUILD_FOR_HOST #include "rsContext.h" - #include <GLES/gl.h> +#else +#include "rsContextHostStub.h" +#include <OpenGL/gl.h> +#endif //ANDROID_RS_BUILD_FOR_HOST using namespace android; using namespace android::renderscript; @@ -65,6 +69,16 @@ void Light::setupGL(uint32_t num) const glLightfv(GL_LIGHT0 + num, GL_POSITION, mPosition); } +void Light::serialize(OStream *stream) const +{ + +} + +Light *Light::createFromStream(Context *rsc, IStream *stream) +{ + return NULL; +} + //////////////////////////////////////////// LightState::LightState() |