Menge
Modular Pedestrian Simulation Framework for Research and Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
Menge::Image Class Reference

Wrapper for the managed ImageData. More...

#include <image.h>

Inheritance diagram for Menge::Image:
Menge::ManagedDataWrapper< ImageData >

Public Member Functions

 Image (ImageData *data)
 Construtor. More...
 
 ~Image ()
 Destructor.
 
void bind () const
 Binds the image to use as a texture in OpenGL.
 
const ImageDatadata () const
 Returns the image data. More...
 
int getWidth () const
 Returns the width of the image (in pixels). More...
 
int getHeight () const
 Returns the height of the image (in pixels). More...
 
- Public Member Functions inherited from Menge::ManagedDataWrapper< ImageData >
 ManagedDataWrapper (ImageData *data)
 Constructor. More...
 
void freeData ()
 Technically, decrements the data's reference count and garbage collects it when necessary. More...
 

Additional Inherited Members

- Protected Attributes inherited from Menge::ManagedDataWrapper< ImageData >
ImageData_data
 The managed data for this wrapper.
 

Detailed Description

Wrapper for the managed ImageData.

Constructor & Destructor Documentation

Menge::Image::Image ( ImageData data)

Construtor.

Parameters
dataAn instance of ImageData.

Member Function Documentation

const ImageData* Menge::Image::data ( ) const
inline

Returns the image data.

Returns
A const pointer to the underlying image data.
int Menge::Image::getHeight ( ) const
inline

Returns the height of the image (in pixels).

Returns
The height of the image (in pixels).
int Menge::Image::getWidth ( ) const
inline

Returns the width of the image (in pixels).

Returns
The width of the image (in pixels).

The documentation for this class was generated from the following files: