Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 10, 2005, 7:52:50 PM (18 years ago)
Author:
bensch
Message:

newModel new static_model class added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/newModel/src/lib/graphics/importer/static_model.h

    r6020 r6021  
    11/*!
    2   \file model.h
    3   \brief Contains the Model Class that handles 3D-Models
    4 */
    5 
    6 #ifndef _MODEL_H
    7 #define _MODEL_H
    8 
    9 #include "abstract_model.h"
     2 * @file static_model.h
     3 * @brief Contains the Model Class that handles Static 3D-Models rendered with glList's
     4 */
     5
     6#ifndef _STATIC_MODEL_H
     7#define _STATIC_MODEL_H
     8
     9#include "model.h"
    1010
    1111#include "material.h"
     
    103103/// MODEL ///
    104104/////////////
    105 //! Class that handles 3D-Models. it can also read them in and display them.
    106 class Model : public AbstractModel
    107 {
    108  public:
    109   Model(const char* modelName = NULL, MODEL_TYPE type = MODEL_DISPLAY_LIST);
    110   virtual ~Model();
    111 
    112   void draw() const;
     105//! Class that handles static 3D-Models.
     106/**
     107 * it can also read them in and display them.
     108 * All the objects are rendered with glLists
     109 */
     110class StaticModel : public Model
     111{
     112 public:
     113  StaticModel(const char* modelName = NULL, MODEL_TYPE type = MODEL_DISPLAY_LIST);
     114  virtual ~StaticModel();
     115
     116  virtual void draw() const;
    113117  void draw(int groupNumber) const;
    114118  void draw(char* groupName) const;
     
    188192  tArray<GLfloat>*           normals;         //!< The Array that handles the Normals.
    189193  tArray<GLfloat>*           vTexture;        //!< The Array that handles the VertexTextureCoordinates.
    190   sTriangleExt*              triangles;       //!< The Array of triangles in the abstract_model.h style
     194  sTriangleExt*              triangles;       //!< The Array of triangles in the model.h style
    191195
    192196  ModelGroup*                firstGroup;      //!< The first of all groups.
Note: See TracChangeset for help on using the changeset viewer.