CreateSphere#
-
Mesh *CreateSphere(int slices, int segments, float radius = 1.0f)#
Creates a sphere mesh primitive.
Generates a spherical mesh using latitude and longitude tessellation.
- Parameters:
slices – [in] Number of longitudinal slices
segments – [in] Number of latitudinal segments
radius – [in] Radius of the sphere (default: 1.0)
- Returns:
Pointer to the created sphere mesh