代码拉取完成,页面将自动刷新
#ifndef ATG_ENGINE_SIM_ENGINE_VIEW_H
#define ATG_ENGINE_SIM_ENGINE_VIEW_H
#include "ui_element.h"
class EngineView : public UiElement {
public:
EngineView();
virtual ~EngineView();
virtual void update(float dt);
virtual void render();
virtual void onMouseDown(const Point &mouseLocal);
virtual void onDrag(const Point &p0, const Point &mouse0, const Point &mouse);
virtual void onMouseScroll(int scroll);
void setDrawFrame(bool drawFrame) { m_drawFrame = drawFrame; }
void setBounds(const Bounds &bounds);
Point getCenter() const;
Point getCameraPosition() const;
float m_zoom;
protected:
Point m_pan;
Point m_dragStart;
int m_lastScroll;
bool m_drawFrame;
};
#endif /* ATG_ENGINE_SIM_ENGINE_VIEW_H */
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。