Log in or register to post comments

What is the Constructor of VideoPlayback.cpp

February 15, 2013 - 2:34am #1

hello,

i need help for passing the value of NUM_TARGETS

 

static const int NUM_TARGETS = 2; // the value should be dynamic
static const int STONES = 0;
static const int CHIPS = 1;
I'm thinking of a constructor, but i can't find it,
also the 'const' could be a difficulty.
 
how could i've done it dynamically, is there a way?(of course there is :)) but how should it be done? 
any help please., thank you
 
sorry, i'm a newbie in C++
 
 
 
 

 

What is the Constructor of VideoPlayback.cpp

February 18, 2013 - 1:38am #4

You're welcome; if later on you have specific questions on the Vuforia SDK, feel free to share them here..

What is the Constructor of VideoPlayback.cpp

February 17, 2013 - 5:53pm #3

thank you so much, 

i will work on it

What is the Constructor of VideoPlayback.cpp

February 15, 2013 - 5:30am #2

Hi, if you want to use a dynamic arrray for targets and videos, your best bet would be to use the std::vector (or alternatively std:list) from the STL library;

Note that to use the STL library you will need to add this line to your Application.mk file:

APP_STL := stlport_static

You can find a good reference to STL vectors in here:

http://www.cplusplus.com/reference/vector/vector/

 

Log in or register to post comments