Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::TileRing Class Referencefinal

#include <TileRing.h>

Classes

struct  Adjacency
 
struct  InstanceData
 
struct  VertexData
 

Public Member Functions

 TileRing (I32 holeWidth, I32 outerWidth, F32 tileSize) noexcept
 
 PROPERTY_R (I32, tileCount, 0)
 
 PROPERTY_R (F32, tileSize, 1.f)
 
vector< InstanceDatacreateInstanceDataVB (I32 ringID)
 

Private Member Functions

bool InRing (I32 x, I32 y) const noexcept
 
void AssignNeighbourSizes (I32 x, I32 y, Adjacency *) const noexcept
 

Private Attributes

const I32 _holeWidth = 0
 
const I32 _outerWidth = 0
 
const I32 _ringWidth = 0
 

Detailed Description

Definition at line 75 of file TileRing.h.

Constructor & Destructor Documentation

◆ TileRing()

Divide::TileRing::TileRing ( I32  holeWidth,
I32  outerWidth,
F32  tileSize 
)
explicitnoexcept

Definition at line 23 of file TileRing.cpp.

Member Function Documentation

◆ AssignNeighbourSizes()

void Divide::TileRing::AssignNeighbourSizes ( I32  x,
I32  y,
Adjacency pAdj 
) const
privatenoexcept

Definition at line 40 of file TileRing.cpp.

◆ createInstanceDataVB()

vector< TileRing::InstanceData > Divide::TileRing::createInstanceDataVB ( I32  ringID)

Definition at line 98 of file TileRing.cpp.

◆ InRing()

bool Divide::TileRing::InRing ( I32  x,
I32  y 
) const
privatenoexcept

Definition at line 33 of file TileRing.cpp.

◆ PROPERTY_R() [1/2]

Divide::TileRing::PROPERTY_R ( F32  ,
tileSize  ,
1.  f 
)

◆ PROPERTY_R() [2/2]

Divide::TileRing::PROPERTY_R ( I32  ,
tileCount  ,
 
)

Member Data Documentation

◆ _holeWidth

const I32 Divide::TileRing::_holeWidth = 0
private

Definition at line 117 of file TileRing.h.

◆ _outerWidth

const I32 Divide::TileRing::_outerWidth = 0
private

Definition at line 118 of file TileRing.h.

◆ _ringWidth

const I32 Divide::TileRing::_ringWidth = 0
private

Definition at line 119 of file TileRing.h.


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