genesis-3d_engine/Engine/Shell/Genesis.h
zhongdaohuan 6e8fbca745 genesis-3d engine version 1.3.
match the genesis editor version 1.3.0.653.
2014-05-05 14:50:33 +08:00

40 lines
786 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();
}
#endif