00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef CYBIMAGETEXTURE_HC
00026 #define CYBIMAGETEXTURE_HC
00027
00028 #include "oaw/ctk/cybtexturec.h"
00029 #include "oaw/misc/stringc.h"
00030 #include "oaw/ctk/cybwrlfields.h"
00031 #include "oaw/misc/urlc.h"
00032 #include "../oawconfig.h"
00033
00034 OAW_BEGIN_NAMESPACE
00035
00036
00037
00038
00039 class OAW_DLLMAPPING CybImageTextureC : public CybTextureC
00040 {
00041 public:
00042 CybImageTextureC(CybWorldC*);
00043 CybImageTextureC(const CybImageTextureC&);
00044 CybImageTextureC& operator = (const CybImageTextureC&);
00045 virtual ~CybImageTextureC();
00046
00047 virtual void SetEvent(long srct, const void* pData, BaseI*);
00048 virtual long GetFieldDataType(long fieldID);
00049 virtual long GetFieldEventID(const char* str);
00050
00051 protected:
00052 virtual void LoadVRML(char*&, const char*,long&);
00053 virtual void CreateNewCopy(CybNodeC* pN);
00054 virtual void FinishInit();
00055
00056 virtual void LoadTexture();
00057
00058 protected:
00059 UrlC m_Url;
00060 SFBool m_bRepeatS, m_bRepeatT;
00061
00062 TEXTURE m_pTexture;
00063
00064 private:
00065 static char VRMLKeyStrList[][30];
00066 };
00067
00068 OAW_END_NAMESPACE
00069
00070
00071 #endif
00072
00073
00074
00075