Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
shapeutils.h File Reference
#include <functional>
#include <istream>
#include "ion/base/allocator.h"
#include "ion/gfx/bufferobject.h"
#include "ion/gfx/indexbuffer.h"
#include "ion/gfx/shape.h"
#include "ion/math/angle.h"
#include "ion/math/matrix.h"
#include "ion/math/vector.h"
Include dependency graph for shapeutils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ion::gfxutils::ShapeSpec
 This struct contains specifications common to all basic shapes. More...
 
struct  ion::gfxutils::ExternalShapeSpec
 External geometry formats. More...
 
struct  ion::gfxutils::PlanarShapeSpec
 Planar shape. More...
 
struct  ion::gfxutils::RectangleSpec
 Rectangle. More...
 
struct  ion::gfxutils::RegularPolygonSpec
 Regular polygon. More...
 
struct  ion::gfxutils::BoxSpec
 Box. More...
 
struct  ion::gfxutils::EllipsoidSpec
 Ellipsoid. More...
 
struct  ion::gfxutils::CylinderSpec
 Cylinder. More...
 

Namespaces

 ion
 Copyright 2016 Google Inc.
 
 ion::gfxutils
 

Functions

const gfx::IndexBufferPtr ion::gfxutils::BuildWireframeIndexBuffer (const gfx::IndexBufferPtr &tri_index_buffer)
 Public functions. More...
 
const gfx::ShapePtr ion::gfxutils::LoadExternalShape (const ExternalShapeSpec &spec, std::istream &in)
 Loads a Shape with the specified format from the passed stream. More...
 
const gfx::ShapePtr ion::gfxutils::BuildRectangleShape (const RectangleSpec &spec)
 Builds and returns a Shape representing a rectangle in one of the principal Cartesian planes. More...
 
const gfx::ShapePtr ion::gfxutils::BuildRegularPolygonShape (const RegularPolygonSpec &spec)
 Builds and returns a Shape representing a flat regular polygon. More...
 
const gfx::ShapePtr ion::gfxutils::BuildBoxShape (const BoxSpec &spec)
 Builds and returns a Shape representing an axis-aligned box. More...
 
const gfx::ShapePtr ion::gfxutils::BuildEllipsoidShape (const EllipsoidSpec &spec)
 Builds and returns a Shape representing an axis-aligned ellipsoid. More...
 
const gfx::ShapePtr ion::gfxutils::BuildCylinderShape (const CylinderSpec &spec)
 Builds and returns a Shape representing an axis-aligned cylinder. More...