Overte C++ Documentation
SimpleMeshProxy.h
1
//
2
// SimpleMeshProxy.h
3
// libraries/model-networking/src/model-networking/
4
//
5
// Created by Seth Alves on 2017-1-27.
6
// Copyright 2017 High Fidelity, Inc.
7
// Copyright 2023 Overte e.V.
8
//
9
// Distributed under the Apache License, Version 2.0.
10
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
11
// SPDX-License-Identifier: Apache-2.0
12
//
13
14
#ifndef hifi_SimpleMeshProxy_h
15
#define hifi_SimpleMeshProxy_h
16
17
#include <RegisteredMetaTypes.h>
18
19
class
SimpleMeshProxy :
public
MeshProxy {
20
public
:
21
SimpleMeshProxy(
const
MeshPointer& mesh) : _mesh(mesh) { }
22
23
MeshPointer getMeshPointer()
const override
;
24
25
int
getNumVertices()
const override
;
26
27
glm::vec3 getPos(
int
index)
const override
;
28
glm::vec3 getPos3(
int
index)
const override
{
return
getPos(index); }
// deprecated
29
30
protected
:
31
const
MeshPointer _mesh;
32
};
33
34
#endif
// hifi_SimpleMeshProxy_h
libraries
model-networking
src
model-networking
SimpleMeshProxy.h
Generated by
1.9.1