webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
geometry_utils.h
Go to the documentation of this file.
1 //
2 // Copyright (c) 2014 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 // geometry_utils:
7 // Helper library for generating certain sets of geometry.
8 //
9 
10 #ifndef UTIL_GEOMETRY_UTILS_H
11 #define UTIL_GEOMETRY_UTILS_H
12 
13 #include <cstddef>
14 #include <vector>
15 
16 #include <export.h>
17 #include <GLES2/gl2.h>
18 
19 #include "Vector.h"
20 
22 {
23  std::vector<Vector3> positions;
24  std::vector<Vector3> normals;
25  std::vector<GLushort> indices;
26 };
27 
28 ANGLE_EXPORT void CreateSphereGeometry(size_t sliceCount, float radius, SphereGeometry *result);
29 
31 {
32  std::vector<Vector3> positions;
33  std::vector<Vector3> normals;
34  std::vector<Vector2> texcoords;
35  std::vector<GLushort> indices;
36 };
37 
39 
40 #endif // UTIL_GEOMETRY_UTILS_H
std::vector< GLushort > indices
Definition: geometry_utils.h:25
std::vector< Vector3 > positions
Definition: geometry_utils.h:23
Definition: geometry_utils.h:30
std::vector< Vector3 > normals
Definition: geometry_utils.h:33
#define ANGLE_EXPORT
Definition: export.h:27
std::vector< Vector2 > texcoords
Definition: geometry_utils.h:34
ANGLE_EXPORT void CreateSphereGeometry(size_t sliceCount, float radius, SphereGeometry *result)
Definition: geometry_utils.cpp:15
std::vector< GLushort > indices
Definition: geometry_utils.h:35
result
Definition: target-blank-opener-post-window.php:5
std::vector< Vector3 > normals
Definition: geometry_utils.h:24
Definition: geometry_utils.h:21
ANGLE_EXPORT void GenerateCubeGeometry(float radius, CubeGeometry *result)
Definition: geometry_utils.cpp:56
std::vector< Vector3 > positions
Definition: geometry_utils.h:32