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:
38
GameTools/ZALLA3D BASECLASS/Sphere.h
Normal file
38
GameTools/ZALLA3D BASECLASS/Sphere.h
Normal file
@@ -0,0 +1,38 @@
|
||||
|
||||
#ifndef _Sphere_H_
|
||||
#define _Sphere_H_
|
||||
|
||||
struct IDirect3DVertexBuffer8;
|
||||
struct IDirect3DDevice8;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
|
||||
class CSphere
|
||||
{
|
||||
IDirect3DDevice8 * m_pd3dDevice;
|
||||
IDirect3DVertexBuffer8 * m_pVB;
|
||||
unsigned m_uiRings, m_uiSegments; //<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>, <20>浵<EFBFBD><E6B5B5> <20><><EFBFBD><EFBFBD>
|
||||
|
||||
float m_fRed, m_fGreen, m_fBlue;
|
||||
unsigned m_uiSphereVertices;
|
||||
unsigned char m_ucTransparency;
|
||||
public:
|
||||
CSphere();
|
||||
~CSphere();
|
||||
|
||||
void Create( IDirect3DDevice8 *, unsigned rings, unsigned segments );
|
||||
void Destroy();
|
||||
|
||||
void SetPosition( float x, float y, float z );
|
||||
void SetTransparency( unsigned char t ) { m_ucTransparency = t; }
|
||||
void SetRadius( float radius ) { m_fRadius = radius; }
|
||||
void SetColor( float r, float g, float b );
|
||||
void Render();
|
||||
float m_fPosX, m_fPosY, m_fPosZ, m_fRadius;
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user