Initial commit: client source

This commit is contained in:
Andreas Lierschaft
2026-08-17 20:03:02 +02:00
commit 9ae37cd0ea
869 changed files with 227899 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
#pragma once
#include "Ref.h"
#include "Resource.h"
#include "../eterImageLib/TGAImage.h"
class CTargaResource : public CResource
{
public:
typedef CRef<CTargaResource> TRef;
public:
static TType Type();
public:
CTargaResource(const char * c_pszFileName);
virtual ~CTargaResource();
DWORD * GetMemPtr();
void GetRect(DWORD & w, DWORD & h);
TGA_HEADER & GetTgaHeader();
protected:
virtual bool OnLoad(int iSize, const void * c_pvBuf);
virtual void OnClear();
virtual bool OnIsEmpty() const;
virtual bool OnIsType(TType type);
protected:
CTGAImage image;
};