LightInstance.h 647 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef LIGHTINSTANCE_H_
  2. #define LIGHTINSTANCE_H_
  3. #include "Object.h"
  4. #include "Light.h"
  5. namespace gameplay
  6. {
  7. class LightInstance : public Object
  8. {
  9. public:
  10. /**
  11. * Constructor.
  12. */
  13. LightInstance(void);
  14. /**
  15. * Destructor.
  16. */
  17. virtual ~LightInstance(void);
  18. virtual unsigned int getTypeId(void) const;
  19. virtual const char* getElementName(void) const;
  20. virtual void writeBinary(FILE* file);
  21. virtual void writeText(FILE* file);
  22. Light* getLight() const;
  23. void setLight(Light* light);
  24. bool isAmbient() const;
  25. private:
  26. Light* _ref;
  27. };
  28. }
  29. #endif