From 2dd7ece79929ef5397d6a73f2cea4a48a1e170b0 Mon Sep 17 00:00:00 2001 From: Programerus Date: Sat, 17 Mar 2012 16:23:21 +0100 Subject: Comments translated from French to English. --- src/cloud.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'src/cloud.cpp') diff --git a/src/cloud.cpp b/src/cloud.cpp index 592f13f..460d8a7 100644 --- a/src/cloud.cpp +++ b/src/cloud.cpp @@ -34,11 +34,11 @@ -#define DIMEXPAND 4 // extension des dimensions +#define DIMEXPAND 4 // extension of the dimensions -// Constructeur des nuages. +// Constructor of clouds. CCloud::CCloud(CInstanceManager* iMan, CD3DEngine* engine) { @@ -55,7 +55,7 @@ CCloud::CCloud(CInstanceManager* iMan, CD3DEngine* engine) m_bEnable = TRUE; } -// Destructeur des nuages. +// Destructor of clouds. CCloud::~CCloud() { @@ -72,7 +72,7 @@ BOOL CCloud::EventProcess(const Event &event) return TRUE; } -// Fait �voluer les nuages. +// Makes the clouds evolve. BOOL CCloud::EventFrame(const Event &event) { @@ -89,8 +89,8 @@ BOOL CCloud::EventFrame(const Event &event) } -// Ajuste la position et la normale, pour imiter des nuages -// en mouvement. +// Adjusts the position to normal, to imitate the clouds +// at movement. void CCloud::AdjustLevel(D3DVECTOR &pos, D3DVECTOR &eye, float deep, FPOINT &uv1, FPOINT &uv2) @@ -115,7 +115,7 @@ inline DWORD F2DW( FLOAT f ) return *((DWORD*)&f); } -// Dessine les nuages. +// Draw the clouds. void CCloud::Draw() { @@ -139,7 +139,7 @@ void CCloud::Draw() deep = (m_brick*m_size)/2.0f; m_engine->SetDeepView(deep); m_engine->SetFocus(m_engine->RetFocus()); - m_engine->UpdateMatProj(); // augmente la profondeur de vue + m_engine->UpdateMatProj(); // increases the depth of view //? fogStart = deep*0.10f; //? fogEnd = deep*0.16f; @@ -177,7 +177,7 @@ void CCloud::Draw() eye = m_engine->RetEyePt(); n = D3DVECTOR(0.0f, -1.0f, 0.0f); - // Dessine toutes les lignes. + // Draws all the lines. for ( i=0 ; iSetDeepView(iDeep); m_engine->SetFocus(m_engine->RetFocus()); - m_engine->UpdateMatProj(); // remet profondeur de vue initiale + m_engine->UpdateMatProj(); // gives depth to initial free(vertex); } -// Met � jour les positions par-rapport au terrain. +// Updates the positions, relative to the ground. BOOL CCloud::CreateLine(int x, int y, int len) { @@ -247,7 +247,7 @@ BOOL CCloud::CreateLine(int x, int y, int len) return ( m_lineUsed < MAXCLOUDLINE ); } -// Cr�e toutes les �tendues de nuages. +// Creates all areas of cloud. BOOL CCloud::Create(const char *filename, D3DCOLORVALUE diffuse, D3DCOLORVALUE ambient, @@ -291,7 +291,7 @@ BOOL CCloud::Create(const char *filename, return TRUE; } -// Supprime tous les nuages. +// Removes all the clouds. void CCloud::Flush() { @@ -299,7 +299,7 @@ void CCloud::Flush() } -// Modifie le niveau des nuages. +// Modifies the cloud level. BOOL CCloud::SetLevel(float level) { @@ -309,7 +309,7 @@ BOOL CCloud::SetLevel(float level) m_level); } -// Retourne le niveau actuel des nuages. +// Returns the current level of clouds. float CCloud::RetLevel() { @@ -317,7 +317,7 @@ float CCloud::RetLevel() } -// Gestion de l'activation des nuages. +// Activate management of clouds. void CCloud::SetEnable(BOOL bEnable) { -- cgit v1.2.3-1-g7c22