Jive reference manual
List of all members | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes
jem::gl::StdAttribs Class Reference

#include <jem/gl/StdAttribs.h>

Inheritance diagram for jem::gl::StdAttribs:
Inheritance graph

Public Member Functions

 StdAttribs ()
 
 StdAttribs (const Self &rhs)
 
virtual Ref< Objectclone () const
 
virtual int copyFrom (const Properties &props)
 
virtual void copyTo (const Properties &props, int fields) const
 
virtual void listProps (const Properties &props) const
 
virtual void setDefaults ()
 
virtual void setCurrent (int fields) const
 
virtual void getCurrent (int fields)
 
GLfloat getPointSize () const
 
void setPointSize (GLfloat size)
 
GLfloat getLineWidth () const
 
void setLineWidth (GLfloat width)
 
GLenum getShadeModel () const
 
void setShadeModel (GLenum mode)
 
Color getColor () const
 
void setColor (const Color &color)
 
Color getSpecular () const
 
void setSpecular (const Color &color)
 
GLfloat getShininess () const
 
void setShininess (GLfloat shine)
 
- Public Member Functions inherited from jem::Object
virtual ClassgetClass () const
 Returns the Class instance representing the runtime class of this object. More...
 
virtual String toString () const
 Returns a short textual description of this object. More...
 
virtual long hashValue () const
 Returns a hash value for this object. More...
 
virtual bool equals (const Ref< Object > &obj) const
 Tests whether two objects are equal. More...
 
Ref< Objectclone () const
 Returns a copy of this object. More...
 

Static Public Attributes

static const int POINT_SIZE = 1 << 0
 
static const int LINE_WIDTH = 1 << 1
 
static const int SHADE_MODEL = 1 << 2
 
static const int COLOR = 1 << 3
 
static const int SPECULAR = 1 << 4
 
static const int SHININESS = 1 << 5
 
static const int LAST_FIELD = SHININESS
 
static const char * POINT_SIZE_NAME
 
static const char * LINE_WIDTH_NAME
 
static const char * SHADE_MODEL_NAME
 
static const char * COLOR_NAME
 
static const char * MATERIAL_NAME
 
static const char * SPECULAR_NAME
 
static const char * SHININESS_NAME
 
- Static Public Attributes inherited from jem::gl::Attributes
static const int ALL_FIELDS
 

Protected Member Functions

virtual ~StdAttribs ()
 
- Protected Member Functions inherited from jem::gl::Attributes
virtual ~Attributes ()
 
- Protected Member Functions inherited from jem::Collectable
 Collectable ()
 Creates an empty Collectable. More...
 
 ~Collectable ()
 Frees resources. More...
 
- Protected Member Functions inherited from jem::Clonable
virtual ~Clonable ()
 
virtual void emitVTable_ ()
 
- Protected Member Functions inherited from jem::Interface
virtual ~Interface ()
 Empty destructor. More...
 

Protected Attributes

GLfloat pointSize_
 
GLfloat lineWidth_
 
GLenum shadeModel_
 
Color color_
 
Color specular_
 
GLfloat shininess_
 

Additional Inherited Members

- Static Public Member Functions inherited from jem::Object
static ClassgetType ()
 Returns the Class instance representing the Object class. More...
 
- Public Attributes inherited from jem::gl::Attributes
util::Event< int, Self & > newValuesEvent
 

Constructor & Destructor Documentation

jem::gl::StdAttribs::StdAttribs ( )
jem::gl::StdAttribs::StdAttribs ( const Self &  rhs)
virtual jem::gl::StdAttribs::~StdAttribs ( )
protectedvirtual

Member Function Documentation

virtual Ref<Object> jem::gl::StdAttribs::clone ( ) const
virtual

Implements jem::Clonable.

Reimplemented in jive::gl::MeshAttribs.

virtual int jem::gl::StdAttribs::copyFrom ( const Properties props)
virtual

Implements jem::gl::Attributes.

Reimplemented in jive::gl::MeshAttribs.

virtual void jem::gl::StdAttribs::copyTo ( const Properties props,
int  fields 
) const
virtual

Implements jem::gl::Attributes.

Reimplemented in jive::gl::MeshAttribs.

virtual void jem::gl::StdAttribs::listProps ( const Properties props) const
virtual

Implements jem::gl::Attributes.

virtual void jem::gl::StdAttribs::setDefaults ( )
virtual

Implements jem::gl::Attributes.

Reimplemented in jive::gl::MeshAttribs.

virtual void jem::gl::StdAttribs::setCurrent ( int  fields) const
virtual

Implements jem::gl::Attributes.

virtual void jem::gl::StdAttribs::getCurrent ( int  fields)
virtual

Implements jem::gl::Attributes.

GLfloat jem::gl::StdAttribs::getPointSize ( ) const
void jem::gl::StdAttribs::setPointSize ( GLfloat  size)
GLfloat jem::gl::StdAttribs::getLineWidth ( ) const
void jem::gl::StdAttribs::setLineWidth ( GLfloat  width)
GLenum jem::gl::StdAttribs::getShadeModel ( ) const
void jem::gl::StdAttribs::setShadeModel ( GLenum  mode)
Color jem::gl::StdAttribs::getColor ( ) const
void jem::gl::StdAttribs::setColor ( const Color color)
Color jem::gl::StdAttribs::getSpecular ( ) const
void jem::gl::StdAttribs::setSpecular ( const Color color)
GLfloat jem::gl::StdAttribs::getShininess ( ) const
void jem::gl::StdAttribs::setShininess ( GLfloat  shine)

Member Data Documentation

const int jem::gl::StdAttribs::POINT_SIZE = 1 << 0
static
const int jem::gl::StdAttribs::LINE_WIDTH = 1 << 1
static
const int jem::gl::StdAttribs::SHADE_MODEL = 1 << 2
static
const int jem::gl::StdAttribs::COLOR = 1 << 3
static
const int jem::gl::StdAttribs::SPECULAR = 1 << 4
static
const int jem::gl::StdAttribs::SHININESS = 1 << 5
static
const int jem::gl::StdAttribs::LAST_FIELD = SHININESS
static
const char* jem::gl::StdAttribs::POINT_SIZE_NAME
static
const char* jem::gl::StdAttribs::LINE_WIDTH_NAME
static
const char* jem::gl::StdAttribs::SHADE_MODEL_NAME
static
const char* jem::gl::StdAttribs::COLOR_NAME
static
const char* jem::gl::StdAttribs::MATERIAL_NAME
static
const char* jem::gl::StdAttribs::SPECULAR_NAME
static
const char* jem::gl::StdAttribs::SHININESS_NAME
static
GLfloat jem::gl::StdAttribs::pointSize_
protected
GLfloat jem::gl::StdAttribs::lineWidth_
protected
GLenum jem::gl::StdAttribs::shadeModel_
protected
Color jem::gl::StdAttribs::color_
protected
Color jem::gl::StdAttribs::specular_
protected
GLfloat jem::gl::StdAttribs::shininess_
protected