osgWidget/Types
Go to the documentation of this file.
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2008 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with this distribution, and on the openscenegraph.org website.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* OpenSceneGraph Public License for more details.
*/
// Code by: Jeremy Moles (cubicool) 2007-2008
#ifndef OSGWIDGET_TYPES
#define OSGWIDGET_TYPES
#include <numeric>
#include <osg/Geometry>
namespace osgWidget {
typedef osg::Vec2Array TexCoordArray;
typedef osg::Vec3Array PointArray;
typedef osg::Vec4Array ColorArray;
typedef TexCoordArray::value_type TexCoord;
typedef PointArray::value_type Point;
typedef ColorArray::value_type Color;
typedef TexCoord::value_type texcoord_type;
typedef Point::value_type point_type;
typedef Color::value_type color_type;
typedef osg::Vec2 XYCoord;
typedef osg::Vec4 Quad;
typedef osg::Matrix::value_type matrix_type;
// This is multiplied by a normalized Z value [0.0f, -1.0f] to create a RenderBin number
// to set the state of the Window/Widget with. Perhaps at some later time this should
// be configurable.
const int OSGWIDGET_RENDERBIN_MOD = 5000;
}
#endif
Geometry
osg::Matrixd::value_type
double value_type
Definition Matrixd:30
osg::MixinVector::value_type
vector_type::value_type value_type
Definition MixinVector:33
osgWidget
Definition Box:21
osgWidget::ColorArray
osg::Vec4Array ColorArray
Definition osgWidget/Types:26
osgWidget::Quad
osg::Vec4 Quad
Definition osgWidget/Types:37
osgWidget::color_type
Color::value_type color_type
Definition osgWidget/Types:34
osgWidget::point_type
Point::value_type point_type
Definition osgWidget/Types:33
osgWidget::XYCoord
osg::Vec2 XYCoord
Definition osgWidget/Types:36
osgWidget::Point
PointArray::value_type Point
Definition osgWidget/Types:29
osgWidget::OSGWIDGET_RENDERBIN_MOD
const int OSGWIDGET_RENDERBIN_MOD
Definition osgWidget/Types:44
osgWidget::texcoord_type
TexCoord::value_type texcoord_type
Definition osgWidget/Types:32
osgWidget::TexCoord
TexCoordArray::value_type TexCoord
Definition osgWidget/Types:28
osgWidget::TexCoordArray
osg::Vec2Array TexCoordArray
Definition osgWidget/Types:24
osgWidget::matrix_type
osg::Matrix::value_type matrix_type
Definition osgWidget/Types:39
osgWidget::Color
ColorArray::value_type Color
Definition osgWidget/Types:30
osgWidget::PointArray
osg::Vec3Array PointArray
Definition osgWidget/Types:25
osg::Vec2Array
TemplateArray< Vec2, Array::Vec2ArrayType, 2, GL_FLOAT > Vec2Array
Definition Array:448
osg::Vec4Array
TemplateArray< Vec4, Array::Vec4ArrayType, 4, GL_FLOAT > Vec4Array
Definition Array:450
osg::Vec2
Vec2f Vec2
Definition Vec2:21
osg::Vec3Array
TemplateArray< Vec3, Array::Vec3ArrayType, 3, GL_FLOAT > Vec3Array
Definition Array:449
osg::Vec4
Vec4f Vec4
Definition Vec4:21