![]() |
V-Gears 0
Free Final Fantasy VII engine.
|
Classes | |
class | AFile |
Handles A files. More... | |
class | AFileManager |
A manager for A files. More... | |
class | AFileSerializer |
Handles the serialization of A files. More... | |
struct | Animation |
A tile animation. More... | |
class | Application |
The V-Gears main applicacion. More... | |
class | Background2DFile |
Handles 2D background files. More... | |
class | Background2DFileManager |
A manager for 2D background files. More... | |
class | Background2DFileXMLSerializer |
Handles the serialization of 2D background XML files. More... | |
class | BackgroundFile |
A background file representation. More... | |
class | BackgroundFileManager |
A manager for background files. More... | |
class | BackgroundFileSerializer |
Handles the serialization of background files. More... | |
class | BackgroundTextureLoader |
Handles background texture loading. More... | |
class | CameraMatrixFile |
Handles camera matrix files. More... | |
class | CameraMatrixFileManager |
A manager fo camera matrix files. More... | |
class | CameraMatrixFileSerializer |
Handles the serialization of camera matrix files. More... | |
union | ColorA8R8G8B8 |
struct | ColorComponents |
Color components. More... | |
struct | Event |
An input event. More... | |
class | FF7Metadata |
Handles Final Fantasy VII Metadata. More... | |
class | FLevelBackground2DLoader |
Handles 2D background loading. More... | |
class | FLevelFile |
A flevel file. More... | |
class | FLevelFileManager |
A manager for flevel files. More... | |
class | FLevelFileSerializer |
Handles the serialization of flevel files. More... | |
class | FLevelTextureLoader |
A flevel texture loader. More... | |
struct | harcoded_texture_info2 |
Hardcoded texture info. More... | |
struct | HarcodedTextureInfo |
World map hardcoded texture information. More... | |
class | HRCFile |
Handles HRC files. More... | |
class | HRCFileManager |
A manager for HRC files. More... | |
class | HRCFileSerializer |
Handles the serialization of HRC files. More... | |
class | HRCMeshLoader |
A loader for skeleton meshes. More... | |
class | HRCSkeletonLoader |
A loader for skeletons. More... | |
struct | KeyFrame |
A tile key frame. More... | |
class | LGPArchive |
Handles LZS compressed archives. More... | |
class | LGPArchiveFactory |
A factory for LGP archives. More... | |
class | LGPArchiveSerializer |
Manages LGP archives serialization. More... | |
class | LZSDataStream |
Handles LZS compressed data streams. More... | |
class | LZSFLevelFile |
Handles LZS compressed flevel files. More... | |
class | LZSFLevelFileManager |
A manager for LZS compressed flevel files. More... | |
class | ManualObject |
A manually handled object. More... | |
class | MapFile |
Handles map files. More... | |
class | MapFileManager |
A manager for map files. More... | |
class | MapFileXMLSerializer |
Handles the serialization of map XML files. More... | |
class | MapListFile |
Handles map list files. More... | |
class | MapListFileManager |
A manager for map list files. More... | |
class | MapListFileSerializer |
Handles the serialization of map list files. More... | |
class | ModelListFile |
Handles model list files. More... | |
class | ModelListFileManager |
A manager for model list files. More... | |
class | ModelListFileSerializer |
Handles the serialization of model list files. More... | |
class | NameLookup |
Name lookup convenience class. More... | |
class | PaletteFile |
Handles colour palette files. More... | |
class | PaletteFileManager |
A manager for palette files. More... | |
class | PaletteFileSerializer |
Handles the serialization of colour palette files. More... | |
class | PFile |
Handles P files. More... | |
class | PFileManager |
A manager for P files. More... | |
class | PFileSerializer |
Handles the serialization of P files. More... | |
struct | Pixel |
Pixel coordinates. More... | |
class | Resource |
A resource. More... | |
class | RingBuffer |
A ring buffer used by LZS streams. More... | |
class | RSDFile |
Handles RDS files. More... | |
class | RSDFileManager |
A manager for RDS files. More... | |
class | RSDFileSerializer |
Handles the serialization of RDS files. More... | |
class | Serializer |
Handles file serialization. More... | |
class | StringUtil |
Static class for common string manipulations. More... | |
class | TexCodec |
Handles text encoding from font images. More... | |
class | TexFile |
Handles TEX files. More... | |
struct | Tile |
A tile. More... | |
class | TriggerFileSerializer |
Handles the serialization of trigger files. More... | |
class | TriggersFile |
Handles trigger files. More... | |
class | TriggersFileManager |
A manager for trigger files. More... | |
class | TxzFile |
Handles TXZ files. More... | |
class | TxzFileManager |
The manager for TXZ files. More... | |
class | TxzFileSerializer |
class | Utility |
Provides utilities for the application. More... | |
class | WalkmeshFile |
Handles walkmesh files. More... | |
class | WalkmeshFileManager |
A manager for walkmesh files. More... | |
class | WalkmeshFileSerializer |
Handles the serialization of walkmesh files. More... | |
class | WalkmeshFileXMLSerializer |
Handles the serialization of walkmesh files. More... | |
class | WorldmapFile |
Handles a world map file. More... | |
class | WorldmapFileManager |
Manages map files. More... | |
class | WorldmapFileSerializer |
Handles map file serialization. More... | |
class | WorldmapModule |
The world map module. More... | |
class | XMLSerializer |
Handles the serialization of XML files. More... | |
Typedefs | |
typedef Ogre::uchar | uchar |
typedef Ogre::uint8 | uint8 |
typedef Ogre::uint16 | uint16 |
typedef Ogre::uint32 | uint32 |
typedef Ogre::int8 | sint8 |
typedef Ogre::int16 | sint16 |
typedef Ogre::int32 | sint32 |
typedef Ogre::String | String |
typedef Ogre::ConfigFile::SettingsMultiMap | SettingsMultiMap |
typedef Ogre::SharedPtr< class WalkmeshFile > | WalkmeshFilePtr |
typedef Ogre::SharedPtr< ModelListFile > | ModelListFilePtr |
typedef Ogre::SharedPtr< AFile > | AFilePtr |
typedef Ogre::SharedPtr< BackgroundFile > | BackgroundFilePtr |
typedef Ogre::SharedPtr< CameraMatrixFile > | CameraMatrixFilePtr |
typedef Ogre::SharedPtr< FLevelFile > | FLevelFilePtr |
typedef Ogre::SharedPtr< HRCFile > | HRCFilePtr |
typedef HRCFile::Bone | Bone |
typedef HRCFile::BoneList | BoneList |
typedef HRCFile::RSDNameList | RSDNameList |
typedef Ogre::SharedPtr< LZSDataStream > | LZSDataStreamPtr |
typedef Ogre::SharedPtr< MapListFile > | MapListFilePtr |
typedef Ogre::SharedPtr< PaletteFile > | PaletteFilePtr |
typedef Ogre::SharedPtr< PFile > | PFilePtr |
typedef Ogre::SharedPtr< RSDFile > | RSDFilePtr |
typedef Ogre::StringConverter | StringConverter |
typedef Ogre::StringUtil | StringUtil |
typedef Ogre::SharedPtr< TriggersFile > | TriggersFilePtr |
typedef Ogre::SharedPtr< TxzFile > | TxzFilePtr |
typedef Ogre::SharedPtr< WorldmapFile > | MapFilePtr |
typedef Ogre::SharedPtr< Background2DFile > | Background2DFilePtr |
typedef std::vector< KeyFrame > | KeyFrameList |
typedef std::map< String, Animation > | AnimationMap |
Enumerations | |
enum | EventType { ET_NULL = 0 , ET_KEY_PRESS , ET_KEY_REPEAT , ET_KEY_REPEAT_WAIT , ET_KEY_IMPULSE , ET_KEY_RELEASE , ET_MOUSE_PRESS , ET_MOUSE_RELEASE , ET_MOUSE_MOVE , ET_MOUSE_SCROLL } |
Type of event. More... | |
enum | { SCREEN_WIDTH = 1024 , SCREEN_HEIGHT = 768 , FIELD_POSITION_SCALE = 128 , FIELD_DEPTH_SCALE = 32 } |
Defines game dimensions. More... | |
enum | Blending { B_ALPHA , B_ADD , B_SUBTRACT } |
enum | GAME_STATE { G_EXIT , G_GAME } |
Indicators for the game state. More... | |
Functions | |
const String | EXT_MATERIAL (".material") |
const String | EXT_MESH (".mesh") |
const String | EXT_SKELETON (".skeleton") |
const String | EXT_CONFIG (".cfg") |
const String | EXT_LOG (".log") |
const String | EXT_P (".p") |
const String | EXT_PLY (".ply") |
const String | EXT_RSD (".rsd") |
const String | EXT_TEX (".tex") |
const String | EXT_TIM (".tim") |
const String | EXT_TRIGGERS (".triggers") |
const String | EXT_BACKGROUND (".background") |
const String | EXT_CAMERA_MATRIX (".cam_matrix") |
const String | EXT_MODEL_LIST (".model_list") |
const String | EXT_PALETTE (".palette") |
const String | EXT_WALKMESH (".walkmesh") |
static std::vector< std::vector< TxzFileSerializer::PsxPixel > > | To2D16bit (const TxzFileSerializer::VRamBlock &block) |
Converts a VRam block to a list of 2D PSX pixels. More... | |
static std::vector< std::vector< TxzFileSerializer::PsxPixel4Bit > > | To2D8bit (const TxzFileSerializer::VRamBlock &block) |
Converts a VRam block to a list of 2D PSX pixels. More... | |
static uint8 | To24Bit (uint8 v) |
Turns a component to a 24 byte value. More... | |
static std::array< TxzFileSerializer::PsxPixel, 16 > | GetPal (const TxzFileSerializer::VRamBlock &palletes, const std::vector< std::vector< TxzFileSerializer::PsxPixel > > &pallete_pixels, const TxzFileSerializer::WorldMapTexture &entry) |
const String | EXT_A (".a") |
static void | CreateReferenceTextureFileInstance (VGears::TxzFileSerializer &s) |
Creates a reference texture. More... | |
static void | CreateReferenceFileInstance (std::function< void(Ogre::DataStreamPtr &stream, VGears::WorldmapFile &file)> callBack) |
Creates a reference file. More... | |
static float | From16BitFixedPoint (VGears::sint16 coord) |
Creates a 16 bit point from coordinates. More... | |
void | Test (const std::vector< std::vector< TxzFileSerializer::Rgba > > &data) |
Tests something. More... | |
float | ToTextureCoordU (uint8 coord, uint16 id) |
Converts a coordinate to a texture U component coordinate. More... | |
float | ToTextureCoordV (uint8 coord, uint16 id) |
Converts a coordinate to a texture V component coordinate. More... | |
static void | LoadTextures () |
Loads the map textures. More... | |
void | CreateTestMap (SceneManager *scene_manager) |
Creates a test map. More... | |
Variables | |
const String | EXT_MATERIAL |
Extension for material files. More... | |
const String | EXT_MESH |
Extension for mesh files. More... | |
const String | EXT_SKELETON |
Extension for skeleton files. More... | |
const String | EXT_CONFIG |
Extension for configuration files. More... | |
const String | EXT_LOG |
Extension for log files. More... | |
const String | EXT_P |
Extension for P files. More... | |
const String | EXT_PLY |
Extension for PLY files. More... | |
const String | EXT_RSD |
Exteesion for RSD files. More... | |
const String | EXT_TIM |
Extension for TIM files. More... | |
const String | EXT_TEX |
Extension for TEX files. More... | |
const String | EXT_TRIGGERS |
Extension for trigger files. More... | |
const String | EXT_BACKGROUND |
Extension for background files. More... | |
const String | EXT_CAMERA_MATRIX |
Extension for cam matrix files. More... | |
const String | EXT_MODEL_LIST |
Extension for model list files. More... | |
const String | EXT_PALETTE |
Extension for palette files. More... | |
const String | EXT_WALKMESH |
Extension for walkmesh files. More... | |
const int | MAP_NAME_MAX_SIZE = 32 |
static harcoded_texture_info2 | hardcoded_textures [] |
const int | WORLD_MAP_BLOCK_SIZE = 0xB800 |
Size of each block in a world map file. More... | |
const String | EXT_A |
Extension for A files. More... | |
static HarcodedTextureInfo | textures [] |
World map hardcoded textures. More... | |
static const char * | WORLD_RESOURCE_GROUP = "FFVII_World" |
std::vector< TexturePtr > | loaded_textures |
The list of loaded textures. More... | |
std::vector< MaterialPtr > | materials |
The list of materials. More... | |
std::map< int, ManualObject * > | texture_ids |
Map of texture IDs. More... | |
GAME_STATE | g_ApplicationState |
Global application status indicator. More... | |
typedef Ogre::SharedPtr<AFile> VGears::AFilePtr |
typedef std::map<String, Animation> VGears::AnimationMap |
typedef Ogre::SharedPtr<Background2DFile> VGears::Background2DFilePtr |
typedef Ogre::SharedPtr<BackgroundFile> VGears::BackgroundFilePtr |
typedef HRCFile::Bone VGears::Bone |
typedef HRCFile::BoneList VGears::BoneList |
typedef Ogre::SharedPtr<CameraMatrixFile> VGears::CameraMatrixFilePtr |
typedef Ogre::SharedPtr<FLevelFile> VGears::FLevelFilePtr |
typedef Ogre::SharedPtr<HRCFile> VGears::HRCFilePtr |
typedef std::vector<KeyFrame> VGears::KeyFrameList |
typedef Ogre::SharedPtr<LZSDataStream> VGears::LZSDataStreamPtr |
typedef Ogre::SharedPtr< MapFile > VGears::MapFilePtr |
typedef Ogre::SharedPtr<MapListFile> VGears::MapListFilePtr |
typedef Ogre::SharedPtr<ModelListFile> VGears::ModelListFilePtr |
typedef Ogre::SharedPtr<PaletteFile> VGears::PaletteFilePtr |
typedef Ogre::SharedPtr<PFile> VGears::PFilePtr |
typedef Ogre::SharedPtr<RSDFile> VGears::RSDFilePtr |
typedef Ogre::ConfigFile::SettingsMultiMap VGears::SettingsMultiMap |
typedef Ogre::int16 VGears::sint16 |
typedef Ogre::int32 VGears::sint32 |
typedef Ogre::int8 VGears::sint8 |
typedef Ogre::String VGears::String |
typedef Ogre::StringConverter VGears::StringConverter |
typedef Ogre::StringUtil VGears::StringUtil |
typedef Ogre::SharedPtr<TriggersFile> VGears::TriggersFilePtr |
typedef Ogre::SharedPtr<TxzFile> VGears::TxzFilePtr |
typedef Ogre::uchar VGears::uchar |
typedef Ogre::uint16 VGears::uint16 |
typedef Ogre::uint32 VGears::uint32 |
typedef Ogre::uint8 VGears::uint8 |
typedef Ogre::SharedPtr< WalkmeshFile > VGears::WalkmeshFilePtr |
anonymous enum |
enum VGears::Blending |
enum VGears::EventType |
Type of event.
Enumerator | |
---|---|
ET_NULL | Null event. |
ET_KEY_PRESS | A key is pressed. |
ET_KEY_REPEAT | A key is being held down. |
ET_KEY_REPEAT_WAIT |
|
ET_KEY_IMPULSE |
|
ET_KEY_RELEASE | A key is released. |
ET_MOUSE_PRESS | A mouse button is pressed. |
ET_MOUSE_RELEASE | A mouse button is released. |
ET_MOUSE_MOVE | The mouse has moved. |
ET_MOUSE_SCROLL | The mouse has scrolled. |
enum VGears::GAME_STATE |
|
static |
Creates a reference file.
[in,out] | callBack | The callBack function. |
A test file.
Constructor.
Generates a null WM file.
|
static |
Creates a reference texture.
[out] | s | The texture will be loaded here. |
A test file.
Constructor.
Generates a null TXZ file.
void VGears::CreateTestMap | ( | SceneManager * | scene_manager | ) |
Creates a test map.
[in] | scene_manager | The scene manager. |
const String VGears::EXT_A | ( | ".a" | ) |
const String VGears::EXT_BACKGROUND | ( | ".background" | ) |
const String VGears::EXT_CAMERA_MATRIX | ( | ".cam_matrix" | ) |
const String VGears::EXT_CONFIG | ( | ".cfg" | ) |
const String VGears::EXT_LOG | ( | ".log" | ) |
const String VGears::EXT_MATERIAL | ( | ".material" | ) |
const String VGears::EXT_MESH | ( | ".mesh" | ) |
const String VGears::EXT_MODEL_LIST | ( | ".model_list" | ) |
const String VGears::EXT_P | ( | ".p" | ) |
const String VGears::EXT_PALETTE | ( | ".palette" | ) |
const String VGears::EXT_PLY | ( | ".ply" | ) |
const String VGears::EXT_RSD | ( | ".rsd" | ) |
const String VGears::EXT_SKELETON | ( | ".skeleton" | ) |
const String VGears::EXT_TEX | ( | ".tex" | ) |
const String VGears::EXT_TIM | ( | ".tim" | ) |
const String VGears::EXT_TRIGGERS | ( | ".triggers" | ) |
const String VGears::EXT_WALKMESH | ( | ".walkmesh" | ) |
|
static |
Creates a 16 bit point from coordinates.
[in] | coord | The coordinates. |
|
static |
|
static |
Loads the map textures.
void VGears::Test | ( | const std::vector< std::vector< TxzFileSerializer::Rgba > > & | data | ) |
Turns a component to a 24 byte value.
[in] | v | The component to convert. |
|
static |
Converts a VRam block to a list of 2D PSX pixels.
The pixels will be 6 bytes in size.
[in] | block | The video RAM block to convert. |
|
static |
Converts a VRam block to a list of 2D PSX pixels.
The pixels will be 8 bytes in size.
[in] | block | The video RAM block to convert. |
Converts a coordinate to a texture U component coordinate.
[in] | coord | The coordinate to convert. |
[in] | id | Texture ID. |
Converts a coordinate to a texture V component coordinate.
[in] | coord | The coordinate to convert. |
[in] | id | Texture ID. |
|
extern |
Extension for A files.
|
extern |
Extension for background files.
Backgrounds are located in field maps.
|
extern |
Extension for cam matrix files.
Camera matrices are located in field maps.
|
extern |
Extension for configuration files.
|
extern |
Extension for log files.
|
extern |
Extension for material files.
|
extern |
Extension for mesh files.
|
extern |
Extension for model list files.
Model lists are a part of field maps.
|
extern |
Extension for P files.
P files are binary files containing data which form 3D model. The files specifies model's vertices, polygons, colors, texture coordinates and model sub-groups. The files do not specify references to the texture files, animations, model skeleton or anything else.
P-files are used as parts of field models, battle models, battle locations on PC version of FF7.
|
extern |
Extension for palette files.
|
extern |
Extension for PLY files.
PLY file contain polygon data.
|
extern |
Exteesion for RSD files.
RSD files are product of the original Playstation Psy-Q 3D development libraries. They are often expoted by 3D modelers when converting from an LWO or DXF file to something more understandable by the PSX. It is in ascii, making it easy to edit by hand. When a 3D editor does an export, four text files are actually created, .rsd, .ply, .mat, and .grp. These can then be "compiled" into a binary .rsd file for the PSX.
In the PC version of Final Fantasy 7, the text .rsd file is used while the other files were "compiled" into Polygon(.p) format.
|
extern |
Extension for skeleton files.
|
extern |
Extension for TEX files.
TEX files are the PC's version of Final Fantasy VII texture files.
|
extern |
Extension for TIM files.
TIM files are a standard image file format for the Sony PlayStation. The file structure closely mimics the way textures are managed in the frame buffer by the GPU. TIM files are little endian-based.
|
extern |
Extension for trigger files.
Triggers are located in fields maps.
|
extern |
Extension for walkmesh files.
Walkmeshes are part of field maps.
GAME_STATE VGears::g_ApplicationState |
Global application status indicator.
|
static |
std::vector<TexturePtr> VGears::loaded_textures |
The list of loaded textures.
const int VGears::MAP_NAME_MAX_SIZE = 32 |
std::vector<MaterialPtr> VGears::materials |
The list of materials.
std::map<int, ManualObject*> VGears::texture_ids |
Map of texture IDs.
|
static |
World map hardcoded textures.
const int VGears::WORLD_MAP_BLOCK_SIZE = 0xB800 |
Size of each block in a world map file.
|
static |