gfx Namespace Reference

Graphics library. More...


Classes

class  GFX
 OpenGL abstraction. More...
class  Rect
 2D rectangle. More...
struct  WidthHeight
 (width,height) tuple. More...
struct  BoxVolume
 Defines a volume in 3D space. More...
class  RGBA
 RGBA class. Based on uint8[4]. Can output/convert to fp[4]. More...

Namespaces

namespace  defs

Typedefs

typedef osg::Vec4Array Colors

Enumerations

enum  { RR, GG, BB, AA }

Functions

template<typename T>
bool operator== (const Rect< T > &a, const Rect< T > &b)
template<typename T>
bool operator!= (const Rect< T > &a, const Rect< T > &b)
template<typename T>
bool operator< (const Rect< T > &a, const Rect< T > &b)
template<typename T>
ostream & operator<< (ostream &strm, const Rect< T > &o)
template<typename T>
ostream & operator<< (ostream &strm, const WidthHeight< T > &o)
void Init (const base::InitArgs &initArgs)
void Start (void)
void OsgNodeRemoveChildren (RefPtr< osg::Group > group)
bool OsgNodeSaveToFile (osg::Node &node, const string &filename)
void OsgGeometryWasModified (RefPtr< osg::Geometry > geom, RefPtr< osg::Vec3Array > vertexs)
void OsgGeometryWasModifiedByResizing (RefPtr< osg::Geometry > geom, RefPtr< osg::Vec3Array > vertexs, RefPtr< osg::DrawArrays > drawArray)
void OsgNodeRemoveChildren (RefPtr< osg::Group > group)
void OsgGeometryWasModified (RefPtr< osg::Geometry > geom, RefPtr< osg::Vec3Array > vertexs)
void OsgGeometryWasModifiedByResizing (RefPtr< osg::Geometry > geom, RefPtr< osg::Vec3Array > vertexs, RefPtr< osg::DrawArrays > drawArray)
INLINE ostream & operator<< (ostream &strm, const RGBA rgba)
INLINE RGBA InterpolateRGBA (const RGBA rgba0, const RGBA rgba1, const fp factor)
INLINE RGBA InterpolateRGB (const RGBA rgba0, const RGBA rgba1, const fp factor)


Detailed Description

Graphics library.

Typedef Documentation

typedef osg::Vec4Array gfx::Colors


Enumeration Type Documentation

anonymous enum

Enumerator:
RR 
GG 
BB 
AA 


Function Documentation

void sky::Init ( const base::InitArgs initArgs  ) 

Initialize module.

INLINE RGBA gfx::InterpolateRGB ( const RGBA  rgba0,
const RGBA  rgba1,
const fp  factor 
)

Faster interpolation between RGB ignoring alpha.

INLINE RGBA gfx::InterpolateRGBA ( const RGBA  rgba0,
const RGBA  rgba1,
const fp  factor 
)

Interpolate between two RGBAs.

Parameters:
rgba0 
rgba1 
factor 0.0 : rgba0 0.5 : interpolate at mid-point. 1.0 : rgba1

template<typename T>
bool gfx::operator!= ( const Rect< T > &  a,
const Rect< T > &  b 
) [inline]

template<typename T>
bool gfx::operator< ( const Rect< T > &  a,
const Rect< T > &  b 
) [inline]

INLINE ostream& gfx::operator<< ( ostream &  strm,
const RGBA  rgba 
)

operator<<(RGBA)

template<typename T>
ostream& gfx::operator<< ( ostream &  strm,
const WidthHeight< T > &  o 
) [inline]

template<typename T>
ostream& gfx::operator<< ( ostream &  strm,
const Rect< T > &  o 
) [inline]

template<typename T>
bool gfx::operator== ( const Rect< T > &  a,
const Rect< T > &  b 
) [inline]

void gfx::OsgGeometryWasModified ( RefPtr< osg::Geometry >  geom,
RefPtr< osg::Vec3Array >  vertexs 
)

void gfx::OsgGeometryWasModified ( RefPtr< osg::Geometry >  geom,
RefPtr< osg::Vec3Array >  vertexs 
)

Call this after modifying elements vertexs (while keeping the same size).

void gfx::OsgGeometryWasModifiedByResizing ( RefPtr< osg::Geometry >  geom,
RefPtr< osg::Vec3Array >  vertexs,
RefPtr< osg::DrawArrays >  drawArray 
)

void gfx::OsgGeometryWasModifiedByResizing ( RefPtr< osg::Geometry >  geom,
RefPtr< osg::Vec3Array >  vertexs,
RefPtr< osg::DrawArrays >  drawArray 
)

Call this after adding or removing vertexs. NOTE: Assumes osg::Geometry has one PrimitiveSet.

void gfx::OsgNodeRemoveChildren ( RefPtr< osg::Group >  group  ) 

void gfx::OsgNodeRemoveChildren ( RefPtr< osg::Group >  group  ) 

Remove all child nodes.

bool gfx::OsgNodeSaveToFile ( osg::Node &  node,
const string &  filename 
)

Dump a node (sub-graph) to a file.

void sky::Start ( void   ) 

Start module.

Palomino Flight Simulator documents generated by doxygen 1.5.6 on Tue Sep 28 11:37:49 2010