AR拍照
2017-12-12 18:37:54 0 举报
1111
作者其他创作
大纲/内容
MouseInput:baseWebinput
HttpManager:MonoSingle
//表单提交(message = \"消息体\
摄像机渲染
BackgroundInfo(背景图信息)
public int Id;public Texture2D Img;public string Desc;
PhotoUploadC2S:baseHttpMessage
public byte[] photo;
public PhotoUpload(){ messageid = 10001;}public override string GetURL(){ return HttpAddr.PHOTOUPLOAD;}public override WWWFrom GetFrom(){}
交互
LoginC2S:baseHttpMessage
public string account; //账号密码要md5 public string passworld;
public PhotoUpload(){ messageid = 10002;}public override string GetURL(){ return HttpAddr.PHOTOUPLOAD;}public override WWWFrom GetFrom(){}
短连接
PhotoUploadS2C:baseHttpMessage
public string url;
baseHttpMessage
public int messageid;
public virtual WWWFrom GetFrom(){}public virtual string GetUrl();
TUIOInput:baseWebinput
TUIOListenerMultiTouch listener;
public override void Init()public override void Tick()public override void Release()
baseCmdMessage
private int code ;
CommandAttribute(消息特性)
public int Code {get {return this}} ;private desc;private Type C2SClass;private Type S2CClass;private isAutioRedQuset;
InteractionManager:MonoSingle
[Header(\"是否鼠标输入\")] public bool IsMouseInput; [Header(\"是否雷达输入\")] public bool IsTUIOInput; [Header(\"是否体感输入\")] public bool IsKinectInput; private MosueInput mouseInput; private TUIOInput tuioInput; private KinectInput kinectInput;
NetworkManager:MonoSingle
public void SendMessgae()
Command
baseWebinput(外部输入)
public virtual void Init()public virtual void Tick()public virtual void Release()public void OnPressAddlistener(Action callback)public void OnPressRmovelistener(Action callback)
Package
public Byte[] Pack();public void Unpack();
LoginS2C:baseHttpMessage
public string token; //
背景图管理,加载与获取列表(文件流)
KinectInput:baseWebinput
public void OnHandHoverAddlistener(Action callback)public void HandSeizeAddListener(Action callback)public void OnHandHoverRemovelistener(Action callback)public void HandSeizeRemoveListener(Action callback)
WebCameraReneder:Monobehaveior
public MeshRenderer OutRenderer;private WebCamTexture camTexture;
public Texture2D Photograph()
BackgrodundManager:MonoSingle
private List backgroundMap;private string loadpath;
public void LoadAllBackground();public Texture2D GetTexture(int id);public List BackgroundList;public ClearAll();
0 条评论
下一页