Files
Client/GameTools/Zallad3D SceneClass/QShader.cpp
LGram16 dd97ddec92 Restructure repository to include all source folders
Move git root from Client/ to src/ to track all source code:
- Client: Game client source (moved to Client/Client/)
- Server: Game server source
- GameTools: Development tools
- CryptoSource: Encryption utilities
- database: Database scripts
- Script: Game scripts
- rylCoder_16.02.2008_src: Legacy coder tools
- GMFont, Game: Additional resources

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 20:17:20 +09:00

43 lines
953 B
C++

// QShader.cpp: implementation of the CQShader class.
//
//////////////////////////////////////////////////////////////////////
#include "QShader.h"
#include "BaseDataDefine.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CQShader::CQShader()
{
m_pTexture=NULL;
}
CQShader::~CQShader()
{
}
void CQShader::LoadTexture()
{
m_pTexture=new CTexture();
m_pTexture->SetPath(BSPTEXTUREPATH);
int cLens=strlen(m_strTextureName);
if( m_strTextureName[cLens-4]=='.'&&
m_strTextureName[cLens-3]=='d'&&
m_strTextureName[cLens-2]=='d'&&
m_strTextureName[cLens-1]=='s')
{
//char *pDest=strrchr(m_strTextureName,'/');
//pDest++;
m_pTexture->Load(m_strTextureName);
return;
}
strcat(m_strTextureName,".dds");
//char *pDest=strrchr(m_strTextureName,'/');
//pDest++;
m_pTexture->Load(m_strTextureName);
}