olcPixelGameEngine v2.28
The official distribution of olcPixelGameEngine, a tool used in javidx9's YouTube videos and projects
Loading...
Searching...
No Matches
olc::wire Namespace Reference

Classes

class  Model
 

Typedefs

typedef std::vector< olc::vf2dMesh
 

Functions

const Mesh MeshCircle (const float fRadius, const int nPoints=100)
 
const Mesh MeshRectangle (const olc::vf2d &size, const olc::vf2d &offset={ 0.0f, 0.0f })
 
const Mesh MeshGear (const int nTeeth, const float fOuterRadius, const float fInnerRadius)
 
template<typename T >
void DrawModel (T &render, Model &m, const olc::Pixel col=olc::BLACK, const uint8_t flags=-1)
 

Typedef Documentation

◆ Mesh

typedef std::vector<olc::vf2d> olc::wire::Mesh

Function Documentation

◆ DrawModel()

template<typename T >
void olc::wire::DrawModel ( T & render,
Model & m,
const olc::Pixel col = olc::BLACK,
const uint8_t flags = -1 )

◆ MeshCircle()

const Mesh olc::wire::MeshCircle ( const float fRadius,
const int nPoints = 100 )
inline

◆ MeshGear()

const Mesh olc::wire::MeshGear ( const int nTeeth,
const float fOuterRadius,
const float fInnerRadius )
inline

◆ MeshRectangle()

const Mesh olc::wire::MeshRectangle ( const olc::vf2d & size,
const olc::vf2d & offset = { 0.0f, 0.0f } )
inline