mirror of
https://github.com/overte-org/overte.git
synced 2025-06-24 12:19:51 +02:00
33 lines
1.2 KiB
C++
33 lines
1.2 KiB
C++
//
|
|
// RenderableLightEntityItem.h
|
|
// interface/src/entities
|
|
//
|
|
// Created by Brad Hefta-Gaub on 8/6/14.
|
|
// Copyright 2014 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_RenderableLightEntityItem_h
|
|
#define hifi_RenderableLightEntityItem_h
|
|
|
|
#include <LightEntityItem.h>
|
|
|
|
class RenderableLightEntityItem : public LightEntityItem {
|
|
public:
|
|
static EntityItem* factory(const EntityItemID& entityID, const EntityItemProperties& properties);
|
|
|
|
RenderableLightEntityItem(const EntityItemID& entityItemID, const EntityItemProperties& properties) :
|
|
LightEntityItem(entityItemID, properties)
|
|
{ }
|
|
|
|
virtual void render(RenderArgs* args);
|
|
virtual bool supportsDetailedRayIntersection() const { return true; }
|
|
virtual bool findDetailedRayIntersection(const glm::vec3& origin, const glm::vec3& direction,
|
|
bool& keepSearching, OctreeElement*& element, float& distance, BoxFace& face,
|
|
void** intersectedObject, bool precisionPicking) const;
|
|
};
|
|
|
|
|
|
#endif // hifi_RenderableLightEntityItem_h
|