Freeglut Wrapper Help

new topic     » topic index » view thread      » older message » newer message

Hello,

I am working on a freeglut wrapper for Euphoria. This will be based off the most current version of Freeglut, which is 3.2.1. I just wanna make sure I'm wrapping the callback functions correctly.

//C Code 
FGAPI void    FGAPIENTRY glutJoystickFunc( void (* callback)( unsigned int, int, int, int ), int pollInterval ); 

--Eu Code 
public constant xglutJoystickFunc = define_c_proc(glut,"+glutJoystickFunc",{C_POINTER,C_UINT,C_INT,C_INT,C_INT,C_INT,C_INT}) 
 
public procedure glutJoystickFunc(atom cb,atom x,atom x2,atom x3,atom x4,atom poll) 
 
 c_proc(xglutJoystickFunc,{cb,x,x2,x3,x4,poll}) 
	 
end procedure 
new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu