修正鼠标事件延迟问题.不再把旋转相机事件纳入事件队列
This commit is contained in:
parent
5a9727957a
commit
4e51d0bef9
@ -92,7 +92,7 @@ void RenderThread::renderLoop() {
|
||||
initFontMgr();
|
||||
eglSubCore=new EGLSubCore();
|
||||
eglSubCore->InitEGLSubCore(thrInfo.eglCore->GetEGLDisplay(), thrInfo.eglCore->GetEGLConfig(), thrInfo.win);
|
||||
Render* render=new Render(thrInfo.width,thrInfo.height);
|
||||
render=new Render(thrInfo.width,thrInfo.height);
|
||||
if (render->init(thrInfo.eglCore->GetEGLDisplay(),eglSubCore->eglCtx,thrInfo.eglCore->GetEGLConfig())) {
|
||||
OH_LOG_Print(LOG_APP, LOG_ERROR, LOG_PRINT_DOMAIN, "NativeRenderInit ","Render Init Done");
|
||||
}else{
|
||||
@ -178,11 +178,7 @@ void RenderThread::loadModel(const std::string& filePath) {
|
||||
|
||||
void RenderThread::setRotation(float xAngle, float yAngle) {
|
||||
std::lock_guard<std::mutex> lock(commandMutex_);
|
||||
RenderCommand cmd(CMD_SET_ROTATION);
|
||||
cmd.param2 = xAngle;
|
||||
cmd.param3 = yAngle;
|
||||
commandQueue_.push(cmd);
|
||||
commandCondition_.notify_one();
|
||||
render->setRotation(xAngle,yAngle);
|
||||
}
|
||||
|
||||
void RenderThread::setTranslation(float x, float y) {
|
||||
|
||||
@ -78,7 +78,6 @@ private:
|
||||
};
|
||||
|
||||
std::queue<RenderCommand> commandQueue_;
|
||||
|
||||
std::mutex callbackMutex_;
|
||||
Callback renderCompleteCallback_;
|
||||
Handle(Font_FontMgr) ftMgr ;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user