User Tools

Site Tools


c_tutorial

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
c_tutorial [2017/05/03 20:34]
curtisb created
c_tutorial [2019/01/21 16:34] (current)
Line 1: Line 1:
-====== GestureWorks C++ Tutorial ======+{{htmlmetatags>​metatag-og:​title=(GestureWorks 2 - C++ Samples and Tutorials) 
 +metatag-description=(GestureWorks 2 samples using the popular Qt library and a sample and tutorial using C++.)  
 +metatag-keywords=(gesture authoring, multitouch authoring, gesture-based authoring, gesture markup, gestureml, gesture mark up language, GestureWorks,​ multitouch SDK, Qt, Qt library, C++)  
 +metatag-og:​description=(GestureWorks ​2 samples using the popular Qt library and a sample and tutorial using C++.)  
 +metatag-og:​type=(article)  
 +metatag-og:​url=(http://​gwiki.gestureworks.com/​doku.php/​c_tutorial)  
 +metatag-og:​site_name=(GestureWorks 2 Wiki- Comprehensive Gesture-Processing Library for Windows Applications)  
 +metatag-og:​image=(http://​gestureworks.com/​images/​828138ec-d80c-419b-192f-cde0258f2108.png)}}
  
-This tutorial goes through adding GestureWorks to a C++ project. The starting code for this project is in the GestureWorks build at Samples\C++\GestureWorks-tutorial-start.+====== GestureWorks 2 C++ Samples and Tutorials ====== 
 + 
 +===== C++ Samples ===== 
 + 
 +==== Qt Sample ==== 
 + 
 +A sample using the popular [[https://​www.qt.io/​ | Qt]] library is in the GestureWorks 2 install at: Samples\Qt Quick\GestureWorks. ​This sample using Qt Quick and has a QML MultiPointGestureArea class which can be used for Qt Quick applications. 
 + 
 +{{::​qt_sample.png?​600|}} 
 + 
 +==== Visual Studio C++ Sample ==== 
 +A simpler C++ sample using Visual Studio and some basic helper classes for rendering is located at: Samples\C++\GestureWorks-tutorial-scene. 
 +This sample is described in the tutorials below. 
 + 
 +===== C++ Tutorials ===== 
 + 
 +The following tutorials ​goes through adding GestureWorks to a C++ project. The starting code for this project is in the GestureWorks build at Samples\C++\GestureWorks-tutorial-start.
  
 This project creates a blank scene with an image. We will look at how to have this image respond to gestures using GestureWorks. This project creates a blank scene with an image. We will look at how to have this image respond to gestures using GestureWorks.
  
 {{:​blank_gestureworks.png?​600|}} {{:​blank_gestureworks.png?​600|}}
 +
 +Adding gestures will be done using two techniques. First we will look at setting up GestureWorks in the simpler screen mode and then in its scene mode.
 +
 +[[C++ Screen Tutorial | C++ Screen Tutorial]]
 +
 +[[C++ Scene Tutorial | C++ Scene Tutorial]]
  
 Below is the main starting code for this project. The Re_* functions are in "​render.h"​ and are simple rendering functions for DirectX to draw the image. We will not be modifying this base code, knowledge of the Windows API calls will not be required, as we will be only adding GestureWorks calls. Below is the main starting code for this project. The Re_* functions are in "​render.h"​ and are simple rendering functions for DirectX to draw the image. We will not be modifying this base code, knowledge of the Windows API calls will not be required, as we will be only adding GestureWorks calls.
c_tutorial.1493843693.txt.gz · Last modified: 2019/01/21 16:35 (external edit)