Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6273 in orxonox.OLD for branches/network/src/world_entities/skybox.h


Ignore:
Timestamp:
Dec 23, 2005, 5:30:22 PM (18 years ago)
Author:
rennerc
Message:

converter: added functions for strings
network_protocol: length and id are now int
network_game_manager: fixed some more bugs :D
skybox: is loaded on client corectly now :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/world_entities/skybox.h

    r5511 r6273  
    3535  void setSize(float size);
    3636  /** assumes jpg as input-format */
    37   void setTexture(const char* name) { this->setTextureAndType (name, "jpg"); };
     37  void setTexture(const char* name) { strncpy(textureName, name, 1024); this->setTextureAndType (name, "jpg"); };
    3838
    3939  void setTextureAndType(const char* name, const char* extension);
     
    4141                   const char* right, const char* front, const char* back);
    4242
     43  virtual void      writeBytes(const byte* data, int length, int sender);
     44  virtual int       readBytes(byte* data, int maxLength, int * reciever);
     45  virtual void      writeDebug() const;
     46  virtual void      readDebug() const;
     47
    4348 private:
    4449  void rebuild();
    4550
    46   Material**      material;        //!< Materials for the SkyBox. sorted by number (0-5) top, bottom, left, right, front, back
    47   float           size;            //!< Size of the SkyBox. This should match the frustum maximum range.
     51  Material**      material;          //!< Materials for the SkyBox. sorted by number (0-5) top, bottom, left, right, front, back
     52  float           size;              //!< Size of the SkyBox. This should match the frustum maximum range.
     53  char            textureName[1024]; //!< Name of the Texture
    4854
    4955};
Note: See TracChangeset for help on using the changeset viewer.