Changeset 364 in flair-src for trunk/tools


Ignore:
Timestamp:
Sep 3, 2020, 1:59:51 PM (4 years ago)
Author:
Sanahuja Guillaume
Message:

modifs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/VrpnLite/src/VrpnLite.cpp

    r363 r364  
    7777
    7878void VrpnLite::SendObjects(void) const{
    79  return;
    80  int16_t position[3];
     79 
     80  int16_t position[3];
    8181  int16_t quaternion[4];
    8282  Time time;
    83   char datas[vrpnobjects.size()*(sizeof(position)+sizeof(quaternion))+ sizeof(time)];
    84   char *datasPtr=datas;
    8583 
    8684  //for (vector<vector<VrpnObject*>>::const_iterator connection= vrpnobjects_list.begin();connection < vrpnobjects_list.end(); connection++) {
    8785  for (int i=0;i<vrpnobjects_list.size();i++) {
     86      char datas[vrpnobjects_list.at(i).size()*(sizeof(position)+sizeof(quaternion))+ sizeof(time)];
     87      char *datasPtr=datas;
    8888      for (vector<VrpnObject*>::const_iterator it = vrpnobjects_list.at(i).begin();it < vrpnobjects_list.at(i).end(); it++) {
    8989        Vector3Df objectPosition;
Note: See TracChangeset for help on using the changeset viewer.