Fixing dorm script bugs
This commit is contained in:
1 parent
07f45ad1e1
commit
7dadfd8ed8
6 files changed
+45
-32
No files matched your search
@@ -802,37 +802,6 @@ namespace ZL
|
||||
CheckGlError(__FILE__, __LINE__);
|
||||
}
|
||||
|
||||
/*void Game::drawMobilePortraitOverlay()
|
||||
{
|
||||
if (!mobileRotateTexture) return;
|
||||
|
||||
const float W = Environment::projectionWidth;
|
||||
const float H = Environment::projectionHeight;
|
||||
|
||||
if (W != mobileRotateMeshLastW || H != mobileRotateMeshLastH) {
|
||||
mobileRotateMeshLastW = W;
|
||||
mobileRotateMeshLastH = H;
|
||||
const float minDim = min(W, H);
|
||||
mobileRotateMesh.data = CreateRect2D({ 0.f, 0.f }, { minDim * 0.5f, minDim * 0.5f }, 3.f);
|
||||
mobileRotateMesh.RefreshVBO();
|
||||
}
|
||||
|
||||
renderer.shaderManager.PushShader(defaultShaderName);
|
||||
renderer.RenderUniform1i(textureUniformName, 0);
|
||||
renderer.RenderUniform1f("uAlpha", 1.0f);
|
||||
renderer.PushProjectionMatrix(-W * 0.5f, W * 0.5f, -H * 0.5f, H * 0.5f, -10, 10);
|
||||
renderer.PushMatrix();
|
||||
renderer.LoadIdentity();
|
||||
|
||||
glBindTexture(GL_TEXTURE_2D, mobileRotateTexture->getTexID());
|
||||
renderer.DrawVertexRenderStruct(mobileRotateMesh);
|
||||
|
||||
renderer.PopMatrix();
|
||||
renderer.PopProjectionMatrix();
|
||||
renderer.shaderManager.PopShader();
|
||||
CheckGlError(__FILE__, __LINE__);
|
||||
}*/
|
||||
|
||||
void Game::drawLoading()
|
||||
{
|
||||
glClear(GL_DEPTH_BUFFER_BIT);
|
||||
|
||||
Reference in new issue
Block a user