MOS
Public Types | Public Member Functions | Public Attributes | List of all members
mos::gfx::Cloud Class Referencefinal

Collection of particles for rendering, uses same texture. More...

#include <cloud.hpp>

Inheritance diagram for mos::gfx::Cloud:
mos::gfx::Shape

Public Types

enum  Blending { Additive, Transparent }
 
using Points = Tracked_container< Point >
 

Public Member Functions

 Cloud (Shared_texture_2D texture, Points points)
 
auto sort (const glm::vec3 &position) -> void
 Sort points relative to a position. More...
 
- Public Member Functions inherited from mos::gfx::Shape
auto id () const -> unsigned int
 Unique id. More...
 

Public Attributes

Shared_texture_2D texture
 Texture for all particles. More...
 
bool emissive {false}
 If the particles are emissive or diffuse. More...
 
Points points
 Points. More...
 
Blending blending = Blending::Additive
 Blending for renderinge. More...
 

Detailed Description

Collection of particles for rendering, uses same texture.

Member Function Documentation

◆ sort()

auto mos::gfx::Cloud::sort ( const glm::vec3 &  position) -> void

Sort points relative to a position.

Member Data Documentation

◆ blending

Blending mos::gfx::Cloud::blending = Blending::Additive

Blending for renderinge.

◆ emissive

bool mos::gfx::Cloud::emissive {false}

If the particles are emissive or diffuse.

◆ points

Points mos::gfx::Cloud::points

Points.

◆ texture

Shared_texture_2D mos::gfx::Cloud::texture

Texture for all particles.


The documentation for this class was generated from the following file: