opengl_learn

Step-by-step introduction to OpenGL
git clone https://0xdd.org/code/opengl_learn.git
Log | Files | Refs | README | LICENSE

ogl_vec3f_print.c (412B)


      1 /*
      2 2018 David DiPaola
      3 licensed under CC0 (public domain, see https://creativecommons.org/publicdomain/zero/1.0/)
      4 */
      5 
      6 #include <stdio.h>
      7 
      8 #include "ogl.h"
      9 
     10 void
     11 ogl_vec3f_print(
     12 	struct ogl_vec3f vector
     13 ) {
     14 	printf("{ ");
     15 
     16 	printf(".x=");
     17 	ogl_GLfloat_print(vector.x);
     18 	printf(", ");
     19 
     20 	printf(".y=");
     21 	ogl_GLfloat_print(vector.y);
     22 	printf(", ");
     23 
     24 	printf(".z=");
     25 	ogl_GLfloat_print(vector.z);
     26 
     27 	printf(" }");
     28 }
     29 
     30