V-Gears 0
Free Final Fantasy VII engine.
VGearsUtility.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2022 The V-Gears Team
3 *
4 * This file is part of V-Gears
5 *
6 * V-Gears is free software: you can redistribute it and/or modify it under
7 * terms of the GNU General Public License as published by the Free Software
8 * Foundation, version 3.0 (GPLv3) of the License.
9 *
10 * V-Gears is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
16#pragma once
17
19#include "common/OgreBase.h"
20
21namespace VGears{
22
26 class Utility : public Application{
27
28 public:
29
36 Utility(int argc, char *argv[]);
37
41 virtual ~Utility();
42
48 virtual Ogre::Camera* GetCamera(void);
49
59 static std::string DecodeString(const u8* bytes, const unsigned int size);
60
61 protected:
62
66 virtual void InitComponents();
67
71 virtual void DestroyComponents();
72
73 private:
74
79
84
88 Ogre::SceneManager *scene_manager_;
89
93 Ogre::Camera *camera_;
94
98 Ogre::Viewport *viewport_;
99 };
100}
101
Ogre::uint8 u8
Definition: TypeDefine.h:21
The display frame listener.
Definition: OgreBase.h:63
The V-Gears main applicacion.
Definition: VGearsApplication.h:28
Provides utilities for the application.
Definition: VGearsUtility.h:26
static std::string DecodeString(const u8 *bytes, const unsigned int size)
Decodes a FF7 encoded string.
Definition: VGearsUtility.cpp:64
DisplayFrameListener * frame_listener_
The frame listener.
Definition: VGearsUtility.h:83
virtual void InitComponents()
Initializes components used by the utilities.
Definition: VGearsUtility.cpp:31
Utility()
Constructor.
Ogre::Viewport * viewport_
The engine viewport.
Definition: VGearsUtility.h:98
Ogre::SceneManager * scene_manager_
The application scene manager.
Definition: VGearsUtility.h:88
virtual ~Utility()
Destructor.
Definition: VGearsUtility.cpp:27
virtual Ogre::Camera * GetCamera(void)
Retrieves the camera.
Definition: VGearsUtility.cpp:29
Ogre::Camera * camera_
The engine camera.
Definition: VGearsUtility.h:93
virtual void DestroyComponents()
Initializes components used by the utilities.
Definition: VGearsUtility.cpp:58
Definition: FF7NameLookup.h:24