#include <PixelPrimitive.h>
Inheritance diagram for Fluxus::PixelPrimitive:
Public Member Functions | |
| PixelPrimitive (unsigned int w, unsigned int h) | |
| PixelPrimitive (const PixelPrimitive &other) | |
| virtual | ~PixelPrimitive () | 
| void | Upload () | 
| Upload the texture to the graphics card.   | |
| void | Load (const string &filename) | 
| unsigned int | GetTexture () | 
| Get the uploaded texture ID - call Upload() first.   | |
Primitive Interface  | |
| virtual PixelPrimitive * | Clone () const | 
| virtual void | Render () | 
| virtual dBoundingBox | GetBoundingBox () | 
| virtual void | RecalculateNormals (bool smooth) | 
| Only makes sense for certain primitive types.   | |
| virtual void | ApplyTransform (bool ScaleRotOnly=false) | 
| virtual string | GetTypeName () | 
| This needs to be set appropriately for all derived types.   | |
Protected Member Functions | |
| virtual void | PDataDirty () | 
| Called when a named pdata mapping changes.   | |
Protected Attributes | |
| vector< dVector > | m_Points | 
| vector< dColour > * | m_ColourData | 
| unsigned int | m_Texture | 
| unsigned int | m_Width | 
| unsigned int | m_Height | 
Definition at line 31 of file PixelPrimitive.h.
| PixelPrimitive::PixelPrimitive | ( | unsigned int | w, | |
| unsigned int | h | |||
| ) | 
Definition at line 26 of file PixelPrimitive.cpp.
| PixelPrimitive::PixelPrimitive | ( | const PixelPrimitive & | other | ) | 
Definition at line 52 of file PixelPrimitive.cpp.
| PixelPrimitive::~PixelPrimitive | ( | ) |  [virtual] | 
        
Definition at line 62 of file PixelPrimitive.cpp.
| PixelPrimitive * PixelPrimitive::Clone | ( | ) |  const [virtual] | 
        
| void PixelPrimitive::Render | ( | ) |  [virtual] | 
        
| dBoundingBox PixelPrimitive::GetBoundingBox | ( | ) |  [virtual] | 
        
| virtual void Fluxus::PixelPrimitive::RecalculateNormals | ( | bool | smooth | ) |  [inline, virtual] | 
        
Only makes sense for certain primitive types.
Reimplemented from Fluxus::Primitive.
Definition at line 44 of file PixelPrimitive.h.
| void PixelPrimitive::ApplyTransform | ( | bool |  ScaleRotOnly = false           | 
          ) |  [virtual] | 
        
| virtual string Fluxus::PixelPrimitive::GetTypeName | ( | ) |  [inline, virtual] | 
        
This needs to be set appropriately for all derived types.
Reimplemented from Fluxus::Primitive.
Definition at line 46 of file PixelPrimitive.h.
| void PixelPrimitive::Upload | ( | ) | 
| void PixelPrimitive::Load | ( | const string & | filename | ) | 
Load a png file into this primitive
Definition at line 94 of file PixelPrimitive.cpp.
| unsigned int Fluxus::PixelPrimitive::GetTexture | ( | ) |  [inline] | 
        
| void PixelPrimitive::PDataDirty | ( | ) |  [protected, virtual] | 
        
Called when a named pdata mapping changes.
Implements Fluxus::PDataContainer.
Definition at line 75 of file PixelPrimitive.cpp.
vector<dVector> Fluxus::PixelPrimitive::m_Points [protected]           | 
        
Definition at line 63 of file PixelPrimitive.h.
vector<dColour>* Fluxus::PixelPrimitive::m_ColourData [protected]           | 
        
Definition at line 64 of file PixelPrimitive.h.
unsigned int Fluxus::PixelPrimitive::m_Texture [protected]           | 
        
Definition at line 66 of file PixelPrimitive.h.
unsigned int Fluxus::PixelPrimitive::m_Width [protected]           | 
        
Definition at line 68 of file PixelPrimitive.h.
unsigned int Fluxus::PixelPrimitive::m_Height [protected]           | 
        
Definition at line 69 of file PixelPrimitive.h.
 1.5.1