Tscope5
Main Page
Related Pages
Files
Examples
File List
Globals
tscope5-0.2
graphics_internal.c
Go to the documentation of this file.
1
////////////////////////////////////////////////////////////////////////////////
2
//
3
// __ ______
4
// / /_______________ ____ ___ / ____/
5
// / __/ ___/ ___/ __ \/ __ \/ _ \ /___ )
6
// / /_(__ ) /__/ /_/ / /_/ / __/ ____/ /
7
// \__/____/\___/\____/ .___/\___/ /_____/
8
// /_/
9
//
10
/// \file graphics_internal.c
11
/// Definitions of internal graphics parameter functions
12
////////////////////////////////////////////////////////////////////////////////
13
14
#include "../include/tscope5/graphics_internal.h"
15
#include "../include/tscope5/system_internal.h"
16
17
/// Is the graphics subsystem installed?
18
int
_ts5_is_graphics_installed
= 0;
19
20
21
////////////////////////////////////////////////////////////////////////////////
22
/// Do some checks at the start of each graphics function.
23
///
24
/// \param calling_function Name the function that calls for
25
/// this check or installation.
26
///
27
/// Checks whether Tscope5 is installed. If not, Tscope5 is installed.
28
////////////////////////////////////////////////////////////////////////////////
29
void
ts5_check_graphics
(
char
*calling_function)
30
{
31
ts5_log
(TS5_LOGLEVEL_6,
"%s: ts5_check_graphics\n"
, calling_function);
32
if
(!
_ts5_is_tscope5_installed
) {
33
ts5_install_tscope5
(calling_function);
34
}
35
}
36