Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.54 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. ...
  5.  
  6. typedef struct {
  7.    
  8.     bool show;
  9.    
  10.     xyz_double position;
  11.     GLfloat ambient[4];
  12.     GLfloat diffuse[4];
  13.     GLfloat specular[4];
  14.    
  15. } Light;
  16.  
  17. // Standard colours
  18. static const GLfloat white[4] = {1, 1, 1, 1};
  19. static const GLfloat grey[4] = {0.5, 0.5, 0.5, 1};
  20. static const GLfloat black[4] = {0, 0, 0, 1};
  21.  
  22. // Default light colours
  23.  
  24. Light defaultlight;
  25. memcpy(defaultlight.ambient, grey, sizeof(grey));
  26.  
  27. -----
  28.  
  29. compiler:
  30. (line with memcpy): error: expected ‘)’ before ‘.’ token
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement