#include <placetexture2d.h>
Inheritance diagram for ScEng::Place2DTexture:

Public Types | |
| enum | DEPENDENCIES { DATA_TABLE_DEPENDENCY = 0 } |
| Enum DEPENDENCIES. More... | |
Public Member Functions | |
| Place2DTexture (bool create_dependencies) | |
| Constructor. | |
| ~Place2DTexture () | |
| Destructor. | |
| std::string | GetClassName () |
| Virtual function. | |
| BlockType | GetBlockType () |
| Virtual function. | |
| int | NumDependencies () |
| Returns the number of Dependencies for this class. | |
| void | SetDependency (int i, Block *dependency) |
| Sets the dependency to the DataTable. | |
| Block * | GetDependency (int i) |
| Returns the DataTable. | |
| std::string | GetDependencyName (int i) |
| Gets the name for the specified dependency. | |
| unsigned int | GetDependencyType (int i) |
| std::string | GetName () |
| Returns the name for this class. | |
| int | GetType (int t) |
| Returns the type. | |
| int | GetMapChannel (int t) |
| Returns the map channel. | |
| float | GetUScale (int t) |
| Returns the U scale. | |
| float | GetVScale (int t) |
| Returns the V scale. | |
| float | GetUOffset (int t) |
| Returns the U offset. | |
| float | GetVOffset (int t) |
| Returns the V offset. | |
| bool | GetUMirror (int t) |
| Returns the U mirror. | |
| bool | GetVMirror (int t) |
| Returns the V mirror. | |
| bool | GetUTile (int t) |
| Returns the U tile. | |
| bool | GetVTile (int t) |
| Returns the V tile. | |
| float | GetUAngle (int t) |
| Returns the U angle. | |
| float | GetVAngle (int t) |
| Returns the V angle. | |
| float | GetWAngle (int t) |
| Returns the W angle. | |
| int | GetUVWPlane (int t) |
| Returns the UVW plane. | |
| void | SetName (std::string new_name) |
| Sets the name. | |
| void | SetType (int type_val, int t) |
| Sets the type. | |
| void | SetMapChannel (int map_ch_val, int t) |
| Sets the map channel. | |
| void | SetUScale (float u_scale_val, int t) |
| Sets the U scale. | |
| void | SetVScale (float v_scale_val, int t) |
| Sets the V scale. | |
| void | SetUOffset (float u_offset_val, int t) |
| Sets the U offset. | |
| void | SetVOffset (float v_offset_val, int t) |
| Sets the V offset. | |
| void | SetUMirror (bool u_mirror_val, int t) |
| Sets the U mirror. | |
| void | SetVMirror (bool v_mirror_val, int t) |
| Sets the V mirror. | |
| void | SetUTile (bool u_tile_val, int t) |
| Sets the U tile. | |
| void | SetVTile (bool v_tile_val, int t) |
| Sets the U tile. | |
| void | SetUAngle (float u_angle_val, int t) |
| Sets the U angle. | |
| void | SetVAngle (float v_angle_val, int t) |
| Sets the U angle. | |
| void | SetWAngle (float w_angle_val, int t) |
| Sets the W angle. | |
| void | SetUVWPlane (int uvw_plane_val, int t) |
| Sets the UVWPlane. | |
| void | SetNumSubMaterials (int num) |
| This texture placement has no sub-materials. | |
| int | GetNumSubMaterials () |
| This texture placement has no sub-materials. | |
| Material * | GetSubMaterial (int i) |
| This texture placement has no sub-materials. | |
| void | SetSubMaterial (int i, Material *material) |
| This texture placement has no sub-materials. | |
| void | SetNumSubTextures (int num) |
| This texture placement has no sub-textures. | |
| int | GetNumSubTextures () |
| This texture placement has no sub-textures. | |
| Texture * | GetSubTexture (int i) |
| This texture placement has no sub-textures. | |
| void | SetSubTexture (int i, Texture *texture) |
| This texture placement has no sub-textures. | |
| void | UpdateDataTable (int id=0) |
| Updates the indexes for the DataTable. | |
| int | GetNumDataTables () |
| Returns the number of DataTables used for this class. | |
| DataTable * | GetDataTable (int id=0) |
| Returns the specified DataTable. | |
| void | SetDataTable (DataTable *d, int i=0) |
| Sets the i_th data table. | |
| Block * | Clone () |
| Creates a copy of this object and return it. | |
| int | Save (SceneSave *scene_save) |
| Saves the info for this class. | |
| int | Load (SceneLoad *scene_load) |
| Loads the info for this class. | |
| void | DeleteThis () |
| Delete this class. | |
| void | ActionBegin (int time, int action) |
| void | ActionEnd (int time, int action) |
| void | Update (int time) |
| void | Shade (DifferentialGeometry &dg) |
| This class doesn't do material shading. | |
Static Public Attributes | |
| static BlockType | block_type |
A class that stores the tiling and offseting values of texture that use UV
Enum DEPENDENCIES.
Enums the chunks used for this class
| DATA_TABLE_DEPENDENCY | The dependency to the DataTable |
| int ScEng::Place2DTexture::NumDependencies | ( | ) | [virtual] |
| unsigned int ScEng::Place2DTexture::GetDependencyType | ( | int | i | ) | [virtual] |
Returns the type of the i-th dependency of this block.
Reimplemented from ScEng::Block.
| std::string ScEng::Place2DTexture::GetName | ( | ) | [virtual] |
| Block * ScEng::Place2DTexture::Clone | ( | ) | [virtual] |
Creates a copy of this object and return it.
The caller of this function is responsible to add this block to the DAG or to delete it.
Implements ScEng::Block.
| void ScEng::Place2DTexture::ActionBegin | ( | int | time, | |
| int | action | |||
| ) | [inline, virtual] |
Informs the block that an action will begin
| time | the time at which the action begins. more details about the action, for example, it can be a RENDER_ACTION, or a SAVE_ACTION. |
Reimplemented from ScEng::Block.
| void ScEng::Place2DTexture::ActionEnd | ( | int | time, | |
| int | action | |||
| ) | [inline, virtual] |
Informs the block that an action will end.
| time | the time at which the action ends. more details about the action, for example, it can be a RENDER_ACTION, or a SAVE_ACTION. |
Reimplemented from ScEng::Block.
| void ScEng::Place2DTexture::Update | ( | int | time | ) | [virtual] |
Informs the block that it needs to update its data. For example, texture and material blocks usually move all their animated parameters from the data_table to int or float variables. This is specially useful when rendering, so there is no need to interpolate a data_value every time.
| time | the time at which the block needs to update its data. |
Reimplemented from ScEng::Block.
The type of this block BlockType Place2DTexture::block_type( BlockType::PLACE_TEXTURE, 0x00400000, 0x00000000 )
1.5.1-p1