bool WMHeadPositionCorrection::processReset( WLEMMCommand::SPtr cmdIn ) { WL_UNUSED( cmdIn ); infoLog() << "Reseting module."; m_correction.reset(); m_hasRefPos = hdlPosFileChanged( m_propPosFile->get().string() ); return true; }
void WLEMDDrawable3D::osgNodeCallback( osg::NodeVisitor* nv ) { WL_UNUSED( nv ); osgAddColorMap(); m_colorMapChanged = false; m_selectedSampleChanged = false; m_surfaceChanged = false; WLEMDDrawable::resetDrawFlags(); }
void WLContext::ServerInfoListener(void* data, struct serverinfo* serverInfo, uint32_t clientHandle) { WL_UNUSED(serverInfo); WLContext* surface = static_cast<WLContext*>(data); assert(surface); surface->SetConnectionId(clientHandle); }
void WLContext::RegistryHandleGlobal(void* data, struct wl_registry* registry, uint32_t name, const char* interface, uint32_t version) { WL_UNUSED(version); WLContext* surface = static_cast<WLContext*>(data); assert(surface); do { if (!strcmp(interface, "wl_compositor")){ surface->SetWLCompositor( (wl_compositor*)wl_registry_bind(registry, name, &wl_compositor_interface, 1)); break; } if (!strcmp(interface, "serverinfo")){ struct serverinfo* wlServerInfo = (struct serverinfo*)wl_registry_bind( registry, name, &serverinfo_interface, 1); serverinfo_add_listener(wlServerInfo, &serverInfoListenerList, data); serverinfo_get_connection_id(wlServerInfo); surface->SetWLServerInfo(wlServerInfo); break; } if (!strcmp(interface, "wl_seat")){ struct WLContext::seat_data *seat_data = (struct WLContext::seat_data *)calloc(1, sizeof *seat_data); seat_data->ctx = surface; seat_data->wlSeat = (wl_seat*)wl_registry_bind( registry, name, &wl_seat_interface, 1); wl_seat_add_listener(seat_data->wlSeat, &seatListener, (void *)seat_data); } } while (0); }