GrooveStomp's 3D Software Renderer  0.1.0
Public Attributes | List of all members
triangle Struct Reference

Triangular mesh face. More...

#include <math.h>

Collaboration diagram for triangle:
Collaboration graph
[legend]

Public Attributes

union {
   struct {
      float   x1
 
      float   y1
 
      float   z1
 
      float   w1
 
      float   x2
 
      float   y2
 
      float   z2
 
      float   w2
 
      float   x3
 
      float   y3
 
      float   z3
 
      float   w3
 
   } 
 
   struct vec3   v [3]
 
}; 
 
union {
   struct {
      float   u1
 
      float   v1
 
      float   tw1
 
      float   u2
 
      float   v2
 
      float   tw2
 
      float   u3
 
      float   v3
 
      float   tw3
 
   } 
 
   struct vec2   t [3]
 
}; 
 
unsigned int color
 

Detailed Description

Triangular mesh face.

A mesh face consisting solely of homogenous 3D coordinates and homogenous 2D texture coordinates, and a color attribute.

Currently the color attribute is not used, but it is useful for debugging or falling back to in lieu of texture values or coordinate values.


The documentation for this struct was generated from the following file: