Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define FILL_DIRECTIVE(z,n,data) if(n==3)params[3]=1;else params[n]=value[n];
- #define FILL_PARAMS float params[4]; BOOST_PP_REPEAT(4,FILL_DIRECTIVE,)
- property_readwrite_ex(Vectormath::Aos::Vector3,Ambient,
- {},//getter
- {//pre setter
- FILL_PARAMS
- glLightfv(GL_LIGHT0,GL_AMBIENT, params);
- },{})
- property_readwrite_ex(Vectormath::Aos::Vector3,Diffusion,
- {},//getter
- {//pre setter
- FILL_PARAMS
- glLightfv(GL_LIGHT0,GL_AMBIENT, params);
- },{})
- #undef FILL_DIRECTIVE
- #undef FILL_PARAMS
Add Comment
Please, Sign In to add comment