Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
app
android
jni
tango-gl
segment_drawable.cpp
Go to the documentation of this file.
1
/*
2
* Copyright 2014 Google Inc. All Rights Reserved.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#include "
tango-gl/segment_drawable.h
"
18
19
namespace
tango_gl
{
20
SegmentDrawable::SegmentDrawable
() :
tango_gl
::
Line
(5.0
f
, GL_LINES) {
21
SetShader
();
22
vec_vertices_
.push_back(
glm::vec3
(0, 0, 0));
23
vec_vertices_
.push_back(
glm::vec3
(1.
f
, 1.
f
, 1.
f
));
24
}
25
void
SegmentDrawable::UpdateSegment
(
const
Segment
& segment) {
26
vec_vertices_
[0] = segment.
start
;
27
vec_vertices_
[1] = segment.
end
;
28
}
29
}
// namespace tango_gl
tango_gl::Segment::end
glm::vec3 end
Definition:
segment.h:32
f
f
tango_gl::SegmentDrawable::SegmentDrawable
SegmentDrawable()
Definition:
segment_drawable.cpp:20
tango_gl::SegmentDrawable::UpdateSegment
void UpdateSegment(const Segment &segment)
Definition:
segment_drawable.cpp:25
tango_gl::Line
Definition:
line.h:23
tango_gl::DrawableObject::SetShader
void SetShader()
Definition:
drawable_object.cpp:22
tango_gl
Definition:
axis.cpp:20
glm::detail::tvec3
Definition:
type_mat.hpp:37
tango_gl::Line::vec_vertices_
std::vector< glm::vec3 > vec_vertices_
Definition:
line.h:34
tango_gl::Segment
Definition:
segment.h:23
segment_drawable.h
tango_gl::Segment::start
glm::vec3 start
Definition:
segment.h:31
rtabmap
Author(s): Mathieu Labbe
autogenerated on Mon Dec 14 2020 03:35:00