diff options
author | Programerus <alcadeias95@gmail.com> | 2012-03-17 19:31:48 +0100 |
---|---|---|
committer | Programerus <alcadeias95@gmail.com> | 2012-03-17 19:31:48 +0100 |
commit | 1e11b76874548de1ff264ea0c260d9427f19cc75 (patch) | |
tree | 28a154d662bb26ce87ac89b5a4cd69e93fde6240 | |
parent | 5433c7e6f3e008c34876c5dc29776232a3341afd (diff) | |
download | colobot-1e11b76874548de1ff264ea0c260d9427f19cc75.tar.gz colobot-1e11b76874548de1ff264ea0c260d9427f19cc75.tar.bz2 colobot-1e11b76874548de1ff264ea0c260d9427f19cc75.zip |
Comments translated from French to English.
-rw-r--r-- | src/compass.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/compass.cpp b/src/compass.cpp index e860c08..063c020 100644 --- a/src/compass.cpp +++ b/src/compass.cpp @@ -32,7 +32,7 @@ -// Constructeur de l'objet.
+// Object's constructor.
CCompass::CCompass(CInstanceManager* iMan) : CControl(iMan)
{
@@ -41,7 +41,7 @@ CCompass::CCompass(CInstanceManager* iMan) : CControl(iMan) m_dir = 0.0f;
}
-// Destructeur de l'objet.
+// Object's destructor.
CCompass::~CCompass()
{
@@ -49,7 +49,7 @@ CCompass::~CCompass() }
-// Cr�e un nouveau bouton.
+// Creates a new button.
BOOL CCompass::Create(FPOINT pos, FPOINT dim, int icon, EventMsg eventMsg)
{
@@ -60,7 +60,7 @@ BOOL CCompass::Create(FPOINT pos, FPOINT dim, int icon, EventMsg eventMsg) }
-// Gestion d'un �v�nement.
+// Management of an event.
BOOL CCompass::EventProcess(const Event &event)
{
@@ -81,7 +81,7 @@ BOOL CCompass::EventProcess(const Event &event) }
-// Dessine le bouton.
+// Draw button.
void CCompass::Draw()
{
@@ -104,7 +104,7 @@ void CCompass::Draw() p2.y = m_pos.y + m_dim.y;
c.x = (p1.x+p2.x)/2.0f;
- c.y = (p1.y+p2.y)/2.0f; // centre
+ c.y = (p1.y+p2.y)/2.0f; // center
uv1.x = 64.0f/256.0f;
uv1.y = 32.0f/256.0f;
@@ -117,7 +117,7 @@ void CCompass::Draw() uv2.x -= dp;
uv2.y -= dp;
- n = D3DVECTOR(0.0f, 0.0f, -1.0f); // normale
+ n = D3DVECTOR(0.0f, 0.0f, -1.0f); // normal
vertex[0] = D3DVERTEX2(D3DVECTOR(p1.x, p1.y, 0.0f), n, uv1.x,uv2.y);
vertex[1] = D3DVERTEX2(D3DVECTOR(p1.x, p2.y, 0.0f), n, uv1.x,uv1.y);
@@ -164,7 +164,7 @@ void CCompass::Draw() }
-// Gestion des directions de la boussole.
+// Management directions of the compass.
void CCompass::SetDirection(float dir)
{
|