Symphony Of Empires
|
#include <primitive.hpp>
Public Member Functions | |
Sphere (float x, float y, float z, float radius, int resolution, bool cw_winding=true) | |
~Sphere ()=default | |
Public Member Functions inherited from Eng3D::Mesh< glm::vec3, glm::vec2 > | |
Mesh (enum Eng3D::MeshMode _mode) | |
Mesh (const Mesh &)=delete | |
Mesh (Mesh &&) noexcept=default | |
virtual | ~Mesh ()=default |
Mesh & | operator= (const Mesh &)=delete |
void | draw (int instances=0) const |
virtual void | upload () const |
void | instancing (I &instances_buffer, int instances=0) |
Enables instances on this simple mesh. More... | |
Public Attributes | |
float | radius |
Public Attributes inherited from Eng3D::Mesh< glm::vec3, glm::vec2 > | |
std::vector< DataType > | buffer |
std::vector< unsigned int > | indices |
enum Eng3D::MeshMode | mode |
Additional Inherited Members | |
Public Types inherited from Eng3D::Mesh< glm::vec3, glm::vec2 > | |
using | DataType = Eng3D::MeshData< glm::vec3, glm::vec2, void > |
Definition at line 61 of file primitive.hpp.
Eng3D::Sphere::Sphere | ( | float | x, |
float | y, | ||
float | z, | ||
float | radius, | ||
int | resolution, | ||
bool | cw_winding = true |
||
) |
|
default |
float Eng3D::Sphere::radius |
Definition at line 67 of file primitive.hpp.