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)
 

Private Member Functions

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()

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

◆ enabled()

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

◆ set_color()

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_dimensions()

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_enabled()

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

◆ set_graphics()

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

◆ size()

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

◆ spacing()

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

◆ update()

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

◆ vbo()

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: