Files
Client/Engine/Zalla3D Base Class/Sphere.h
LGram16 e067522598 Initial commit: ROW Client source code
Game client codebase including:
- CharacterActionControl: Character and creature management
- GlobalScript: Network, items, skills, quests, utilities
- RYLClient: Main client application with GUI and event handlers
- Engine: 3D rendering engine (RYLGL)
- MemoryManager: Custom memory allocation
- Library: Third-party dependencies (DirectX, boost, etc.)
- Tools: Development utilities

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 16:24:34 +09:00

41 lines
957 B
C++

#ifndef _Sphere_H_
#define _Sphere_H_
#pragma once
struct IDirect3DVertexBuffer8;
struct IDirect3DDevice8;
////////////////////////////////////////////////////////////////////////////
//
class CSphere
{
IDirect3DDevice8 * m_pd3dDevice;
IDirect3DVertexBuffer8 * m_pVB;
unsigned m_uiRings, m_uiSegments; //±¸ÀÇ À§µµ, °æµµÀÇ °³¼ö
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