File: render_manager.hpp

package info (click to toggle)
python-visual 1%3A5.12-1.1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 7,672 kB
  • ctags: 7,636
  • sloc: cpp: 15,593; sh: 9,615; ansic: 6,631; python: 4,737; makefile: 385
file content (18 lines) | stat: -rw-r--r-- 642 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef VPYTHON_UTIL_RENDER_MANAGER_HPP
#define VPYTHON_UTIL_RENDER_MANAGER_HPP
#pragma once

#include <vector>

namespace cvisual {
	struct render_manager {
		// Called by the platform drivers to paint and swaps all of the given displays,
		// returning the number of seconds to wait before calling this function again.
		// Takes care of a lot of platform-independent policy and implementation, including
		// the tradeoff between frame rate and Python program performance, vertical retrace
		// synchronization, etc.
		static double paint_displays( const std::vector< class display* >&, bool swap_single_threaded = false );
	};
};

#endif