Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3706 in orxonox.OLD for orxonox/branches/shadows/src/shadow.h


Ignore:
Timestamp:
Mar 31, 2005, 11:29:47 PM (19 years ago)
Author:
dave
Message:

branches/shadows: Ok, das Abbild vom Raumschiff funktioniert schon mal, sieht recht cool aus:)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/shadows/src/shadow.h

    r3680 r3706  
    1919
    2020#include "importer/material.h"
    21 #include "importer/model.h"
     21#include "importer/objModel.h"
    2222#include "p_node.h"
    2323#include "world_entity.h"
     24#include "player.h"
    2425
    2526//! A Class to handle the Shadow
     
    2930        int player_id,ground_id; //These are for the glLists!
    3031        int shadow_id;  //this is for the empty shadow texture
    31         int lightPos[3];
     32        float lightPos[3];
     33        float playerPos[3];
     34
    3235       
    3336        unsigned char *image;
    34         Model* player;
     37        OBJModel* player;
     38        //playerangle used to obtain information about the angle of the player
     39        Player* playerangle;
    3540       
    3641        void blur(unsigned char *in,int size);
     
    4045   
    4146    public:
    42         Shadow(Model* player,float* groundVertexes);
     47        Shadow(OBJModel* player,Player* playerangle,float groundVertexes[]);
    4348        ~Shadow();
    4449        void init();
    4550        void draw();
     51        void updatePosition(float x,float y,float z);
    4652
    4753
Note: See TracChangeset for help on using the changeset viewer.