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>
This commit is contained in:
42
GameTools/Zallad3D SceneClass/QShader.cpp
Normal file
42
GameTools/Zallad3D SceneClass/QShader.cpp
Normal file
@@ -0,0 +1,42 @@
|
||||
// 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);
|
||||
}
|
||||
Reference in New Issue
Block a user