mirror of
https://github.com/overte-org/overte.git
synced 2025-07-14 22:16:40 +02:00
40 lines
1.1 KiB
C++
40 lines
1.1 KiB
C++
//
|
|
// RenderableLineEntityItem.h
|
|
// libraries/entities-renderer/src/
|
|
//
|
|
// Created by Seth Alves on 5/11/15.
|
|
// Copyright 2015 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_RenderableLineEntityItem_h
|
|
#define hifi_RenderableLineEntityItem_h
|
|
|
|
#include <LineEntityItem.h>
|
|
#include "RenderableDebugableEntityItem.h"
|
|
#include "RenderableEntityItem.h"
|
|
#include <GeometryCache.h>
|
|
|
|
class RenderableLineEntityItem : public LineEntityItem {
|
|
public:
|
|
static EntityItemPointer factory(const EntityItemID& entityID, const EntityItemProperties& properties);
|
|
|
|
RenderableLineEntityItem(const EntityItemID& entityItemID, const EntityItemProperties& properties) :
|
|
LineEntityItem(entityItemID, properties),
|
|
_lineVerticesID(GeometryCache::UNKNOWN_ID)
|
|
{ }
|
|
|
|
virtual void render(RenderArgs* args);
|
|
|
|
SIMPLE_RENDERABLE();
|
|
|
|
protected:
|
|
void updateGeometry();
|
|
|
|
int _lineVerticesID;
|
|
};
|
|
|
|
|
|
#endif // hifi_RenderableLineEntityItem_h
|