forked from BSVino/docs.gl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.html
109 lines (91 loc) · 2.97 KB
/
header.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta charset='utf-8'>
<title>{$title} - OpenGL API Documentation</title>
<link href="../reset.css" rel="stylesheet" type="text/css" />
<link href='http://fonts.googleapis.com/css?family=Roboto+Condensed' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Source+Code+Pro' rel='stylesheet' type='text/css'>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<link rel="stylesheet" href="../jquery-ui.css" />
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.0/jquery-ui.min.js"></script>
<script src="../jquery-bonsai/jquery.bonsai.js"></script>
<link href="../jquery-bonsai/jquery.bonsai.css" rel="stylesheet" type="text/css" />
<link href="../style.css" rel="stylesheet" type="text/css" />
<script>
function gl_printable_name(name) {
if (name == "es20")
return "OpenGL ES 2.0";
if (name == "es30")
return "OpenGL ES 3.0";
if (name == "es31")
return "OpenGL ES 3.1";
if (name == "gl21")
return "OpenGL 2.1";
if (name == "gl30")
return "OpenGL 3.0";
if (name == "gl31")
return "OpenGL 3.1";
if (name == "gl32")
return "OpenGL 3.2";
if (name == "gl33")
return "OpenGL 3.3";
if (name == "gl40")
return "OpenGL 4.0";
if (name == "gl41")
return "OpenGL 4.1";
if (name == "gl42")
return "OpenGL 4.2";
if (name == "gl43")
return "OpenGL 4.3";
if (name == "gl44")
return "OpenGL 4.4";
if (name == "gl45")
return "OpenGL 4.5";
return "OpenGL X";
}
window.last_gl_version = ("{$current_api}").substring(0, 2);
function set_api_version(version) {
$( "#opengl_name" ).text(gl_printable_name(version));
$(".category").addClass("disabled");
$(".command").addClass("disabled");
$("." + version).removeClass("disabled");
if (window.last_gl_version != version.substring(0, 2))
{
// Remove functions from GL that ES doesn't have and vice versa.
$(".command").each(function() {
$(this).addClass("hidden");
var classList = $(this).attr('class').split(/\s+/);
for (var i = 0; i < classList.length; i++) {
if (classList[i].substring(0, 2) === version.substring(0, 2)) {
$(this).removeClass("hidden");
break;
}
}
});
$("span.bonsai_inner").trigger('click');
$("span.bonsai_inner").trigger('click');
window.last_gl_version = version.substring(0, 2);
}
}
$(function() {
$( "#command_categories" ).bonsai()
$( "#versions_dropdown" ).selectmenu({
change: function( event, ui ) {
set_api_version(ui.item.value);
}
});
set_api_version("{$current_api}");
});
</script>
</head>
<body>
<div id="everything">
<div id="toc">
<strong id="opengl_name"></strong>
<div id="versions_container"><span id="api">API:</span><select id="versions_dropdown">{$versions_options}</select></div>
<br clear="both" />
<ul id="command_categories">{$api_commands}</ul>
</div>
<div id="khronos">
<div id="command_versions">{$command_versions}</div>