Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

sglDataPtr Class Reference

#include <sglDataPtr.hpp>

Inheritance diagram for sglDataPtr::

sglObject sglDeleteableDataPtr sglFreeableDataPtr sglNoRefDataPtr List of all members.

Public Types

enum  DataTypeEnum {
  eBYTE,
  eUNSIGNED_BYTE,
  eSHORT,
  eUNSIGNED_SHORT,
  eINT,
  eUNSIGNED_INT,
  eFLOAT,
  eDOUBLE
}

Public Methods

 sglDataPtr ()
virtual ~sglDataPtr ()
virtual void* getData () const=0

Static Public Methods

int getSizeOfType (DataTypeEnum type)
GLenum getGLType (DataTypeEnum type)

Detailed Description

Abstract base class for reference counted containers of data pointers.

Definition at line 33 of file sglDataPtr.hpp.


Member Enumeration Documentation

enum sglDataPtr::DataTypeEnum
 

Enumeration of all data types supported by SGL.

Definition at line 37 of file sglDataPtr.hpp.


Constructor & Destructor Documentation

sglDataPtr::sglDataPtr ( ) [inline]
 

Constructor.

Definition at line 51 of file sglDataPtr.hpp.

sglDataPtr::~sglDataPtr ( ) [inline, virtual]
 

Destructor.

Definition at line 54 of file sglDataPtr.hpp.


Member Function Documentation

void * sglDataPtr::getData ( ) const [pure virtual]
 

Get the data pointer.

Returns:
Pointer to the data.

Reimplemented in sglDeleteableDataPtr, sglFreeableDataPtr, and sglNoRefDataPtr.

Referenced by sglTexCoords::getOffset().

int sglDataPtr::getSizeOfType ( DataTypeEnum type ) [inline, static]
 

Get the size of a data type.

Parameters:
type   One of the data types supported by SGL
Returns:
number of bytes requred for the given type

Definition at line 65 of file sglDataPtr.hpp.

GLenum sglDataPtr::getGLType ( DataTypeEnum type ) [inline, static]
 

Get the GLenum equivalent for the given data type.

Parameters:
type   One of the data types supported by SGL
Returns:
The GLenum equivalent for the given type

Definition at line 72 of file sglDataPtr.hpp.


The documentation for this class was generated from the following file:
Generated at Mon Jul 1 18:00:07 2002 for SGL by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001