home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 58 / pcpp58a.iso / extras / quake 3 source / Q3A_ToolSource.exe / Main / ShaderInfo.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-02  |  1015 b   |  49 lines

  1. // ShaderInfo.cpp: implementation of the CShaderInfo class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4.  
  5. #include "stdafx.h"
  6. #include "Radiant.h"
  7. #include "ShaderInfo.h"
  8.  
  9. #ifdef _DEBUG
  10. #undef THIS_FILE
  11. static char THIS_FILE[]=__FILE__;
  12. #define new DEBUG_NEW
  13. #endif
  14.  
  15. //////////////////////////////////////////////////////////////////////
  16. // Construction/Destruction
  17. //////////////////////////////////////////////////////////////////////
  18.  
  19. CShaderInfo::CShaderInfo()
  20. {
  21.   m_fTransValue = 1.0;
  22.   m_nFlags = 0;
  23.   m_pQTexture = NULL;
  24. }
  25.  
  26. CShaderInfo::~CShaderInfo()
  27. {
  28.  
  29. }
  30.  
  31. void CShaderInfo::Parse(const char *pName)
  32. {
  33.  
  34. }
  35.  
  36. void CShaderInfo::setName(char *pName)
  37. {
  38.   //--char path[1024];
  39.   //--strcpy(path, pName);
  40.   //--DefaultExtension(path, ".tga");
  41.   m_strName = pName;
  42.   m_strName.MakeLower();
  43.   if (m_strName.Find("textures") == 0)
  44.   {
  45.     CString s = m_strName.Right(m_strName.GetLength() - strlen("textures") - 1);
  46.     m_strName = s;
  47.   }
  48. }
  49.