~stellarium/stellarium/trunk

« back to all changes in this revision

Viewing changes to src/nebula.cpp

  • Committer: xalioth
  • Date: 2003-05-28 21:44:07 UTC
  • Revision ID: vcs-imports@canonical.com-20030528214407-62hf94ipa2tdjgz9
Fixed many things : planets, nebula info, navigation, drawing bugs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
    if (nebTexture) delete nebTexture;
38
38
}
39
39
 
 
40
void Nebula::get_info_string(char * s)
 
41
{
 
42
        float tempDE, tempRA;
 
43
        rect_to_sphe(&tempRA,&tempDE,&XYZ);
 
44
        sprintf(s,"Name : %s (NGC %u)\nRA : %s\nDE : %s\nMag : %.2f", Name, NGC, print_angle_hms(tempRA*180./M_PI), print_angle_dms_stel(tempDE*180./M_PI), Mag);
 
45
}
 
46
 
40
47
int Nebula::Read(FILE * catalogue)
41
48
// Lis les infos de la n�buleuse dans le fichier et calcule x,y et z;
42
49
{