![]() |
V-Gears 0
Free Final Fantasy VII engine.
|
Functions | |
void | CreateTextureFromVram (const Ogre::PixelBox &pixel_box, Vram *vram, const int start_x, const int start_y, const int clut_x, const int clut_y, const int texture_x, const int texture_y, const BPP bpp, const bool transparency) |
Creates a material from video memory and adds it to the texture list. More... | |
void | CreateTexture (Vram *vram, const MeshData &mesh_data, const Ogre::String &texture_file_name, const VectorTexForGen &textures) |
Creates a texture from video memory and saves it to a file. More... | |
void | CreateMaterial (const Ogre::String &material_name, const Ogre::String &material_file_name, const Ogre::String &texture_name, const Ogre::String &vertex_program, const Ogre::String &fragment_program) |
Creates a material and saves it to a file. More... | |
void | AddTexture (TexForGen &texture, const MeshData &data, VectorTexForGen &textures, Logger *logger) |
Adds a texture to the list. More... | |
void | AddTransparency (u32 &colour, const bool transparency, const bool stp) |
Adds or removes a transparency to a colour. More... | |
void AddTexture | ( | TexForGen & | texture, |
const MeshData & | data, | ||
VectorTexForGen & | textures, | ||
Logger * | logger | ||
) |
Adds a texture to the list.
[in] | texture | Texture information. |
[in] | data | Mesh information. |
[in,out] | textures | The texture will be added to this list. |
[in] | logger | Custom logger to print info about the process. It can be NULL, but then nothing will be printed. |
void AddTransparency | ( | u32 & | colour, |
const bool | transparency, | ||
const bool | stp | ||
) |
Adds or removes a transparency to a colour.
[in,out] | colour | The colour to add or remove the transparency to. |
[in] | transparency | True to add transparency, false to remove it. |
[in] | stp |
void CreateMaterial | ( | const Ogre::String & | material_name, |
const Ogre::String & | material_file_name, | ||
const Ogre::String & | texture_name, | ||
const Ogre::String & | vertex_program, | ||
const Ogre::String & | fragment_program | ||
) |
Creates a material and saves it to a file.
[in] | material_name | The material name. |
[in] | material_file_name | Path to the material file to save. |
[in] | texture_name | Name of the texture to assign to the material. |
[in] | vertex_program |
[in] | fragment_program |
void CreateTexture | ( | Vram * | vram, |
const MeshData & | mesh_data, | ||
const Ogre::String & | texture_file_name, | ||
const VectorTexForGen & | textures | ||
) |
Creates a texture from video memory and saves it to a file.
[in] | vram | Memory block to load the texture from. |
[in] | mesh_data | Information about the mesh the texture is assigned to. |
[in] | texture_file_name | Path to the texture file to save. |
[in] | textures |
void CreateTextureFromVram | ( | const Ogre::PixelBox & | pixel_box, |
Vram * | vram, | ||
const int | start_x, | ||
const int | start_y, | ||
const int | clut_x, | ||
const int | clut_y, | ||
const int | texture_x, | ||
const int | texture_y, | ||
const BPP | bpp, | ||
const bool | transparency | ||
) |
Creates a material from video memory and adds it to the texture list.
[in] | pixel_box | Texture image descriptor. |
[in] | vram | Memory block to load the material from. |
[in] | start_x | X coordinate for the texture. |
[in] | start_y | Y coordinate for the texture. |
[in] | clut_x | X coordinate for the texture CLUT. |
[in] | clut_y | Y coordinate for the texture CLUT. |
[in] | texture_x | X coordinate for the texture. |
[in] | texture_y | Y coordinate for the texture. |
[in] | bpp | BPP mode for the texture colour. |
[in] | transparency | Indicates if the texture has transparencies. |