* Less violation of encapsulation: use private instead of protected (since we don't need access to these members anyway; plus we don't inherit from these classes ATM)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2190 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
c6190a85f2
commit
06afa3c7a0
|
@ -295,7 +295,7 @@ struct TextureList {
|
|||
|
||||
|
||||
class CTexture {
|
||||
protected:
|
||||
private:
|
||||
IDDSURFACE *m_MemorySurface; // system memory surface
|
||||
IDDSURFACE *m_DeviceSurface; // video memory texture
|
||||
IDDPALETTE *m_Palette;
|
||||
|
@ -338,7 +338,7 @@ class CTexture {
|
|||
|
||||
|
||||
class CSurface {
|
||||
protected:
|
||||
private:
|
||||
IDDSURFACE *m_Surface;
|
||||
SURFACEDESC m_ddsd;
|
||||
PALETTEENTRY *m_PaletteEntries;
|
||||
|
@ -371,7 +371,7 @@ class CSurface {
|
|||
|
||||
|
||||
class CMaterial {
|
||||
protected:
|
||||
private:
|
||||
D3DMATERIALHANDLE m_Handle;
|
||||
ID3DMATERIAL *m_Material;
|
||||
|
||||
|
@ -398,7 +398,7 @@ class CMaterial {
|
|||
// creation.
|
||||
//
|
||||
class CDirectDraw {
|
||||
protected:
|
||||
private:
|
||||
HWND m_hWnd;
|
||||
DWORD m_WindowsBPP;
|
||||
DWORD m_WindowsXRes;
|
||||
|
@ -592,7 +592,7 @@ class CDirectDraw {
|
|||
void GetRes(DWORD *XRes,DWORD *YRes) { *XRes = m_ScreenSize.cx; *YRes = m_ScreenSize.cy; }
|
||||
void GetDisplayPixelFormat(PixFormatExt &PixFormat) { PixFormat = m_PixFormat; }
|
||||
|
||||
protected:
|
||||
private:
|
||||
BOOL GetWindowsMode(void);
|
||||
BOOL GetDisplayFormat(void);
|
||||
BOOL RestoreWindowsMode(void);
|
||||
|
@ -624,7 +624,7 @@ struct MaterialData {
|
|||
|
||||
|
||||
class CMatManager {
|
||||
protected:
|
||||
private:
|
||||
CDirectDraw *m_DirectDraw;
|
||||
DWORD m_NumMats;
|
||||
MaterialData m_Materials[MAX_MATERIALS];
|
||||
|
|
Loading…
Reference in New Issue