genesis-3d_engine/Engine/Shell/Genesis.h
zhongdaohuan ad5cd7b16a * upate genesis-3d engine to version 1.3.1.
match the genesis editor version 1.3.1.921.
2014-06-19 16:26:14 +08:00

41 lines
855 B
C++

//
// Genesis.h
// GenesisEngineLib
//
// Created by 宋 琦 on 13-9-18.
// Copyright (c) 2013年 webJet. All rights reserved.
//
#ifndef GenesisEngineLib_Genesis_h
#define GenesisEngineLib_Genesis_h
#include <vector>
namespace EngineShell
{
enum InputAciton
{
IA_DOWN = 0,
IA_MOVE,
IA_UP,
IA_CANCEL,
};
struct TouchData
{
float x,y;
int id;
};
typedef std::vector<TouchData> TouchDataVector;
void InitEngine( const int& w, const int& h, const char* path,const char* appWritableDic, const char* scene,bool bUsePrecompileShader );
void Update();
void TouchPoint( const TouchDataVector& touchDatas, const InputAciton& action );
void OnResumed();
void OnStopped();
void UIInsertText(const char* wstr);
void UIDeleteBackward();
}
#endif