Main Page | Class Hierarchy | Class List | File List | Class Members

TDropLayer.h

00001 // TDropLayer.h: Schnittstelle für die Klasse TDropLayer.
00002 //
00004 
00005 #if !defined(AFX_TDROPLAYER_H__D29A5A41_FD0C_483B_B182_28AD6F67C815__INCLUDED_)
00006 #define AFX_TDROPLAYER_H__D29A5A41_FD0C_483B_B182_28AD6F67C815__INCLUDED_
00007 
00008 #if _MSC_VER > 1000
00009 #pragma once
00010 #endif // _MSC_VER > 1000
00011 
00012 #include "TFlowModel.h"
00013 #include <qgl.h>
00014 #include <memory.h>
00015 
00016 
00017 #define DROP_TEX_RES 256
00018 #define DROP_TEX_ID 13
00019 
00020 
00021 class TDropLayer  
00022 {
00023 private:
00024 
00025         TFlowModel* flowMod;
00026         GLubyte* aktTexture;
00027         TKoo3d<float>* directField;
00028 public:
00029         void calcNewAktTex();
00030         void setTexPixel(int x, int y,GLubyte r, GLubyte g, GLubyte b);
00031         TKoo3d<int> getTexPos(TKoo3d<float>& pos);
00032         int getIndexFromPos(float x, float y);
00033         int getIndexFromPos(int x, int y);
00034         TDropLayer(TFlowModel* fm);
00035         void draw();
00036         void makeDrop(TKoo3d<float> pos,int size, GLubyte r, GLubyte g, GLubyte b);
00037         virtual ~TDropLayer();
00038 
00039 };
00040 
00041 #endif // !defined(AFX_TDROPLAYER_H__D29A5A41_FD0C_483B_B182_28AD6F67C815__INCLUDED_)

Generated on Mon Jan 19 02:06:39 2004 for flowvis by doxygen 1.3.5