removing Halibut Engine
This commit is contained in:
1 parent
cda8e18889
commit
448b2dd6d9
9 files changed
-1241
No files matched your search
@@ -2,20 +2,6 @@
|
||||
#define ENGINE_H_INCLUDED
|
||||
|
||||
|
||||
|
||||
#ifdef TARGET_HALIBUT
|
||||
#ifdef TARGET_WIN32
|
||||
#define HALIBUT_WIN32
|
||||
#endif
|
||||
|
||||
#ifdef TARGET_ANDROID
|
||||
#define HALIBUT_ANDROID
|
||||
#endif
|
||||
#ifdef TARGET_IOS
|
||||
#define HALIBUT_IOS
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef TARGET_SALMON
|
||||
#ifdef TARGET_WIN32
|
||||
#define SALMON_WIN32
|
||||
@@ -34,24 +20,12 @@
|
||||
#include "SalmonEngineWindows.h"
|
||||
#endif
|
||||
|
||||
#ifdef HALIBUT_WIN32
|
||||
#include "HalibutEngineWindows.h"
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef SALMON_ANDROID
|
||||
#include "SalmonEngineAndroid.h"
|
||||
#endif
|
||||
#ifdef HALIBUT_ANDROID
|
||||
#include "HalibutEngineAndroid.h"
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef SALMON_IOS
|
||||
#include "include/SalmonEngineIos.h"
|
||||
#endif
|
||||
#ifdef HALIBUT_IOS
|
||||
#include "include/HalibutEngineIos.h"
|
||||
#endif
|
||||
|
||||
#endif //ENGINE_H_INCLUDED
|
||||
@@ -1,48 +0,0 @@
|
||||
#ifndef HALIBUT_ENGINE_ANDROID_H_INCLUDED
|
||||
#define HALIBUT_ENGINE_ANDROID_H_INCLUDED
|
||||
|
||||
|
||||
#include "include/Utils/Utils.h"
|
||||
#include "include/Utils/Console/console.h"
|
||||
|
||||
#include "include/Render/HalibutRender/HalibutRenderAndroid.h"
|
||||
|
||||
#include "include/HalibutEngineInterface.h"
|
||||
//Android code only
|
||||
|
||||
|
||||
namespace SE
|
||||
{
|
||||
|
||||
extern TJavaConsole* Console;
|
||||
|
||||
extern THalibutResourceManager* ResourceManager;
|
||||
|
||||
extern THalibutRendererAndroid* Renderer;
|
||||
|
||||
class TApplication : public TApplicationAncestor
|
||||
{
|
||||
protected:
|
||||
public:
|
||||
TApplication();
|
||||
|
||||
virtual ~TApplication();
|
||||
|
||||
virtual void OuterInit(int screenWidth, int screenHeight, float matrixWidth, float matrixHeight);
|
||||
|
||||
virtual void OuterDeinit();
|
||||
|
||||
virtual void OnKeyPress(cardinal key);
|
||||
|
||||
};
|
||||
|
||||
|
||||
} //namespace SE
|
||||
|
||||
//This file includes templates that call any of three singletones: Console, ResourceManager or Renderer
|
||||
|
||||
#include "include/GUIManager/WidgetTemplatesImpl.h"
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
@@ -1,104 +0,0 @@
|
||||
#ifndef HALIBUT_ENGINE_INTERFACE_H_INCLUDED
|
||||
#define HALIBUT_ENGINE_INTERFACE_H_INCLUDED
|
||||
|
||||
#include "include/ApplicationInterface.h"
|
||||
|
||||
#include "include/TextureManager/SalmonTexture.h"
|
||||
#include "include/ShaderManager/ShaderManager.h"
|
||||
#include "include/ScriptManager/ScriptManager.h"
|
||||
#include "include/GUIManager/GUIManager.h"
|
||||
#include "include/FrameManager/FrameManager.h"
|
||||
#include "include/FontManager/FontManager.h"
|
||||
#include "include/HalibutAnimation/HalibutAnimation.h"
|
||||
#include "include/SmartValueManager/SmartValueManager.h"
|
||||
|
||||
|
||||
|
||||
#ifdef TARGET_WIN32
|
||||
#include "include/SoundManager/SoundManagerWindows.h"
|
||||
#endif
|
||||
#ifdef TARGET_ANDROID
|
||||
#include "include/SoundManager/SoundManagerAndroid.h"
|
||||
#endif
|
||||
#ifdef TARGET_IOS
|
||||
#include "include/SoundManager/SoundManagerIos.h"
|
||||
#endif
|
||||
|
||||
namespace SE
|
||||
{
|
||||
|
||||
//Windows only
|
||||
struct TMouseState
|
||||
{
|
||||
int X;
|
||||
int Y;
|
||||
bool LeftButtonPressed;
|
||||
bool MiddleButtonPressed;
|
||||
bool RightButtonPressed;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
class THalibutResourceManager
|
||||
{
|
||||
public:
|
||||
std::string PathToResources;
|
||||
|
||||
TTextureListClass TexList;
|
||||
TShaderManager ShaderManager;
|
||||
TScriptManager ScriptManager;
|
||||
TGUIManager GUIManager;
|
||||
TFrameManager FrameManager;
|
||||
TFontManager FontManager;
|
||||
THalibutAnimationManager HalibutAnimationManager;
|
||||
TSmartValueManager SmartValueManager;
|
||||
|
||||
#ifdef TARGET_WIN32
|
||||
TSoundManagerWindows SoundManager;
|
||||
#endif
|
||||
#ifdef TARGET_ANDROID
|
||||
TSoundManagerAndroid SoundManager;
|
||||
#endif
|
||||
#ifdef TARGET_IOS
|
||||
TSoundManagerIos SoundManager;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
class TApplicationAncestor : public TApplicationInterface
|
||||
{
|
||||
protected:
|
||||
|
||||
public:
|
||||
|
||||
TApplicationAncestor();
|
||||
|
||||
//If you override them, call ancestor:
|
||||
virtual void OuterDraw();
|
||||
virtual void OuterUpdate(cardinal dt);
|
||||
|
||||
|
||||
virtual void OuterOnTapDown(vec2 p);
|
||||
virtual void OuterOnTapUp(vec2 p);
|
||||
virtual void OuterOnMove(vec2 shift);
|
||||
|
||||
virtual void InnerOnTapDown(vec2 p) { }
|
||||
|
||||
virtual void InnerOnTapUp(vec2 p) { }
|
||||
|
||||
virtual void InnerOnMove(vec2 shift) { }
|
||||
|
||||
virtual void OnFling(vec2 v) { } //Android only
|
||||
|
||||
virtual void OnMouseMove(TMouseState& mouseState) { } //Windows only
|
||||
|
||||
virtual void OnMouseWheel(short int delta) { } //Windows only
|
||||
|
||||
virtual void OnKeyPress(cardinal key) { } //Try not to override this. But if you need to override, call ancestor!
|
||||
|
||||
};
|
||||
|
||||
} //namespace SE
|
||||
|
||||
#endif
|
||||
@@ -1,52 +0,0 @@
|
||||
//
|
||||
// HalibutEngineIos.h
|
||||
// Halibut Engine
|
||||
//
|
||||
// Created by vvv ооо on 13.07.12.
|
||||
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
|
||||
//
|
||||
|
||||
#ifndef HALIBUT_ENGINE_IOS_H_INCLUDED
|
||||
#define HALIBUT_ENGINE_IOS_H_INCLUDED
|
||||
|
||||
#include "include/HalibutEngineInterface.h"
|
||||
|
||||
#include "include/Render/HalibutRender/HalibutRenderIos.h"
|
||||
|
||||
#include "include/Utils/Utils.h"
|
||||
|
||||
namespace SE
|
||||
{
|
||||
|
||||
extern TIosConsole* Console;
|
||||
|
||||
extern THalibutResourceManager* ResourceManager;
|
||||
|
||||
extern THalibutRenderIos* Renderer;
|
||||
|
||||
class TApplication : public TApplicationAncestor
|
||||
{
|
||||
public:
|
||||
TApplication();
|
||||
|
||||
virtual ~TApplication();
|
||||
|
||||
virtual void OuterInit(int screenWidth, int screenHeight, float matrixWidth, float matrixHeight);
|
||||
|
||||
virtual void OuterDeinit();
|
||||
|
||||
virtual void OnKeyPress(cardinal key);
|
||||
};
|
||||
|
||||
|
||||
|
||||
} //namespace SE
|
||||
|
||||
|
||||
//This file includes templates that call any of three singletones: Console, ResourceManager or Renderer
|
||||
|
||||
#include "include/GUIManager/WidgetTemplatesImpl.h"
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
@@ -1,63 +0,0 @@
|
||||
#pragma once //Windows ok
|
||||
|
||||
|
||||
#include "include/Render/HalibutRender/HalibutRenderWindows.h"
|
||||
|
||||
#include "include/HalibutEngineInterface.h"
|
||||
|
||||
namespace SE
|
||||
{
|
||||
|
||||
//==============================================================
|
||||
//========= GLOBAL VARIABLES - REMEMBER THIS LIST!!! ===========
|
||||
//==============================================================
|
||||
|
||||
extern HGLRC hRC; //Render context
|
||||
extern HWND Hwnd; //Main window handle
|
||||
extern HDC hDC; //Device context
|
||||
|
||||
extern TFileConsole* Console;
|
||||
//Console and log for output
|
||||
|
||||
extern THalibutRenderer* Renderer;
|
||||
//OpenGL renderer
|
||||
|
||||
extern THalibutResourceManager* ResourceManager;
|
||||
//Resource Manager
|
||||
|
||||
|
||||
|
||||
class TApplication : public TApplicationAncestor
|
||||
{
|
||||
protected:
|
||||
std::string LogFilename; //Log file name
|
||||
unsigned char KeyboardBuffer[256];
|
||||
public:
|
||||
int X, Y, Width, Height; //Window position and size
|
||||
float MatrixWidth, MatrixHeight;
|
||||
|
||||
std::string WindowName; //Window name
|
||||
|
||||
TApplication();
|
||||
virtual ~TApplication();
|
||||
|
||||
const std::string& GetLogFilename();
|
||||
|
||||
char GetKeyState(cardinal keyNum);
|
||||
|
||||
void SetKeyboardBuffer(const unsigned char* source);
|
||||
|
||||
virtual void OnKeyPress(cardinal key); // If you override this, call ancestor!
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
int MainLoop(TApplication& application);
|
||||
|
||||
} //namespace SE
|
||||
|
||||
//This file includes templates that call any of three singletones: Console, ResourceManager or Renderer
|
||||
|
||||
#include "include/GUIManager/WidgetTemplatesImpl.h"
|
||||
|
||||
Reference in new issue
Block a user