We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在只支持竖屏的app中 怎么在眼镜模式中 使用横屏分割界面?
The text was updated successfully, but these errors were encountered:
没试过,提供个思路,MD360Renderer.m中处理了双屏的绘制,把宽度对半分,然后glViewport绘制左边和右边。。你可能需要把高度对半分,然后绘制上和下
MD360Renderer.m
- (void) rendererOnDrawFrame:(EAGLContext*)context width:(int)width height:(int)height{ .... float scale = [GLUtil getScrrenScale]; int widthPx = width * scale; int heightPx = height * scale; int size = [self.mDisplayStrategyManager getVisibleSize]; int itemWidthPx = widthPx * 1.0 / size; for (int i = 0; i < size; i++ ) { if (i >= [self.mDirectors count]) { return; } MD360Director* direcotr = [self.mDirectors objectAtIndex:i]; glViewport(itemWidthPx * i, 0, itemWidthPx, heightPx); // Update Projection [direcotr updateProjection:itemWidthPx height:heightPx]; .... } }
Sorry, something went wrong.
ok,I will make a try. tks
No branches or pull requests
在只支持竖屏的app中 怎么在眼镜模式中 使用横屏分割界面?
The text was updated successfully, but these errors were encountered: