Fix: Suppression de certains commentaire
This commit is contained in:
parent
5dc44c22cc
commit
8382f42c1f
@ -628,13 +628,13 @@ bool ApplicationClass::Frame(InputClass* Input)
|
|||||||
|
|
||||||
currentMouseX = mouseX;
|
currentMouseX = mouseX;
|
||||||
|
|
||||||
int deltaX = currentMouseX - lastMouseX; // Calculez le d<>placement de la souris
|
int deltaX = currentMouseX - lastMouseX; // Calculate the mouse movement.
|
||||||
lastMouseX = currentMouseX; // Mettez <20> jour la derni<6E>re position de la souris pour la prochaine image
|
lastMouseX = currentMouseX; // Update the last mouse position for the next frame
|
||||||
|
|
||||||
currentMouseY = mouseY;
|
currentMouseY = mouseY;
|
||||||
|
|
||||||
int deltaY = currentMouseY - lastMouseY; // Calculez le d<>placement de la souris
|
int deltaY = currentMouseY - lastMouseY; // Calculate the mouse movement.
|
||||||
lastMouseY = currentMouseY; // Mettez <20> jour la derni<6E>re position de la souris pour la prochaine image
|
lastMouseY = currentMouseY; // Update the last mouse position for the next frame
|
||||||
|
|
||||||
// Set the frame time for calculating the updated position.
|
// Set the frame time for calculating the updated position.
|
||||||
m_Position->SetFrameTime(m_Timer->GetTime());
|
m_Position->SetFrameTime(m_Timer->GetTime());
|
||||||
@ -710,15 +710,6 @@ bool ApplicationClass::Frame(InputClass* Input)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//// Update the x position variable each frame.
|
|
||||||
//x -= 0.0174532925f * 0.6f;
|
|
||||||
|
|
||||||
//y -= 0.0174532925f * 0.2f;
|
|
||||||
|
|
||||||
//// Update the z position variable each frame.
|
|
||||||
//z -= 0.0174532925f * 0.2f;
|
|
||||||
|
|
||||||
// Render the scene to a render texture.
|
// Render the scene to a render texture.
|
||||||
result = RenderSceneToTexture(rotation);
|
result = RenderSceneToTexture(rotation);
|
||||||
if (!result)
|
if (!result)
|
||||||
@ -745,17 +736,6 @@ bool ApplicationClass::Frame(InputClass* Input)
|
|||||||
textureTranslation -= 1.0f;
|
textureTranslation -= 1.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
/////////////////////////////
|
|
||||||
// C en commentaire pcl kc //
|
|
||||||
/////////////////////////////
|
|
||||||
|
|
||||||
//// Render the graphics scene.
|
|
||||||
//result = Render(rotation, x, y, z, textureTranslation);
|
|
||||||
//if (!result)
|
|
||||||
//{
|
|
||||||
// return false;
|
|
||||||
//}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1162,14 +1142,6 @@ bool ApplicationClass::Render(float rotation, float x, float y, float z, float t
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
//scaleMatrix = XMMatrixScaling(0.75f, 0.75f, 0.75f); // Build the scaling matrix.
|
|
||||||
//rotateMatrix = XMMatrixRotationY(rotation); // Build the rotation matrix.
|
|
||||||
//translateMatrix = XMMatrixTranslation(x, y, z); // Build the translation matrix.
|
|
||||||
|
|
||||||
//// Multiply the scale, rotation, and translation matrices together to create the final world transformation matrix.
|
|
||||||
//srMatrix = XMMatrixMultiply(scaleMatrix, rotateMatrix);
|
|
||||||
//worldMatrix = XMMatrixMultiply(srMatrix, translateMatrix);
|
|
||||||
|
|
||||||
// Render the model using the multitexture shader.
|
// Render the model using the multitexture shader.
|
||||||
m_Model->Render(m_Direct3D->GetDeviceContext());
|
m_Model->Render(m_Direct3D->GetDeviceContext());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user