COpenGL::SetOnChangeCallback

void SetOnChangeCallback(void (*OnChangeProcedure)( void*, SObjectInfo* ManipulatedObject ), void* hData );

Parameters

OnChangeProcedureSpecifies callback procedure
hDataSpecifies the content of OnChangeProcedure callback. ClassGL will call the callback procedure with hData pointer as itís parameter. The hData parameter usually specifies pointer to the class wrapping the COpenGL object.

Remarks

ClassGL calls the callback procedure after the objectís position or rotation items in SObjectInfo structure are updated. The callback procedure is being called with passed hData parameter and SObjectInfo pointer of the manipulated object.

This method is available from ClassGL version 3.1

Example

See SetSelectProcedure for a code example

See Also

SetSelectProcedure