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
7#ifndef SAMPLE_UTIL_GEOMETRY_UTILS_H
8#define SAMPLE_UTIL_GEOMETRY_UTILS_H
9
10#include <GLES2/gl2.h>
11
12#include "Vector.h"
13#include <vector>
14
15struct SphereGeometry
16{
17    std::vector<Vector3> positions;
18    std::vector<Vector3> normals;
19    std::vector<GLushort> indices;
20};
21
22void CreateSphereGeometry(size_t sliceCount, float radius, SphereGeometry *result);
23
24struct CubeGeometry
25{
26    std::vector<Vector3> positions;
27    std::vector<Vector3> normals;
28    std::vector<Vector2> texcoords;
29    std::vector<GLushort> indices;
30};
31
32void GenerateCubeGeometry(float radius, CubeGeometry *result);
33
34#endif // SAMPLE_UTIL_GEOMETRY_UTILS_H
35