Created
March 6, 2013 18:45
-
-
Save Lunanne/5101897 to your computer and use it in GitHub Desktop.
vertex class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Vertex | |
| { | |
| union {struct {float x, y, z ;}; float pos[3];}; | |
| union {struct {float nx, ny, nz ;}; float normal[3];}; | |
| union {struct {float s, t ;}; float texPos[2];}; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment