nngn
Loading...
Searching...
No Matches
nngn::Grid Class Reference

#include <grid.h>

Collaboration diagram for nngn::Grid:

Public Member Functions

bool enabled () const
 
std::size_t size (void) const
 
float spacing (void) const
 
u32 vbo () const
 
u32 ebo () const
 
bool set_graphics (Graphics *g)
 
bool set_enabled (bool e)
 
bool set_dimensions (float spacing, unsigned size)
 
bool set_color (float v0, float v1, float v2)
 
bool enabled () const
 
std::size_t size (void) const
 
float spacing (void) const
 
u32 vbo () const
 
u32 ebo () const
 
bool set_graphics (Graphics *g)
 
bool set_enabled (bool e)
 
bool set_dimensions (float spacing, unsigned size)
 
bool set_color (float v0, float v1, float v2)
 

Private Member Functions

bool update () const
 
bool update () const
 

Private Attributes

Graphicsgraphics = nullptr
 
std::size_t m_size = 0
 
vec3 color = {1, 1, 1}
 
float m_spacing = 0
 
u32 m_vbo = {}
 
u32 m_ebo = {}
 
bool m_enabled = false
 

Member Function Documentation

◆ ebo() [1/2]

u32 nngn::Grid::ebo ( ) const
inline

◆ ebo() [2/2]

u32 nngn::Grid::ebo ( ) const
inline

◆ enabled() [1/2]

bool nngn::Grid::enabled ( ) const
inline
Here is the caller graph for this function:

◆ enabled() [2/2]

bool nngn::Grid::enabled ( ) const
inline

◆ set_color() [1/2]

bool nngn::Grid::set_color ( float  v0,
float  v1,
float  v2 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_color() [2/2]

bool nngn::Grid::set_color ( float  v0,
float  v1,
float  v2 
)

◆ set_dimensions() [1/2]

bool nngn::Grid::set_dimensions ( float  spacing,
unsigned  size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_dimensions() [2/2]

bool nngn::Grid::set_dimensions ( float  spacing,
unsigned  size 
)

◆ set_enabled() [1/2]

bool nngn::Grid::set_enabled ( bool  e)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_enabled() [2/2]

bool nngn::Grid::set_enabled ( bool  e)

◆ set_graphics() [1/2]

bool nngn::Grid::set_graphics ( Graphics g)
Here is the call graph for this function:

◆ set_graphics() [2/2]

bool nngn::Grid::set_graphics ( Graphics g)

◆ size() [1/2]

std::size_t nngn::Grid::size ( void  ) const
inline
Here is the caller graph for this function:

◆ size() [2/2]

std::size_t nngn::Grid::size ( void  ) const
inline

◆ spacing() [1/2]

float nngn::Grid::spacing ( void  ) const
inline
Here is the caller graph for this function:

◆ spacing() [2/2]

float nngn::Grid::spacing ( void  ) const
inline

◆ update() [1/2]

bool nngn::Grid::update ( ) const
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ update() [2/2]

bool nngn::Grid::update ( ) const
private

◆ vbo() [1/2]

u32 nngn::Grid::vbo ( ) const
inline

◆ vbo() [2/2]

u32 nngn::Grid::vbo ( ) const
inline

Member Data Documentation

◆ color

vec3 nngn::Grid::color = {1, 1, 1}
private

◆ graphics

Graphics * nngn::Grid::graphics = nullptr
private

◆ m_ebo

u32 nngn::Grid::m_ebo = {}
private

◆ m_enabled

bool nngn::Grid::m_enabled = false
private

◆ m_size

std::size_t nngn::Grid::m_size = 0
private

◆ m_spacing

float nngn::Grid::m_spacing = 0
private

◆ m_vbo

u32 nngn::Grid::m_vbo = {}
private

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