frustum.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 #include "tango-gl/frustum.h"
17 
18 namespace tango_gl {
19 
20 static const float float_vertices[] = {
21  0.0f, 0.0f, 0.0f, -1.0f, 1.0f, -1.0f,
22  0.0f, 0.0f, 0.0f, 1.0f, 1.0f, -1.0f,
23  0.0f, 0.0f, 0.0f, -1.0f, -1.0f, -1.0f,
24  0.0f, 0.0f, 0.0f, 1.0f, -1.0f, -1.0f,
25  -1.0f, 1.0f, -1.0f, 1.0f, 1.0f, -1.0f,
26  1.0f, 1.0f, -1.0f, 1.0f, -1.0f, -1.0f,
27  1.0f, -1.0f, -1.0f, -1.0f, -1.0f, -1.0f,
28  -1.0f, -1.0f, -1.0f, -1.0f, 1.0f, -1.0f};
29 
30 Frustum::Frustum() : Line(3.0f, GL_LINES) {
31  SetShader();
32  size_t size = sizeof(float_vertices) / sizeof(float);
33  for (size_t i = 0; i < size; i += 3) {
35  float_vertices[i + 2]));
36  }
37 }
38 } // namespace tango_gl
size
Index size
tango_gl::Line
Definition: line.h:23
tango_gl::Frustum::Frustum
Frustum()
Definition: frustum.cpp:30
glm::detail::tvec3
Definition: type_mat.hpp:37
frustum.h
tango_gl::float_vertices
static const float float_vertices[]
Definition: axis.cpp:22
f
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
tango_gl::DrawableObject::SetShader
void SetShader()
Definition: drawable_object.cpp:22
tango_gl
Definition: axis.cpp:20
tango_gl::Line::vec_vertices_
std::vector< glm::vec3 > vec_vertices_
Definition: line.h:34
i
int i


rtabmap
Author(s): Mathieu Labbe
autogenerated on Thu Jul 25 2024 02:50:10