iBlobManager Struct Reference
The blob manager. More...
#include <ivaria/blobs.h>

Public Member Functions | |
| virtual iMovingObject * | CheckCollision (iMovingObject *b)=0 |
| Check if a moving object collides with another moving object on this layer (and of the same viewport). | |
| virtual bool | CheckCollision (iMovingObject *b1, iMovingObject *b2)=0 |
| Check if two moving objects collide. | |
| virtual iBlob * | CreateBlob (const char *name, int layer, const char *filename, iImageModifier *modifier)=0 |
| Create a new blob on a layer with a given image (name). | |
| virtual iBlobImage * | CreateBlobImage (const char *name, iImageModifier *modifier=0, const char *filename=0)=0 |
| Create blob images. These functions are not usually called by users. | |
| virtual iGeom * | CreateGeom (int layer, int w, int h)=0 |
| Create a new geom object. | |
| virtual iMovingObject * | FindMovingObject (int x, int y)=0 |
| Find a moving object. Only works on clickable objects. | |
| virtual csPtr< iImageModifier > | GetBlurImageModifier (const char *name)=0 |
| Create a modifier that blurs the source image. | |
| virtual csPtr< iImageModifier > | GetColorizedImageModifier (const char *name, const csColor4 &mult, const csColor4 &add)=0 |
| Create a modifier that modifies the color of the source image. | |
| virtual csPtr< iImageModifier > | GetCombinedImageModifier (const char *name, iImageModifier *m1, iImageModifier *m2)=0 |
| Create a modifier that combines two other modifiers. | |
| virtual csPtr< iImageModifier > | GetGrayScaleImageModifier (const char *name)=0 |
| Create a modifier that converts an image to grayscale. | |
| virtual void | LoadTexture (const char *name, const char *filename)=0 |
| Load a texture to be used for blobs. | |
| virtual void | MapTexture (const char *bigtxt, const char *smalltxt, int x, int y, int w, int h)=0 |
| Define a smaller texture that represents a part of a bigger texture. | |
| virtual void | MovingObjectToFront (iMovingObject *b)=0 |
| Move a moving object so it appears in front on its given layer. | |
| virtual void | Update (csTicks current, csTicks elapsed)=0 |
| Update all blobs and render them. | |
Detailed Description
The blob manager.
Definition at line 234 of file blobs.h.
Member Function Documentation
| virtual iMovingObject* iBlobManager::CheckCollision | ( | iMovingObject * | b | ) | [pure virtual] |
Check if a moving object collides with another moving object on this layer (and of the same viewport).
Return the object.
| virtual bool iBlobManager::CheckCollision | ( | iMovingObject * | b1, | |
| iMovingObject * | b2 | |||
| ) | [pure virtual] |
Check if two moving objects collide.
| virtual iBlob* iBlobManager::CreateBlob | ( | const char * | name, | |
| int | layer, | |||
| const char * | filename, | |||
| iImageModifier * | modifier | |||
| ) | [pure virtual] |
Create a new blob on a layer with a given image (name).
If the image cannot be found it will try to load it with the given 'filename'. Note that currently only layers from 0 to 8 are supported.
| virtual iBlobImage* iBlobManager::CreateBlobImage | ( | const char * | name, | |
| iImageModifier * | modifier = 0, |
|||
| const char * | filename = 0 | |||
| ) | [pure virtual] |
Create blob images. These functions are not usually called by users.
| virtual iGeom* iBlobManager::CreateGeom | ( | int | layer, | |
| int | w, | |||
| int | h | |||
| ) | [pure virtual] |
Create a new geom object.
| virtual iMovingObject* iBlobManager::FindMovingObject | ( | int | x, | |
| int | y | |||
| ) | [pure virtual] |
Find a moving object. Only works on clickable objects.
| virtual csPtr<iImageModifier> iBlobManager::GetBlurImageModifier | ( | const char * | name | ) | [pure virtual] |
Create a modifier that blurs the source image.
| virtual csPtr<iImageModifier> iBlobManager::GetColorizedImageModifier | ( | const char * | name, | |
| const csColor4 & | mult, | |||
| const csColor4 & | add | |||
| ) | [pure virtual] |
Create a modifier that modifies the color of the source image.
| virtual csPtr<iImageModifier> iBlobManager::GetCombinedImageModifier | ( | const char * | name, | |
| iImageModifier * | m1, | |||
| iImageModifier * | m2 | |||
| ) | [pure virtual] |
Create a modifier that combines two other modifiers.
| virtual csPtr<iImageModifier> iBlobManager::GetGrayScaleImageModifier | ( | const char * | name | ) | [pure virtual] |
Create a modifier that converts an image to grayscale.
| virtual void iBlobManager::LoadTexture | ( | const char * | name, | |
| const char * | filename | |||
| ) | [pure virtual] |
Load a texture to be used for blobs.
| virtual void iBlobManager::MapTexture | ( | const char * | bigtxt, | |
| const char * | smalltxt, | |||
| int | x, | |||
| int | y, | |||
| int | w, | |||
| int | h | |||
| ) | [pure virtual] |
Define a smaller texture that represents a part of a bigger texture.
When defining blobs or animations you can use small or big textures automatically.
| virtual void iBlobManager::MovingObjectToFront | ( | iMovingObject * | b | ) | [pure virtual] |
Move a moving object so it appears in front on its given layer.
Update all blobs and render them.
This will automatically switch the renderer to 2D mode.
The documentation for this struct was generated from the following file:
- ivaria/blobs.h
Generated for Crystal Space 2.1 by doxygen 1.6.1
