Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9235 in orxonox.OLD for trunk/src/world_entities/skydome.cc


Ignore:
Timestamp:
Jul 5, 2006, 4:39:02 PM (19 years ago)
Author:
bensch
Message:

merged the presentation back

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/skydome.cc

    r9006 r9235  
    11/*
    22   orxonox - the future of 3D-vertical-scrollers
    3  
     3
    44   Copyright (C) 2006 orx
    5  
     5
    66   This program is free software; you can redistribute it and/or modify
    77   it under the terms of the GNU General Public License as published by
    88   the Free Software Foundation; either version 2, or (at your option)
    99   any later version.
    10  
     10
    1111### File Specific:
    1212   main-programmer: hdavid, amaechler
     
    4747  this->toList(OM_BACKGROUND);
    4848  this->toReflectionList();
    49  
     49  this->indices = NULL;
     50  this->vertices = NULL;
     51  this->planeVertices = NULL;
     52  this->shader = NULL;
    5053  activateDome = false;
    5154
     
    9194  if(!activateDome)
    9295    return;
    93  
     96
    9497  glPushAttrib(GL_ENABLE_BIT);
    9598
    9699  glDisable(GL_LIGHTING);
    97100  glDisable(GL_BLEND);
     101  glDisable(GL_FOG);
    98102
    99103  glEnable(GL_TEXTURE_3D);
     
    105109  glTranslatef(0.0f,pRadius,0.0f);
    106110
    107 
    108111  glBegin(GL_TRIANGLES);
    109 
    110112  for (int i=0; i < numIndices; i++)
    111113  {
     
    115117    glVertex3f(planeVertices[indices[i]].x, planeVertices[indices[i]].y, planeVertices[indices[i]].z);
    116118  }
    117 
    118119  glEnd();
    119120
     121  WorldEntity::draw();
     122
    120123  glPopMatrix();
    121124
     
    128131void Skydome::generateSkyPlane(int divisions, float planetRadius, float atmosphereRadius, float hTile, float vTile)
    129132{
    130   PRINTF(0)("Generating a sky plane");
     133  PRINTF(0)("Generating a sky plane\n");
    131134
    132135  // Make sure our vertex array is clear
Note: See TracChangeset for help on using the changeset viewer.