Guest User

Untitled

a guest
Jul 15th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. #define FILL_DIRECTIVE(z,n,data) if(n==3)params[3]=1;else params[n]=value[n];
  2. #define FILL_PARAMS float params[4]; BOOST_PP_REPEAT(4,FILL_DIRECTIVE,)
  3. property_readwrite_ex(Vectormath::Aos::Vector3,Ambient,
  4. {},//getter
  5. {//pre setter
  6. FILL_PARAMS
  7. glLightfv(GL_LIGHT0,GL_AMBIENT, params);
  8. },{})
  9. property_readwrite_ex(Vectormath::Aos::Vector3,Diffusion,
  10. {},//getter
  11. {//pre setter
  12. FILL_PARAMS
  13. glLightfv(GL_LIGHT0,GL_AMBIENT, params);
  14. },{})
  15. #undef FILL_DIRECTIVE
  16. #undef FILL_PARAMS
Add Comment
Please, Sign In to add comment