|
Contents
Examples
Here are some simple program examples with sources that show how to use the AntTweakBar library.
TwSimpleGLFWSource file
ScreenshotTwSimpleGLUTA simple example using AntTweakBar with OpenGL and GLUT .
This example also demonstrates the use of quaternion and direction types. Quaternions are used to represent rotation, see the following link for a detailed description: Source file
ScreenshotTwSimpleSDLSource file
ScreenshotTwSimpleSFMLSource file
ScreenshotTwSimpleDX9A simple example using AntTweakBar with DirectX9 . Source file
ScreenshotTwSimpleDX10A simple example using AntTweakBar with DirectX10. It requires a Windows version that supports at least DirectX10 (Vista, 7,...). Source file
ScreenshotTwSimpleDX11A simple example using AntTweakBar with DirectX11. It requires a Windows version that supports at least DirectX11 (Vista, 7,...). Source files
ScreenshotTwAdvanced1An example showing many features of AntTweakBar (including definition of custom structure type and variable accessed via callbacks). It also uses OpenGL and GLFW but could be easily adapted to other frameworks. Source file
ScreenshotTwStringThis example illustrates the different ways to handle String variables. It also uses OpenGL and GLFW but could be easily adapted to other frameworks. Source file
ScreenshotTwDualGLUTThis example illustrates multi-window support. The function TwSetCurrentWindow is used to switch between window contexts. Source file
Screenshot |