TwInit (function)
DescriptionThis function initializes the AntTweakBar library. It must be called once at the beginning of the program, just after graphic mode is initialized. Notes:
ParametersgraphAPIThis parameter specifies which graphic API is used: OpenGL, OpenGL core profile (3.2 and higher), Direct3D 9, Direct3D 10 or Direct3D 11. It is one of the TwGraphAPI enum element. If graphAPI is Direct3D, the D3D device pointer must be supplied. device
Pointer to the Direct3D device, or
If graphAPI is OpenGL, this parameter must be Return values
See also |