Skip to content
New issue

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

相机界面旋转90度 #51

Open
steven2947 opened this issue Mar 13, 2019 · 1 comment
Open

相机界面旋转90度 #51

steven2947 opened this issue Mar 13, 2019 · 1 comment

Comments

@steven2947
Copy link

由于我的设备是广告机,后置摄像头在前面,使用了后置摄像头设置打开相机,界面就旋转90度,尝试设置过里面相机的角度都没有效果,请问怎样解决?

@huotiandayou
Copy link

在CameraMatrix 类中,添加一个 一个坐标系
static float textureVertices2[] = { 0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f,
1.0f, 0.0f, };
在draw( )方法中,替换成
textureVerticesBuffer.put(transformTextureCoordinates(textureVertices2,
mtx));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants