nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
nanommo::Triangles Class Reference

#include <triangles.h>

Public Member Functions

void Add (Vector3 a, Vector3 b, Vector3 c, Color color)
int size () const
Mesh Upload () const
 Hands them to the GPU, as a mesh for LoadModelFromMesh.

Detailed Description

Triangles that share no corners, so that each has its face's normal, and the light shades each face flat, like a low-poly model.

Definition at line 16 of file triangles.h.

Member Function Documentation

◆ Add()

void nanommo::Triangles::Add ( Vector3 a,
Vector3 b,
Vector3 c,
Color color )

Definition at line 27 of file triangles.cc.

◆ size()

int nanommo::Triangles::size ( ) const
inline

Definition at line 20 of file triangles.h.

◆ Upload()

Mesh nanommo::Triangles::Upload ( ) const

Hands them to the GPU, as a mesh for LoadModelFromMesh.

Definition at line 36 of file triangles.cc.


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