// // Copyright 2014 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // geometry_utils: // Helper library for generating certain sets of geometry. // #include "geometry_utils.h" #define _USE_MATH_DEFINES #include <math.h> usingnamespaceangle; SphereGeometry::SphereGeometry() { … } SphereGeometry::~SphereGeometry() { … } CubeGeometry::CubeGeometry() { … } CubeGeometry::~CubeGeometry() { … } void CreateSphereGeometry(size_t sliceCount, float radius, SphereGeometry *result) { … } void GenerateCubeGeometry(float radius, CubeGeometry *result) { … }