Ankush's Garage
A collection of stuff made by Ankush Roy
Loading...
Searching...
No Matches
BoidsContainer Class Reference

#include <Boids.h>

Public Member Functions

 BoidsContainer ()
 
void init ()
 
void changeData (float Seperation, float Alignment, float Cohesion)
 
void update ()
 
unsigned int numBoids () const noexcept
 
const std::vector< BoidsEntity > & getBoids () const
 

Public Attributes

glm::vec4 Color = {0.455f, 0.780f, 0.925f, 0.5f}
 
float seperation = 0.05f
 
float alignment = 0.05f
 
float cohesion = 0.0005f
 

Private Attributes

std::vector< BoidsEntityBoidsVec {}
 
const unsigned int NUM_BOIDS = 100
 

Constructor & Destructor Documentation

◆ BoidsContainer()

BoidsContainer::BoidsContainer ( )

Member Function Documentation

◆ changeData()

void BoidsContainer::changeData ( float Seperation,
float Alignment,
float Cohesion )

◆ getBoids()

const std::vector< BoidsEntity > & BoidsContainer::getBoids ( ) const
nodiscard

◆ init()

void BoidsContainer::init ( )

◆ numBoids()

unsigned int BoidsContainer::numBoids ( ) const
inlinenodiscardnoexcept

◆ update()

void BoidsContainer::update ( )

Member Data Documentation

◆ alignment

float BoidsContainer::alignment = 0.05f

◆ BoidsVec

std::vector<BoidsEntity> BoidsContainer::BoidsVec {}
private

◆ cohesion

float BoidsContainer::cohesion = 0.0005f

◆ Color

glm::vec4 BoidsContainer::Color = {0.455f, 0.780f, 0.925f, 0.5f}

◆ NUM_BOIDS

const unsigned int BoidsContainer::NUM_BOIDS = 100
private

◆ seperation

float BoidsContainer::seperation = 0.05f

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