swh:1:snp:122bde0cb0e54f3d002c308e151c63f07e45e6be
Tip revision: d5350e845ceb8fe7d8f2e94e42672016031c7c02 authored by Hanno Rein on 10 September 2023, 18:22:49 UTC
Updating version to 3.27.0
Updating version to 3.27.0
Tip revision: d5350e8
display.h
/**
* @file display.h
* @brief Realtime OpenGL visualization.
* @author Hanno Rein <hanno@hanno-rein.de>
*
* @section LICENSE
* Copyright (c) 2016 Hanno Rein, Shangfei Liu
*
* This file is part of rebound.
*
* rebound is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* rebound is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with rebound. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef _DISPLAY_H
#define _DISPLAY_H
struct reb_simulation;
/**
* @brief Internal function to check if display update is needed.
*/
void reb_check_for_display_heartbeat(struct reb_simulation* const r);
/**
* @brief This function initializes OpenGL and starts the run loop.
* @param data A struct containing all the data needed by the visualization.
*/
void reb_display_init(struct reb_simulation* const r);
void reb_display_init_data(struct reb_simulation* const r);
int reb_display_copy_data(struct reb_simulation* const r);
void reb_display_prepare_data(struct reb_simulation* const r, int orbits);
#endif