add docstrings for structs and enums, fixes issue #159
This commit is contained in:
parent
002e4ca4d9
commit
5593f2e392
21 changed files with 745 additions and 1174 deletions
|
@ -24,6 +24,7 @@ def process(filename):
|
|||
for e in js['enums']:
|
||||
if e['name'] and e['values']:
|
||||
print ("class "+e['name']+"("+"IntEnum):")
|
||||
print(f' """{e['description']}."""')
|
||||
for value in e['values']:
|
||||
print(" "+value['name']+" = "+str(value['value']))
|
||||
print("")
|
||||
|
|
|
@ -33,6 +33,7 @@ for filename in (Path("raylib.json"), Path("raymath.json"), Path("rlgl.json"), P
|
|||
for e in js['enums']:
|
||||
if e['name'] and e['values']:
|
||||
print("class "+e['name']+"(int):")
|
||||
print(f' """{e['description']}."""')
|
||||
for value in e['values']:
|
||||
print(" "+value['name']+" = "+str(value['value']))
|
||||
print("")
|
||||
|
@ -144,7 +145,7 @@ for struct in ffi.list_types()[0]:
|
|||
print("weird empty struct, skipping " + struct, file=sys.stderr)
|
||||
continue
|
||||
print(f"class {struct}:")
|
||||
print(f' """ struct """')
|
||||
print(f' """{known_structs[struct]['description']}."""')
|
||||
sig = ""
|
||||
for arg in ffi.typeof(struct).fields:
|
||||
ptype = ctype_to_python_type(arg[1].type.cname)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Sphinx build info version 1
|
||||
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
|
||||
config: 6b88b88b20947586d6498748ffd23a92
|
||||
config: f2032a6434b52f7c68551d0ad70d555b
|
||||
tags: 645f666f9bcd5a90fca523b33c5a78b7
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Building from source — Raylib Python documentation</title>
|
||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=03e43079" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=e59714d7" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/graphviz.css?v=4ae1632d" />
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Python Bindings for Raylib 5.5 — Raylib Python documentation</title>
|
||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=03e43079" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=e59714d7" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/graphviz.css?v=4ae1632d" />
|
||||
|
||||
|
@ -142,7 +142,7 @@ original Raylib.</p></li>
|
|||
<section id="quickstart">
|
||||
<h1>Quickstart<a class="headerlink" href="#quickstart" title="Link to this heading"></a></h1>
|
||||
<p><code class="docutils literal notranslate"><span class="pre">pip3</span> <span class="pre">install</span> <span class="pre">raylib==5.5.0.2</span> <span class="pre">--break-system-packages</span></code></p>
|
||||
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">pyray</span> <span class="kn">import</span> <span class="o">*</span>
|
||||
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">from</span><span class="w"> </span><span class="nn">pyray</span><span class="w"> </span><span class="kn">import</span> <span class="o">*</span>
|
||||
<span class="n">init_window</span><span class="p">(</span><span class="mi">800</span><span class="p">,</span> <span class="mi">450</span><span class="p">,</span> <span class="s2">"Hello"</span><span class="p">)</span>
|
||||
<span class="k">while</span> <span class="ow">not</span> <span class="n">window_should_close</span><span class="p">():</span>
|
||||
<span class="n">begin_drawing</span><span class="p">()</span>
|
||||
|
@ -202,7 +202,7 @@ so may not work on other boards.</p>
|
|||
</section>
|
||||
<section id="raspberry-pi">
|
||||
<h2>Raspberry Pi<a class="headerlink" href="#raspberry-pi" title="Link to this heading"></a></h2>
|
||||
<p><a class="reference internal" href="RPI.html"><span class="std std-doc">Using on Rasperry Pi</span></a></p>
|
||||
<p><span class="xref myst">Using on Rasperry Pi</span></p>
|
||||
</section>
|
||||
</section>
|
||||
<section id="backends">
|
||||
|
@ -237,7 +237,7 @@ python3 -m pip install raylib_drm
|
|||
</section>
|
||||
<section id="problems">
|
||||
<h2>Problems?<a class="headerlink" href="#problems" title="Link to this heading"></a></h2>
|
||||
<p>If it doesn’t work, <a class="reference internal" href="BUILDING.html"><span class="std std-doc">try to build manually.</span></a>. If that works then <a class="reference external" href="https://github.com/electronstudio/raylib-python-cffi/issues">submit an issue</a>
|
||||
<p>If it doesn’t work, <span class="xref myst">try to build manually.</span>. If that works then <a class="reference external" href="https://github.com/electronstudio/raylib-python-cffi/issues">submit an issue</a>
|
||||
to let us know what you did.</p>
|
||||
<p>If you need help you can try asking on <a class="reference external" href="https://discord.gg/fKDwt85aX6">our discord</a>. There is also a large <a class="reference external" href="https://discord.gg/raylib">Raylib discord</a>
|
||||
for issues that are not Python-specific.</p>
|
||||
|
@ -268,11 +268,11 @@ is recommended.</p>
|
|||
<span class="c1"># "raylib"</span>
|
||||
<span class="c1"># ]</span>
|
||||
<span class="c1"># ///</span>
|
||||
<span class="kn">import</span> <span class="nn">asyncio</span>
|
||||
<span class="kn">import</span> <span class="nn">platform</span>
|
||||
<span class="kn">from</span> <span class="nn">pyray</span> <span class="kn">import</span> <span class="o">*</span>
|
||||
<span class="kn">import</span><span class="w"> </span><span class="nn">asyncio</span>
|
||||
<span class="kn">import</span><span class="w"> </span><span class="nn">platform</span>
|
||||
<span class="kn">from</span><span class="w"> </span><span class="nn">pyray</span><span class="w"> </span><span class="kn">import</span> <span class="o">*</span>
|
||||
|
||||
<span class="k">async</span> <span class="k">def</span> <span class="nf">main</span><span class="p">():</span> <span class="c1"># You MUST have an async main function</span>
|
||||
<span class="k">async</span> <span class="k">def</span><span class="w"> </span><span class="nf">main</span><span class="p">():</span> <span class="c1"># You MUST have an async main function</span>
|
||||
<span class="n">init_window</span><span class="p">(</span><span class="mi">500</span><span class="p">,</span> <span class="mi">500</span><span class="p">,</span> <span class="s2">"Hello"</span><span class="p">)</span>
|
||||
<span class="n">platform</span><span class="o">.</span><span class="n">window</span><span class="o">.</span><span class="n">window_resize</span><span class="p">()</span> <span class="c1"># You MAY want to add this line</span>
|
||||
<span class="k">while</span> <span class="ow">not</span> <span class="n">window_should_close</span><span class="p">():</span>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Raspberry Pi — Raylib Python documentation</title>
|
||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=03e43079" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=e59714d7" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/graphviz.css?v=4ae1632d" />
|
||||
|
||||
|
|
8
docs/_static/basic.css
vendored
8
docs/_static/basic.css
vendored
|
@ -741,14 +741,6 @@ abbr, acronym {
|
|||
cursor: help;
|
||||
}
|
||||
|
||||
.translated {
|
||||
background-color: rgba(207, 255, 207, 0.2)
|
||||
}
|
||||
|
||||
.untranslated {
|
||||
background-color: rgba(255, 207, 207, 0.2)
|
||||
}
|
||||
|
||||
/* -- code displays --------------------------------------------------------- */
|
||||
|
||||
pre {
|
||||
|
|
10
docs/_static/js/versions.js
vendored
10
docs/_static/js/versions.js
vendored
|
@ -1,6 +1,6 @@
|
|||
const themeFlyoutDisplay = "hidden";
|
||||
const themeVersionSelector = "True";
|
||||
const themeLanguageSelector = "True";
|
||||
const themeVersionSelector = true;
|
||||
const themeLanguageSelector = true;
|
||||
|
||||
if (themeFlyoutDisplay === "attached") {
|
||||
function renderLanguages(config) {
|
||||
|
@ -8,10 +8,14 @@ if (themeFlyoutDisplay === "attached") {
|
|||
return "";
|
||||
}
|
||||
|
||||
// Insert the current language to the options on the selector
|
||||
let languages = config.projects.translations.concat(config.projects.current);
|
||||
languages = languages.sort((a, b) => a.language.name.localeCompare(b.language.name));
|
||||
|
||||
const languagesHTML = `
|
||||
<dl>
|
||||
<dt>Languages</dt>
|
||||
${config.projects.translations
|
||||
${languages
|
||||
.map(
|
||||
(translation) => `
|
||||
<dd ${translation.slug == config.projects.current.slug ? 'class="rtd-current-item"' : ""}>
|
||||
|
|
66
docs/_static/pygments.css
vendored
66
docs/_static/pygments.css
vendored
|
@ -6,26 +6,26 @@ span.linenos.special { color: #000000; background-color: #ffffc0; padding-left:
|
|||
.highlight .hll { background-color: #ffffcc }
|
||||
.highlight { background: #eeffcc; }
|
||||
.highlight .c { color: #408090; font-style: italic } /* Comment */
|
||||
.highlight .err { border: 1px solid #FF0000 } /* Error */
|
||||
.highlight .err { border: 1px solid #F00 } /* Error */
|
||||
.highlight .k { color: #007020; font-weight: bold } /* Keyword */
|
||||
.highlight .o { color: #666666 } /* Operator */
|
||||
.highlight .o { color: #666 } /* Operator */
|
||||
.highlight .ch { color: #408090; font-style: italic } /* Comment.Hashbang */
|
||||
.highlight .cm { color: #408090; font-style: italic } /* Comment.Multiline */
|
||||
.highlight .cp { color: #007020 } /* Comment.Preproc */
|
||||
.highlight .cpf { color: #408090; font-style: italic } /* Comment.PreprocFile */
|
||||
.highlight .c1 { color: #408090; font-style: italic } /* Comment.Single */
|
||||
.highlight .cs { color: #408090; background-color: #fff0f0 } /* Comment.Special */
|
||||
.highlight .cs { color: #408090; background-color: #FFF0F0 } /* Comment.Special */
|
||||
.highlight .gd { color: #A00000 } /* Generic.Deleted */
|
||||
.highlight .ge { font-style: italic } /* Generic.Emph */
|
||||
.highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */
|
||||
.highlight .gr { color: #FF0000 } /* Generic.Error */
|
||||
.highlight .gr { color: #F00 } /* Generic.Error */
|
||||
.highlight .gh { color: #000080; font-weight: bold } /* Generic.Heading */
|
||||
.highlight .gi { color: #00A000 } /* Generic.Inserted */
|
||||
.highlight .go { color: #333333 } /* Generic.Output */
|
||||
.highlight .gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
|
||||
.highlight .go { color: #333 } /* Generic.Output */
|
||||
.highlight .gp { color: #C65D09; font-weight: bold } /* Generic.Prompt */
|
||||
.highlight .gs { font-weight: bold } /* Generic.Strong */
|
||||
.highlight .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
|
||||
.highlight .gt { color: #0044DD } /* Generic.Traceback */
|
||||
.highlight .gt { color: #04D } /* Generic.Traceback */
|
||||
.highlight .kc { color: #007020; font-weight: bold } /* Keyword.Constant */
|
||||
.highlight .kd { color: #007020; font-weight: bold } /* Keyword.Declaration */
|
||||
.highlight .kn { color: #007020; font-weight: bold } /* Keyword.Namespace */
|
||||
|
@ -33,43 +33,43 @@ span.linenos.special { color: #000000; background-color: #ffffc0; padding-left:
|
|||
.highlight .kr { color: #007020; font-weight: bold } /* Keyword.Reserved */
|
||||
.highlight .kt { color: #902000 } /* Keyword.Type */
|
||||
.highlight .m { color: #208050 } /* Literal.Number */
|
||||
.highlight .s { color: #4070a0 } /* Literal.String */
|
||||
.highlight .na { color: #4070a0 } /* Name.Attribute */
|
||||
.highlight .s { color: #4070A0 } /* Literal.String */
|
||||
.highlight .na { color: #4070A0 } /* Name.Attribute */
|
||||
.highlight .nb { color: #007020 } /* Name.Builtin */
|
||||
.highlight .nc { color: #0e84b5; font-weight: bold } /* Name.Class */
|
||||
.highlight .no { color: #60add5 } /* Name.Constant */
|
||||
.highlight .nd { color: #555555; font-weight: bold } /* Name.Decorator */
|
||||
.highlight .ni { color: #d55537; font-weight: bold } /* Name.Entity */
|
||||
.highlight .nc { color: #0E84B5; font-weight: bold } /* Name.Class */
|
||||
.highlight .no { color: #60ADD5 } /* Name.Constant */
|
||||
.highlight .nd { color: #555; font-weight: bold } /* Name.Decorator */
|
||||
.highlight .ni { color: #D55537; font-weight: bold } /* Name.Entity */
|
||||
.highlight .ne { color: #007020 } /* Name.Exception */
|
||||
.highlight .nf { color: #06287e } /* Name.Function */
|
||||
.highlight .nf { color: #06287E } /* Name.Function */
|
||||
.highlight .nl { color: #002070; font-weight: bold } /* Name.Label */
|
||||
.highlight .nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
|
||||
.highlight .nn { color: #0E84B5; font-weight: bold } /* Name.Namespace */
|
||||
.highlight .nt { color: #062873; font-weight: bold } /* Name.Tag */
|
||||
.highlight .nv { color: #bb60d5 } /* Name.Variable */
|
||||
.highlight .nv { color: #BB60D5 } /* Name.Variable */
|
||||
.highlight .ow { color: #007020; font-weight: bold } /* Operator.Word */
|
||||
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
|
||||
.highlight .w { color: #BBB } /* Text.Whitespace */
|
||||
.highlight .mb { color: #208050 } /* Literal.Number.Bin */
|
||||
.highlight .mf { color: #208050 } /* Literal.Number.Float */
|
||||
.highlight .mh { color: #208050 } /* Literal.Number.Hex */
|
||||
.highlight .mi { color: #208050 } /* Literal.Number.Integer */
|
||||
.highlight .mo { color: #208050 } /* Literal.Number.Oct */
|
||||
.highlight .sa { color: #4070a0 } /* Literal.String.Affix */
|
||||
.highlight .sb { color: #4070a0 } /* Literal.String.Backtick */
|
||||
.highlight .sc { color: #4070a0 } /* Literal.String.Char */
|
||||
.highlight .dl { color: #4070a0 } /* Literal.String.Delimiter */
|
||||
.highlight .sd { color: #4070a0; font-style: italic } /* Literal.String.Doc */
|
||||
.highlight .s2 { color: #4070a0 } /* Literal.String.Double */
|
||||
.highlight .se { color: #4070a0; font-weight: bold } /* Literal.String.Escape */
|
||||
.highlight .sh { color: #4070a0 } /* Literal.String.Heredoc */
|
||||
.highlight .si { color: #70a0d0; font-style: italic } /* Literal.String.Interpol */
|
||||
.highlight .sx { color: #c65d09 } /* Literal.String.Other */
|
||||
.highlight .sa { color: #4070A0 } /* Literal.String.Affix */
|
||||
.highlight .sb { color: #4070A0 } /* Literal.String.Backtick */
|
||||
.highlight .sc { color: #4070A0 } /* Literal.String.Char */
|
||||
.highlight .dl { color: #4070A0 } /* Literal.String.Delimiter */
|
||||
.highlight .sd { color: #4070A0; font-style: italic } /* Literal.String.Doc */
|
||||
.highlight .s2 { color: #4070A0 } /* Literal.String.Double */
|
||||
.highlight .se { color: #4070A0; font-weight: bold } /* Literal.String.Escape */
|
||||
.highlight .sh { color: #4070A0 } /* Literal.String.Heredoc */
|
||||
.highlight .si { color: #70A0D0; font-style: italic } /* Literal.String.Interpol */
|
||||
.highlight .sx { color: #C65D09 } /* Literal.String.Other */
|
||||
.highlight .sr { color: #235388 } /* Literal.String.Regex */
|
||||
.highlight .s1 { color: #4070a0 } /* Literal.String.Single */
|
||||
.highlight .s1 { color: #4070A0 } /* Literal.String.Single */
|
||||
.highlight .ss { color: #517918 } /* Literal.String.Symbol */
|
||||
.highlight .bp { color: #007020 } /* Name.Builtin.Pseudo */
|
||||
.highlight .fm { color: #06287e } /* Name.Function.Magic */
|
||||
.highlight .vc { color: #bb60d5 } /* Name.Variable.Class */
|
||||
.highlight .vg { color: #bb60d5 } /* Name.Variable.Global */
|
||||
.highlight .vi { color: #bb60d5 } /* Name.Variable.Instance */
|
||||
.highlight .vm { color: #bb60d5 } /* Name.Variable.Magic */
|
||||
.highlight .fm { color: #06287E } /* Name.Function.Magic */
|
||||
.highlight .vc { color: #BB60D5 } /* Name.Variable.Class */
|
||||
.highlight .vg { color: #BB60D5 } /* Name.Variable.Global */
|
||||
.highlight .vi { color: #BB60D5 } /* Name.Variable.Instance */
|
||||
.highlight .vm { color: #BB60D5 } /* Name.Variable.Magic */
|
||||
.highlight .il { color: #208050 } /* Literal.Number.Integer.Long */
|
13
docs/_static/searchtools.js
vendored
13
docs/_static/searchtools.js
vendored
|
@ -513,9 +513,11 @@ const Search = {
|
|||
// perform the search on the required terms
|
||||
searchTerms.forEach((word) => {
|
||||
const files = [];
|
||||
// find documents, if any, containing the query word in their text/title term indices
|
||||
// use Object.hasOwnProperty to avoid mismatching against prototype properties
|
||||
const arr = [
|
||||
{ files: terms[word], score: Scorer.term },
|
||||
{ files: titleTerms[word], score: Scorer.title },
|
||||
{ files: terms.hasOwnProperty(word) ? terms[word] : undefined, score: Scorer.term },
|
||||
{ files: titleTerms.hasOwnProperty(word) ? titleTerms[word] : undefined, score: Scorer.title },
|
||||
];
|
||||
// add support for partial matches
|
||||
if (word.length > 2) {
|
||||
|
@ -547,8 +549,9 @@ const Search = {
|
|||
|
||||
// set score for the word in each file
|
||||
recordFiles.forEach((file) => {
|
||||
if (!scoreMap.has(file)) scoreMap.set(file, {});
|
||||
scoreMap.get(file)[word] = record.score;
|
||||
if (!scoreMap.has(file)) scoreMap.set(file, new Map());
|
||||
const fileScores = scoreMap.get(file);
|
||||
fileScores.set(word, record.score);
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -587,7 +590,7 @@ const Search = {
|
|||
break;
|
||||
|
||||
// select one (max) score for the file.
|
||||
const score = Math.max(...wordList.map((w) => scoreMap.get(file)[w]));
|
||||
const score = Math.max(...wordList.map((w) => scoreMap.get(file).get(w)));
|
||||
// add result to the result list
|
||||
results.push([
|
||||
docNames[file],
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Dynamic Bindings — Raylib Python documentation</title>
|
||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=03e43079" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=e59714d7" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/graphviz.css?v=4ae1632d" />
|
||||
|
||||
|
@ -104,11 +104,11 @@ Therefore I personally recommend the static ones.
|
|||
But the dynamic bindings have the advantage that you don’t need to compile anything to install. You just need a Raylib DLL.</p>
|
||||
</div>
|
||||
<p>The API is exactly the same as the static one documented here. (Therefore you can’t have both modules installed at once.) The only difference is you can’t do:</p>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">raylib</span> <span class="kn">import</span> <span class="o">*</span>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="kn">from</span><span class="w"> </span><span class="nn">raylib</span><span class="w"> </span><span class="kn">import</span> <span class="o">*</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>Instead you have to do:</p>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">raylib</span> <span class="kn">import</span> <span class="n">rl</span>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="kn">from</span><span class="w"> </span><span class="nn">raylib</span><span class="w"> </span><span class="kn">import</span> <span class="n">rl</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>Then you access the functions with <code class="docutils literal notranslate"><span class="pre">rl.</span></code> prefix.</p>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Index — Raylib Python documentation</title>
|
||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=03e43079" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=e59714d7" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/graphviz.css?v=4ae1632d" />
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Raylib Python — Raylib Python documentation</title>
|
||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=03e43079" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=e59714d7" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/graphviz.css?v=4ae1632d" />
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Python Module Index — Raylib Python documentation</title>
|
||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=03e43079" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=e59714d7" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/graphviz.css?v=4ae1632d" />
|
||||
|
||||
|
|
1427
docs/pyray.html
1427
docs/pyray.html
File diff suppressed because one or more lines are too long
128
docs/raylib.html
128
docs/raylib.html
|
@ -7,7 +7,7 @@
|
|||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>C API — Raylib Python documentation</title>
|
||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=03e43079" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=e59714d7" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/graphviz.css?v=4ae1632d" />
|
||||
|
||||
|
@ -2451,7 +2451,7 @@
|
|||
So the <a class="reference external" href="https://github.com/electronstudio/raylib-python-cffi/tree/master/examples">example programs</a>
|
||||
are very, very similar to the C originals.</p>
|
||||
<p>Example program:</p>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">raylib</span> <span class="kn">import</span> <span class="o">*</span>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="kn">from</span><span class="w"> </span><span class="nn">raylib</span><span class="w"> </span><span class="kn">import</span> <span class="o">*</span>
|
||||
|
||||
<span class="n">InitWindow</span><span class="p">(</span><span class="mi">800</span><span class="p">,</span> <span class="mi">450</span><span class="p">,</span> <span class="sa">b</span><span class="s2">"Hello Raylib"</span><span class="p">)</span>
|
||||
<span class="n">SetTargetFPS</span><span class="p">(</span><span class="mi">60</span><span class="p">)</span>
|
||||
|
@ -2471,7 +2471,7 @@ are very, very similar to the C originals.</p>
|
|||
</pre></div>
|
||||
</div>
|
||||
<p>If you want to be more portable (i.e. same code will work with dynamic bindings) you can prefix the functions like this:</p>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">raylib</span> <span class="kn">import</span> <span class="n">ffi</span><span class="p">,</span> <span class="n">rl</span><span class="p">,</span> <span class="n">colors</span>
|
||||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="kn">from</span><span class="w"> </span><span class="nn">raylib</span><span class="w"> </span><span class="kn">import</span> <span class="n">ffi</span><span class="p">,</span> <span class="n">rl</span><span class="p">,</span> <span class="n">colors</span>
|
||||
|
||||
<span class="n">rl</span><span class="o">.</span><span class="n">InitWindow</span><span class="p">(</span><span class="mi">800</span><span class="p">,</span> <span class="mi">450</span><span class="p">,</span> <span class="sa">b</span><span class="s2">"Hello Raylib"</span><span class="p">)</span>
|
||||
<span class="n">rl</span><span class="o">.</span><span class="n">SetTargetFPS</span><span class="p">(</span><span class="mi">60</span><span class="p">)</span>
|
||||
|
@ -2524,7 +2524,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.AudioStream">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">AudioStream</span></span><a class="headerlink" href="#raylib.AudioStream" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">AudioStream</span></span><a class="headerlink" href="#raylib.AudioStream" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.AudioStream.buffer">
|
||||
<span class="sig-name descname"><span class="pre">buffer</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">Any</span></em><a class="headerlink" href="#raylib.AudioStream.buffer" title="Link to this definition"></a></dt>
|
||||
|
@ -2554,7 +2554,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.AutomationEvent">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">AutomationEvent</span></span><a class="headerlink" href="#raylib.AutomationEvent" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">AutomationEvent</span></span><a class="headerlink" href="#raylib.AutomationEvent" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.AutomationEvent.frame">
|
||||
<span class="sig-name descname"><span class="pre">frame</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">int</span></em><a class="headerlink" href="#raylib.AutomationEvent.frame" title="Link to this definition"></a></dt>
|
||||
|
@ -2574,7 +2574,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.AutomationEventList">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">AutomationEventList</span></span><a class="headerlink" href="#raylib.AutomationEventList" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">AutomationEventList</span></span><a class="headerlink" href="#raylib.AutomationEventList" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.AutomationEventList.capacity">
|
||||
<span class="sig-name descname"><span class="pre">capacity</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">int</span></em><a class="headerlink" href="#raylib.AutomationEventList.capacity" title="Link to this definition"></a></dt>
|
||||
|
@ -2767,7 +2767,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.BoneInfo">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">BoneInfo</span></span><a class="headerlink" href="#raylib.BoneInfo" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">BoneInfo</span></span><a class="headerlink" href="#raylib.BoneInfo" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.BoneInfo.name">
|
||||
<span class="sig-name descname"><span class="pre">name</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">bytes</span></em><a class="headerlink" href="#raylib.BoneInfo.name" title="Link to this definition"></a></dt>
|
||||
|
@ -2782,7 +2782,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.BoundingBox">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">BoundingBox</span></span><a class="headerlink" href="#raylib.BoundingBox" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">BoundingBox</span></span><a class="headerlink" href="#raylib.BoundingBox" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.BoundingBox.max">
|
||||
<span class="sig-name descname"><span class="pre">max</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><a class="reference internal" href="#raylib.Vector3" title="raylib.Vector3"><span class="pre">Vector3</span></a></em><a class="headerlink" href="#raylib.BoundingBox.max" title="Link to this definition"></a></dt>
|
||||
|
@ -2892,7 +2892,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.Camera">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Camera</span></span><a class="headerlink" href="#raylib.Camera" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Camera</span></span><a class="headerlink" href="#raylib.Camera" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.Camera.fovy">
|
||||
<span class="sig-name descname"><span class="pre">fovy</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><a class="headerlink" href="#raylib.Camera.fovy" title="Link to this definition"></a></dt>
|
||||
|
@ -2922,7 +2922,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.Camera2D">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Camera2D</span></span><a class="headerlink" href="#raylib.Camera2D" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Camera2D</span></span><a class="headerlink" href="#raylib.Camera2D" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.Camera2D.offset">
|
||||
<span class="sig-name descname"><span class="pre">offset</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><a class="reference internal" href="#raylib.Vector2" title="raylib.Vector2"><span class="pre">Vector2</span></a></em><a class="headerlink" href="#raylib.Camera2D.offset" title="Link to this definition"></a></dt>
|
||||
|
@ -2947,7 +2947,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.Camera3D">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Camera3D</span></span><a class="headerlink" href="#raylib.Camera3D" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Camera3D</span></span><a class="headerlink" href="#raylib.Camera3D" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.Camera3D.fovy">
|
||||
<span class="sig-name descname"><span class="pre">fovy</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><a class="headerlink" href="#raylib.Camera3D.fovy" title="Link to this definition"></a></dt>
|
||||
|
@ -3112,7 +3112,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.Color">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Color</span></span><a class="headerlink" href="#raylib.Color" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Color</span></span><a class="headerlink" href="#raylib.Color" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.Color.a">
|
||||
<span class="sig-name descname"><span class="pre">a</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">bytes</span></em><a class="headerlink" href="#raylib.Color.a" title="Link to this definition"></a></dt>
|
||||
|
@ -4144,7 +4144,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.FilePathList">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">FilePathList</span></span><a class="headerlink" href="#raylib.FilePathList" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">FilePathList</span></span><a class="headerlink" href="#raylib.FilePathList" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.FilePathList.capacity">
|
||||
<span class="sig-name descname"><span class="pre">capacity</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">int</span></em><a class="headerlink" href="#raylib.FilePathList.capacity" title="Link to this definition"></a></dt>
|
||||
|
@ -4169,7 +4169,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.Font">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Font</span></span><a class="headerlink" href="#raylib.Font" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Font</span></span><a class="headerlink" href="#raylib.Font" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.Font.baseSize">
|
||||
<span class="sig-name descname"><span class="pre">baseSize</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">int</span></em><a class="headerlink" href="#raylib.Font.baseSize" title="Link to this definition"></a></dt>
|
||||
|
@ -4384,7 +4384,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.GLFWallocator">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">GLFWallocator</span></span><a class="headerlink" href="#raylib.GLFWallocator" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">GLFWallocator</span></span><a class="headerlink" href="#raylib.GLFWallocator" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.GLFWallocator.allocate">
|
||||
<span class="sig-name descname"><span class="pre">allocate</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">Any</span></em><a class="headerlink" href="#raylib.GLFWallocator.allocate" title="Link to this definition"></a></dt>
|
||||
|
@ -4409,12 +4409,12 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.GLFWcursor">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">GLFWcursor</span></span><a class="headerlink" href="#raylib.GLFWcursor" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">GLFWcursor</span></span><a class="headerlink" href="#raylib.GLFWcursor" title="Link to this definition"></a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.GLFWgamepadstate">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">GLFWgamepadstate</span></span><a class="headerlink" href="#raylib.GLFWgamepadstate" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">GLFWgamepadstate</span></span><a class="headerlink" href="#raylib.GLFWgamepadstate" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.GLFWgamepadstate.axes">
|
||||
<span class="sig-name descname"><span class="pre">axes</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">list</span></em><a class="headerlink" href="#raylib.GLFWgamepadstate.axes" title="Link to this definition"></a></dt>
|
||||
|
@ -4429,7 +4429,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.GLFWgammaramp">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">GLFWgammaramp</span></span><a class="headerlink" href="#raylib.GLFWgammaramp" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">GLFWgammaramp</span></span><a class="headerlink" href="#raylib.GLFWgammaramp" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.GLFWgammaramp.blue">
|
||||
<span class="sig-name descname"><span class="pre">blue</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">Any</span></em><a class="headerlink" href="#raylib.GLFWgammaramp.blue" title="Link to this definition"></a></dt>
|
||||
|
@ -4454,7 +4454,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.GLFWimage">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">GLFWimage</span></span><a class="headerlink" href="#raylib.GLFWimage" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">GLFWimage</span></span><a class="headerlink" href="#raylib.GLFWimage" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.GLFWimage.height">
|
||||
<span class="sig-name descname"><span class="pre">height</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">int</span></em><a class="headerlink" href="#raylib.GLFWimage.height" title="Link to this definition"></a></dt>
|
||||
|
@ -4474,12 +4474,12 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.GLFWmonitor">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">GLFWmonitor</span></span><a class="headerlink" href="#raylib.GLFWmonitor" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">GLFWmonitor</span></span><a class="headerlink" href="#raylib.GLFWmonitor" title="Link to this definition"></a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.GLFWvidmode">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">GLFWvidmode</span></span><a class="headerlink" href="#raylib.GLFWvidmode" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">GLFWvidmode</span></span><a class="headerlink" href="#raylib.GLFWvidmode" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.GLFWvidmode.blueBits">
|
||||
<span class="sig-name descname"><span class="pre">blueBits</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">int</span></em><a class="headerlink" href="#raylib.GLFWvidmode.blueBits" title="Link to this definition"></a></dt>
|
||||
|
@ -4514,7 +4514,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.GLFWwindow">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">GLFWwindow</span></span><a class="headerlink" href="#raylib.GLFWwindow" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">GLFWwindow</span></span><a class="headerlink" href="#raylib.GLFWwindow" title="Link to this definition"></a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="py data">
|
||||
|
@ -5292,7 +5292,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.GlyphInfo">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">GlyphInfo</span></span><a class="headerlink" href="#raylib.GlyphInfo" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">GlyphInfo</span></span><a class="headerlink" href="#raylib.GlyphInfo" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.GlyphInfo.advanceX">
|
||||
<span class="sig-name descname"><span class="pre">advanceX</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">int</span></em><a class="headerlink" href="#raylib.GlyphInfo.advanceX" title="Link to this definition"></a></dt>
|
||||
|
@ -5674,7 +5674,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.GuiStyleProp">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">GuiStyleProp</span></span><a class="headerlink" href="#raylib.GuiStyleProp" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">GuiStyleProp</span></span><a class="headerlink" href="#raylib.GuiStyleProp" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.GuiStyleProp.controlId">
|
||||
<span class="sig-name descname"><span class="pre">controlId</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">int</span></em><a class="headerlink" href="#raylib.GuiStyleProp.controlId" title="Link to this definition"></a></dt>
|
||||
|
@ -7085,7 +7085,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.Image">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Image</span></span><a class="headerlink" href="#raylib.Image" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Image</span></span><a class="headerlink" href="#raylib.Image" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.Image.data">
|
||||
<span class="sig-name descname"><span class="pre">data</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">Any</span></em><a class="headerlink" href="#raylib.Image.data" title="Link to this definition"></a></dt>
|
||||
|
@ -8786,7 +8786,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.Material">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Material</span></span><a class="headerlink" href="#raylib.Material" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Material</span></span><a class="headerlink" href="#raylib.Material" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.Material.maps">
|
||||
<span class="sig-name descname"><span class="pre">maps</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">Any</span></em><a class="headerlink" href="#raylib.Material.maps" title="Link to this definition"></a></dt>
|
||||
|
@ -8806,7 +8806,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.MaterialMap">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">MaterialMap</span></span><a class="headerlink" href="#raylib.MaterialMap" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">MaterialMap</span></span><a class="headerlink" href="#raylib.MaterialMap" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.MaterialMap.color">
|
||||
<span class="sig-name descname"><span class="pre">color</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><a class="reference internal" href="#raylib.Color" title="raylib.Color"><span class="pre">Color</span></a></em><a class="headerlink" href="#raylib.MaterialMap.color" title="Link to this definition"></a></dt>
|
||||
|
@ -8831,7 +8831,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.Matrix">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Matrix</span></span><a class="headerlink" href="#raylib.Matrix" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Matrix</span></span><a class="headerlink" href="#raylib.Matrix" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.Matrix.m0">
|
||||
<span class="sig-name descname"><span class="pre">m0</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><a class="headerlink" href="#raylib.Matrix.m0" title="Link to this definition"></a></dt>
|
||||
|
@ -8916,7 +8916,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.Matrix2x2">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Matrix2x2</span></span><a class="headerlink" href="#raylib.Matrix2x2" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Matrix2x2</span></span><a class="headerlink" href="#raylib.Matrix2x2" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.Matrix2x2.m00">
|
||||
<span class="sig-name descname"><span class="pre">m00</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><a class="headerlink" href="#raylib.Matrix2x2.m00" title="Link to this definition"></a></dt>
|
||||
|
@ -9087,7 +9087,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.Mesh">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Mesh</span></span><a class="headerlink" href="#raylib.Mesh" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Mesh</span></span><a class="headerlink" href="#raylib.Mesh" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.Mesh.animNormals">
|
||||
<span class="sig-name descname"><span class="pre">animNormals</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">Any</span></em><a class="headerlink" href="#raylib.Mesh.animNormals" title="Link to this definition"></a></dt>
|
||||
|
@ -9183,7 +9183,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.Model">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Model</span></span><a class="headerlink" href="#raylib.Model" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Model</span></span><a class="headerlink" href="#raylib.Model" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.Model.bindPose">
|
||||
<span class="sig-name descname"><span class="pre">bindPose</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">Any</span></em><a class="headerlink" href="#raylib.Model.bindPose" title="Link to this definition"></a></dt>
|
||||
|
@ -9233,7 +9233,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.ModelAnimation">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">ModelAnimation</span></span><a class="headerlink" href="#raylib.ModelAnimation" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">ModelAnimation</span></span><a class="headerlink" href="#raylib.ModelAnimation" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.ModelAnimation.boneCount">
|
||||
<span class="sig-name descname"><span class="pre">boneCount</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">int</span></em><a class="headerlink" href="#raylib.ModelAnimation.boneCount" title="Link to this definition"></a></dt>
|
||||
|
@ -9273,7 +9273,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.Music">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Music</span></span><a class="headerlink" href="#raylib.Music" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Music</span></span><a class="headerlink" href="#raylib.Music" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.Music.ctxData">
|
||||
<span class="sig-name descname"><span class="pre">ctxData</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">Any</span></em><a class="headerlink" href="#raylib.Music.ctxData" title="Link to this definition"></a></dt>
|
||||
|
@ -9318,7 +9318,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.NPatchInfo">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">NPatchInfo</span></span><a class="headerlink" href="#raylib.NPatchInfo" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">NPatchInfo</span></span><a class="headerlink" href="#raylib.NPatchInfo" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.NPatchInfo.bottom">
|
||||
<span class="sig-name descname"><span class="pre">bottom</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">int</span></em><a class="headerlink" href="#raylib.NPatchInfo.bottom" title="Link to this definition"></a></dt>
|
||||
|
@ -9554,7 +9554,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.PhysicsBodyData">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">PhysicsBodyData</span></span><a class="headerlink" href="#raylib.PhysicsBodyData" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">PhysicsBodyData</span></span><a class="headerlink" href="#raylib.PhysicsBodyData" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.PhysicsBodyData.angularVelocity">
|
||||
<span class="sig-name descname"><span class="pre">angularVelocity</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><a class="headerlink" href="#raylib.PhysicsBodyData.angularVelocity" title="Link to this definition"></a></dt>
|
||||
|
@ -9654,7 +9654,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.PhysicsManifoldData">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">PhysicsManifoldData</span></span><a class="headerlink" href="#raylib.PhysicsManifoldData" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">PhysicsManifoldData</span></span><a class="headerlink" href="#raylib.PhysicsManifoldData" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.PhysicsManifoldData.bodyA">
|
||||
<span class="sig-name descname"><span class="pre">bodyA</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">Any</span></em><a class="headerlink" href="#raylib.PhysicsManifoldData.bodyA" title="Link to this definition"></a></dt>
|
||||
|
@ -9709,7 +9709,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.PhysicsShape">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">PhysicsShape</span></span><a class="headerlink" href="#raylib.PhysicsShape" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">PhysicsShape</span></span><a class="headerlink" href="#raylib.PhysicsShape" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.PhysicsShape.body">
|
||||
<span class="sig-name descname"><span class="pre">body</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">Any</span></em><a class="headerlink" href="#raylib.PhysicsShape.body" title="Link to this definition"></a></dt>
|
||||
|
@ -9750,7 +9750,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.PhysicsVertexData">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">PhysicsVertexData</span></span><a class="headerlink" href="#raylib.PhysicsVertexData" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">PhysicsVertexData</span></span><a class="headerlink" href="#raylib.PhysicsVertexData" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.PhysicsVertexData.normals">
|
||||
<span class="sig-name descname"><span class="pre">normals</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">list</span></em><a class="headerlink" href="#raylib.PhysicsVertexData.normals" title="Link to this definition"></a></dt>
|
||||
|
@ -9805,7 +9805,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.Quaternion">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Quaternion</span></span><a class="headerlink" href="#raylib.Quaternion" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Quaternion</span></span><a class="headerlink" href="#raylib.Quaternion" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.Quaternion.w">
|
||||
<span class="sig-name descname"><span class="pre">w</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><a class="headerlink" href="#raylib.Quaternion.w" title="Link to this definition"></a></dt>
|
||||
|
@ -10535,7 +10535,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.Ray">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Ray</span></span><a class="headerlink" href="#raylib.Ray" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Ray</span></span><a class="headerlink" href="#raylib.Ray" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.Ray.direction">
|
||||
<span class="sig-name descname"><span class="pre">direction</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><a class="reference internal" href="#raylib.Vector3" title="raylib.Vector3"><span class="pre">Vector3</span></a></em><a class="headerlink" href="#raylib.Ray.direction" title="Link to this definition"></a></dt>
|
||||
|
@ -10550,7 +10550,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.RayCollision">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">RayCollision</span></span><a class="headerlink" href="#raylib.RayCollision" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">RayCollision</span></span><a class="headerlink" href="#raylib.RayCollision" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.RayCollision.distance">
|
||||
<span class="sig-name descname"><span class="pre">distance</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><a class="headerlink" href="#raylib.RayCollision.distance" title="Link to this definition"></a></dt>
|
||||
|
@ -10575,7 +10575,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.Rectangle">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Rectangle</span></span><a class="headerlink" href="#raylib.Rectangle" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Rectangle</span></span><a class="headerlink" href="#raylib.Rectangle" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.Rectangle.height">
|
||||
<span class="sig-name descname"><span class="pre">height</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><a class="headerlink" href="#raylib.Rectangle.height" title="Link to this definition"></a></dt>
|
||||
|
@ -10605,7 +10605,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.RenderTexture">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">RenderTexture</span></span><a class="headerlink" href="#raylib.RenderTexture" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">RenderTexture</span></span><a class="headerlink" href="#raylib.RenderTexture" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.RenderTexture.depth">
|
||||
<span class="sig-name descname"><span class="pre">depth</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><a class="reference internal" href="#raylib.Texture" title="raylib.Texture"><span class="pre">Texture</span></a></em><a class="headerlink" href="#raylib.RenderTexture.depth" title="Link to this definition"></a></dt>
|
||||
|
@ -10625,7 +10625,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.RenderTexture2D">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">RenderTexture2D</span></span><a class="headerlink" href="#raylib.RenderTexture2D" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">RenderTexture2D</span></span><a class="headerlink" href="#raylib.RenderTexture2D" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.RenderTexture2D.depth">
|
||||
<span class="sig-name descname"><span class="pre">depth</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><a class="reference internal" href="#raylib.Texture" title="raylib.Texture"><span class="pre">Texture</span></a></em><a class="headerlink" href="#raylib.RenderTexture2D.depth" title="Link to this definition"></a></dt>
|
||||
|
@ -11340,7 +11340,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.Shader">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Shader</span></span><a class="headerlink" href="#raylib.Shader" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Shader</span></span><a class="headerlink" href="#raylib.Shader" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.Shader.id">
|
||||
<span class="sig-name descname"><span class="pre">id</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">int</span></em><a class="headerlink" href="#raylib.Shader.id" title="Link to this definition"></a></dt>
|
||||
|
@ -11376,7 +11376,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.Sound">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Sound</span></span><a class="headerlink" href="#raylib.Sound" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Sound</span></span><a class="headerlink" href="#raylib.Sound" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.Sound.frameCount">
|
||||
<span class="sig-name descname"><span class="pre">frameCount</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">int</span></em><a class="headerlink" href="#raylib.Sound.frameCount" title="Link to this definition"></a></dt>
|
||||
|
@ -11706,7 +11706,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.Texture">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Texture</span></span><a class="headerlink" href="#raylib.Texture" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Texture</span></span><a class="headerlink" href="#raylib.Texture" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.Texture.format">
|
||||
<span class="sig-name descname"><span class="pre">format</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">int</span></em><a class="headerlink" href="#raylib.Texture.format" title="Link to this definition"></a></dt>
|
||||
|
@ -11736,7 +11736,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.Texture2D">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Texture2D</span></span><a class="headerlink" href="#raylib.Texture2D" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Texture2D</span></span><a class="headerlink" href="#raylib.Texture2D" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.Texture2D.format">
|
||||
<span class="sig-name descname"><span class="pre">format</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">int</span></em><a class="headerlink" href="#raylib.Texture2D.format" title="Link to this definition"></a></dt>
|
||||
|
@ -11766,7 +11766,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.TextureCubemap">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">TextureCubemap</span></span><a class="headerlink" href="#raylib.TextureCubemap" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">TextureCubemap</span></span><a class="headerlink" href="#raylib.TextureCubemap" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.TextureCubemap.format">
|
||||
<span class="sig-name descname"><span class="pre">format</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">int</span></em><a class="headerlink" href="#raylib.TextureCubemap.format" title="Link to this definition"></a></dt>
|
||||
|
@ -11829,7 +11829,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.Transform">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Transform</span></span><a class="headerlink" href="#raylib.Transform" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Transform</span></span><a class="headerlink" href="#raylib.Transform" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.Transform.rotation">
|
||||
<span class="sig-name descname"><span class="pre">rotation</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><a class="reference internal" href="#raylib.Vector4" title="raylib.Vector4"><span class="pre">Vector4</span></a></em><a class="headerlink" href="#raylib.Transform.rotation" title="Link to this definition"></a></dt>
|
||||
|
@ -12099,7 +12099,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.Vector2">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Vector2</span></span><a class="headerlink" href="#raylib.Vector2" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Vector2</span></span><a class="headerlink" href="#raylib.Vector2" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.Vector2.x">
|
||||
<span class="sig-name descname"><span class="pre">x</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><a class="headerlink" href="#raylib.Vector2.x" title="Link to this definition"></a></dt>
|
||||
|
@ -12264,7 +12264,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.Vector3">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Vector3</span></span><a class="headerlink" href="#raylib.Vector3" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Vector3</span></span><a class="headerlink" href="#raylib.Vector3" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.Vector3.x">
|
||||
<span class="sig-name descname"><span class="pre">x</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><a class="headerlink" href="#raylib.Vector3.x" title="Link to this definition"></a></dt>
|
||||
|
@ -12479,7 +12479,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.Vector4">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Vector4</span></span><a class="headerlink" href="#raylib.Vector4" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Vector4</span></span><a class="headerlink" href="#raylib.Vector4" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.Vector4.w">
|
||||
<span class="sig-name descname"><span class="pre">w</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">float</span></em><a class="headerlink" href="#raylib.Vector4.w" title="Link to this definition"></a></dt>
|
||||
|
@ -12614,7 +12614,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.VrDeviceInfo">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">VrDeviceInfo</span></span><a class="headerlink" href="#raylib.VrDeviceInfo" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">VrDeviceInfo</span></span><a class="headerlink" href="#raylib.VrDeviceInfo" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.VrDeviceInfo.chromaAbCorrection">
|
||||
<span class="sig-name descname"><span class="pre">chromaAbCorrection</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">list</span></em><a class="headerlink" href="#raylib.VrDeviceInfo.chromaAbCorrection" title="Link to this definition"></a></dt>
|
||||
|
@ -12664,7 +12664,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.VrStereoConfig">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">VrStereoConfig</span></span><a class="headerlink" href="#raylib.VrStereoConfig" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">VrStereoConfig</span></span><a class="headerlink" href="#raylib.VrStereoConfig" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.VrStereoConfig.leftLensCenter">
|
||||
<span class="sig-name descname"><span class="pre">leftLensCenter</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">list</span></em><a class="headerlink" href="#raylib.VrStereoConfig.leftLensCenter" title="Link to this definition"></a></dt>
|
||||
|
@ -12720,7 +12720,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.Wave">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Wave</span></span><a class="headerlink" href="#raylib.Wave" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">Wave</span></span><a class="headerlink" href="#raylib.Wave" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.Wave.channels">
|
||||
<span class="sig-name descname"><span class="pre">channels</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">int</span></em><a class="headerlink" href="#raylib.Wave.channels" title="Link to this definition"></a></dt>
|
||||
|
@ -12789,7 +12789,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.float16">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">float16</span></span><a class="headerlink" href="#raylib.float16" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">float16</span></span><a class="headerlink" href="#raylib.float16" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.float16.v">
|
||||
<span class="sig-name descname"><span class="pre">v</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">list</span></em><a class="headerlink" href="#raylib.float16.v" title="Link to this definition"></a></dt>
|
||||
|
@ -12799,7 +12799,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.float3">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">float3</span></span><a class="headerlink" href="#raylib.float3" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">float3</span></span><a class="headerlink" href="#raylib.float3" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.float3.v">
|
||||
<span class="sig-name descname"><span class="pre">v</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">list</span></em><a class="headerlink" href="#raylib.float3.v" title="Link to this definition"></a></dt>
|
||||
|
@ -13409,12 +13409,12 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.rAudioBuffer">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">rAudioBuffer</span></span><a class="headerlink" href="#raylib.rAudioBuffer" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">rAudioBuffer</span></span><a class="headerlink" href="#raylib.rAudioBuffer" title="Link to this definition"></a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.rAudioProcessor">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">rAudioProcessor</span></span><a class="headerlink" href="#raylib.rAudioProcessor" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">rAudioProcessor</span></span><a class="headerlink" href="#raylib.rAudioProcessor" title="Link to this definition"></a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
<dl class="py data">
|
||||
|
@ -13644,7 +13644,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.rlDrawCall">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">rlDrawCall</span></span><a class="headerlink" href="#raylib.rlDrawCall" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">rlDrawCall</span></span><a class="headerlink" href="#raylib.rlDrawCall" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.rlDrawCall.mode">
|
||||
<span class="sig-name descname"><span class="pre">mode</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">int</span></em><a class="headerlink" href="#raylib.rlDrawCall.mode" title="Link to this definition"></a></dt>
|
||||
|
@ -14131,7 +14131,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.rlRenderBatch">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">rlRenderBatch</span></span><a class="headerlink" href="#raylib.rlRenderBatch" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">rlRenderBatch</span></span><a class="headerlink" href="#raylib.rlRenderBatch" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.rlRenderBatch.bufferCount">
|
||||
<span class="sig-name descname"><span class="pre">bufferCount</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">int</span></em><a class="headerlink" href="#raylib.rlRenderBatch.bufferCount" title="Link to this definition"></a></dt>
|
||||
|
@ -14443,7 +14443,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.rlVertexBuffer">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">rlVertexBuffer</span></span><a class="headerlink" href="#raylib.rlVertexBuffer" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">rlVertexBuffer</span></span><a class="headerlink" href="#raylib.rlVertexBuffer" title="Link to this definition"></a></dt>
|
||||
<dd><dl class="py attribute">
|
||||
<dt class="sig sig-object py" id="raylib.rlVertexBuffer.colors">
|
||||
<span class="sig-name descname"><span class="pre">colors</span></span><em class="property"><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="pre">bytes</span></em><a class="headerlink" href="#raylib.rlVertexBuffer.colors" title="Link to this definition"></a></dt>
|
||||
|
@ -14506,7 +14506,7 @@ are very, very similar to the C originals.</p>
|
|||
|
||||
<dl class="py class">
|
||||
<dt class="sig sig-object py" id="raylib.struct">
|
||||
<em class="property"><span class="pre">class</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">struct</span></span><a class="headerlink" href="#raylib.struct" title="Link to this definition"></a></dt>
|
||||
<em class="property"><span class="k"><span class="pre">class</span></span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">raylib.</span></span><span class="sig-name descname"><span class="pre">struct</span></span><a class="headerlink" href="#raylib.struct" title="Link to this definition"></a></dt>
|
||||
<dd></dd></dl>
|
||||
|
||||
</section>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Search — Raylib Python documentation</title>
|
||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=03e43079" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=e59714d7" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/graphviz.css?v=4ae1632d" />
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,7 @@
|
|||
from enum import IntEnum
|
||||
|
||||
class ConfigFlags(IntEnum):
|
||||
"""System/Window config flags."""
|
||||
FLAG_VSYNC_HINT = 64
|
||||
FLAG_FULLSCREEN_MODE = 2
|
||||
FLAG_WINDOW_RESIZABLE = 4
|
||||
|
@ -19,6 +20,7 @@ class ConfigFlags(IntEnum):
|
|||
FLAG_INTERLACED_HINT = 65536
|
||||
|
||||
class TraceLogLevel(IntEnum):
|
||||
"""Trace log level."""
|
||||
LOG_ALL = 0
|
||||
LOG_TRACE = 1
|
||||
LOG_DEBUG = 2
|
||||
|
@ -29,6 +31,7 @@ class TraceLogLevel(IntEnum):
|
|||
LOG_NONE = 7
|
||||
|
||||
class KeyboardKey(IntEnum):
|
||||
"""Keyboard keys (US keyboard layout)."""
|
||||
KEY_NULL = 0
|
||||
KEY_APOSTROPHE = 39
|
||||
KEY_COMMA = 44
|
||||
|
@ -141,6 +144,7 @@ class KeyboardKey(IntEnum):
|
|||
KEY_VOLUME_DOWN = 25
|
||||
|
||||
class MouseButton(IntEnum):
|
||||
"""Mouse buttons."""
|
||||
MOUSE_BUTTON_LEFT = 0
|
||||
MOUSE_BUTTON_RIGHT = 1
|
||||
MOUSE_BUTTON_MIDDLE = 2
|
||||
|
@ -150,6 +154,7 @@ class MouseButton(IntEnum):
|
|||
MOUSE_BUTTON_BACK = 6
|
||||
|
||||
class MouseCursor(IntEnum):
|
||||
"""Mouse cursor."""
|
||||
MOUSE_CURSOR_DEFAULT = 0
|
||||
MOUSE_CURSOR_ARROW = 1
|
||||
MOUSE_CURSOR_IBEAM = 2
|
||||
|
@ -163,6 +168,7 @@ class MouseCursor(IntEnum):
|
|||
MOUSE_CURSOR_NOT_ALLOWED = 10
|
||||
|
||||
class GamepadButton(IntEnum):
|
||||
"""Gamepad buttons."""
|
||||
GAMEPAD_BUTTON_UNKNOWN = 0
|
||||
GAMEPAD_BUTTON_LEFT_FACE_UP = 1
|
||||
GAMEPAD_BUTTON_LEFT_FACE_RIGHT = 2
|
||||
|
@ -183,6 +189,7 @@ class GamepadButton(IntEnum):
|
|||
GAMEPAD_BUTTON_RIGHT_THUMB = 17
|
||||
|
||||
class GamepadAxis(IntEnum):
|
||||
"""Gamepad axis."""
|
||||
GAMEPAD_AXIS_LEFT_X = 0
|
||||
GAMEPAD_AXIS_LEFT_Y = 1
|
||||
GAMEPAD_AXIS_RIGHT_X = 2
|
||||
|
@ -191,6 +198,7 @@ class GamepadAxis(IntEnum):
|
|||
GAMEPAD_AXIS_RIGHT_TRIGGER = 5
|
||||
|
||||
class MaterialMapIndex(IntEnum):
|
||||
"""Material map index."""
|
||||
MATERIAL_MAP_ALBEDO = 0
|
||||
MATERIAL_MAP_METALNESS = 1
|
||||
MATERIAL_MAP_NORMAL = 2
|
||||
|
@ -204,6 +212,7 @@ class MaterialMapIndex(IntEnum):
|
|||
MATERIAL_MAP_BRDF = 10
|
||||
|
||||
class ShaderLocationIndex(IntEnum):
|
||||
"""Shader location index."""
|
||||
SHADER_LOC_VERTEX_POSITION = 0
|
||||
SHADER_LOC_VERTEX_TEXCOORD01 = 1
|
||||
SHADER_LOC_VERTEX_TEXCOORD02 = 2
|
||||
|
@ -235,6 +244,7 @@ class ShaderLocationIndex(IntEnum):
|
|||
SHADER_LOC_BONE_MATRICES = 28
|
||||
|
||||
class ShaderUniformDataType(IntEnum):
|
||||
"""Shader uniform data type."""
|
||||
SHADER_UNIFORM_FLOAT = 0
|
||||
SHADER_UNIFORM_VEC2 = 1
|
||||
SHADER_UNIFORM_VEC3 = 2
|
||||
|
@ -246,12 +256,14 @@ class ShaderUniformDataType(IntEnum):
|
|||
SHADER_UNIFORM_SAMPLER2D = 8
|
||||
|
||||
class ShaderAttributeDataType(IntEnum):
|
||||
"""Shader attribute data types."""
|
||||
SHADER_ATTRIB_FLOAT = 0
|
||||
SHADER_ATTRIB_VEC2 = 1
|
||||
SHADER_ATTRIB_VEC3 = 2
|
||||
SHADER_ATTRIB_VEC4 = 3
|
||||
|
||||
class PixelFormat(IntEnum):
|
||||
"""Pixel formats."""
|
||||
PIXELFORMAT_UNCOMPRESSED_GRAYSCALE = 1
|
||||
PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA = 2
|
||||
PIXELFORMAT_UNCOMPRESSED_R5G6B5 = 3
|
||||
|
@ -278,6 +290,7 @@ class PixelFormat(IntEnum):
|
|||
PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA = 24
|
||||
|
||||
class TextureFilter(IntEnum):
|
||||
"""Texture parameters: filter mode."""
|
||||
TEXTURE_FILTER_POINT = 0
|
||||
TEXTURE_FILTER_BILINEAR = 1
|
||||
TEXTURE_FILTER_TRILINEAR = 2
|
||||
|
@ -286,12 +299,14 @@ class TextureFilter(IntEnum):
|
|||
TEXTURE_FILTER_ANISOTROPIC_16X = 5
|
||||
|
||||
class TextureWrap(IntEnum):
|
||||
"""Texture parameters: wrap mode."""
|
||||
TEXTURE_WRAP_REPEAT = 0
|
||||
TEXTURE_WRAP_CLAMP = 1
|
||||
TEXTURE_WRAP_MIRROR_REPEAT = 2
|
||||
TEXTURE_WRAP_MIRROR_CLAMP = 3
|
||||
|
||||
class CubemapLayout(IntEnum):
|
||||
"""Cubemap layouts."""
|
||||
CUBEMAP_LAYOUT_AUTO_DETECT = 0
|
||||
CUBEMAP_LAYOUT_LINE_VERTICAL = 1
|
||||
CUBEMAP_LAYOUT_LINE_HORIZONTAL = 2
|
||||
|
@ -299,11 +314,13 @@ class CubemapLayout(IntEnum):
|
|||
CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE = 4
|
||||
|
||||
class FontType(IntEnum):
|
||||
"""Font type, defines generation method."""
|
||||
FONT_DEFAULT = 0
|
||||
FONT_BITMAP = 1
|
||||
FONT_SDF = 2
|
||||
|
||||
class BlendMode(IntEnum):
|
||||
"""Color blending modes (pre-defined)."""
|
||||
BLEND_ALPHA = 0
|
||||
BLEND_ADDITIVE = 1
|
||||
BLEND_MULTIPLIED = 2
|
||||
|
@ -314,6 +331,7 @@ class BlendMode(IntEnum):
|
|||
BLEND_CUSTOM_SEPARATE = 7
|
||||
|
||||
class Gesture(IntEnum):
|
||||
"""Gesture."""
|
||||
GESTURE_NONE = 0
|
||||
GESTURE_TAP = 1
|
||||
GESTURE_DOUBLETAP = 2
|
||||
|
@ -327,6 +345,7 @@ class Gesture(IntEnum):
|
|||
GESTURE_PINCH_OUT = 512
|
||||
|
||||
class CameraMode(IntEnum):
|
||||
"""Camera system modes."""
|
||||
CAMERA_CUSTOM = 0
|
||||
CAMERA_FREE = 1
|
||||
CAMERA_ORBITAL = 2
|
||||
|
@ -334,36 +353,43 @@ class CameraMode(IntEnum):
|
|||
CAMERA_THIRD_PERSON = 4
|
||||
|
||||
class CameraProjection(IntEnum):
|
||||
"""Camera projection."""
|
||||
CAMERA_PERSPECTIVE = 0
|
||||
CAMERA_ORTHOGRAPHIC = 1
|
||||
|
||||
class NPatchLayout(IntEnum):
|
||||
"""N-patch layout."""
|
||||
NPATCH_NINE_PATCH = 0
|
||||
NPATCH_THREE_PATCH_VERTICAL = 1
|
||||
NPATCH_THREE_PATCH_HORIZONTAL = 2
|
||||
|
||||
class GuiState(IntEnum):
|
||||
"""Gui control state."""
|
||||
STATE_NORMAL = 0
|
||||
STATE_FOCUSED = 1
|
||||
STATE_PRESSED = 2
|
||||
STATE_DISABLED = 3
|
||||
|
||||
class GuiTextAlignment(IntEnum):
|
||||
"""Gui control text alignment."""
|
||||
TEXT_ALIGN_LEFT = 0
|
||||
TEXT_ALIGN_CENTER = 1
|
||||
TEXT_ALIGN_RIGHT = 2
|
||||
|
||||
class GuiTextAlignmentVertical(IntEnum):
|
||||
"""Gui control text alignment vertical."""
|
||||
TEXT_ALIGN_TOP = 0
|
||||
TEXT_ALIGN_MIDDLE = 1
|
||||
TEXT_ALIGN_BOTTOM = 2
|
||||
|
||||
class GuiTextWrapMode(IntEnum):
|
||||
"""Gui control text wrap mode."""
|
||||
TEXT_WRAP_NONE = 0
|
||||
TEXT_WRAP_CHAR = 1
|
||||
TEXT_WRAP_WORD = 2
|
||||
|
||||
class GuiControl(IntEnum):
|
||||
"""Gui controls."""
|
||||
DEFAULT = 0
|
||||
LABEL = 1
|
||||
BUTTON = 2
|
||||
|
@ -382,6 +408,7 @@ class GuiControl(IntEnum):
|
|||
STATUSBAR = 15
|
||||
|
||||
class GuiControlProperty(IntEnum):
|
||||
"""Gui base properties for every control."""
|
||||
BORDER_COLOR_NORMAL = 0
|
||||
BASE_COLOR_NORMAL = 1
|
||||
TEXT_COLOR_NORMAL = 2
|
||||
|
@ -399,6 +426,7 @@ class GuiControlProperty(IntEnum):
|
|||
TEXT_ALIGNMENT = 14
|
||||
|
||||
class GuiDefaultProperty(IntEnum):
|
||||
"""DEFAULT extended properties."""
|
||||
TEXT_SIZE = 16
|
||||
TEXT_SPACING = 17
|
||||
LINE_COLOR = 18
|
||||
|
@ -408,16 +436,20 @@ class GuiDefaultProperty(IntEnum):
|
|||
TEXT_WRAP_MODE = 22
|
||||
|
||||
class GuiToggleProperty(IntEnum):
|
||||
"""Toggle/ToggleGroup."""
|
||||
GROUP_PADDING = 16
|
||||
|
||||
class GuiSliderProperty(IntEnum):
|
||||
"""Slider/SliderBar."""
|
||||
SLIDER_WIDTH = 16
|
||||
SLIDER_PADDING = 17
|
||||
|
||||
class GuiProgressBarProperty(IntEnum):
|
||||
"""ProgressBar."""
|
||||
PROGRESS_PADDING = 16
|
||||
|
||||
class GuiScrollBarProperty(IntEnum):
|
||||
"""ScrollBar."""
|
||||
ARROWS_SIZE = 16
|
||||
ARROWS_VISIBLE = 17
|
||||
SCROLL_SLIDER_PADDING = 18
|
||||
|
@ -426,26 +458,32 @@ class GuiScrollBarProperty(IntEnum):
|
|||
SCROLL_SPEED = 21
|
||||
|
||||
class GuiCheckBoxProperty(IntEnum):
|
||||
"""CheckBox."""
|
||||
CHECK_PADDING = 16
|
||||
|
||||
class GuiComboBoxProperty(IntEnum):
|
||||
"""ComboBox."""
|
||||
COMBO_BUTTON_WIDTH = 16
|
||||
COMBO_BUTTON_SPACING = 17
|
||||
|
||||
class GuiDropdownBoxProperty(IntEnum):
|
||||
"""DropdownBox."""
|
||||
ARROW_PADDING = 16
|
||||
DROPDOWN_ITEMS_SPACING = 17
|
||||
DROPDOWN_ARROW_HIDDEN = 18
|
||||
DROPDOWN_ROLL_UP = 19
|
||||
|
||||
class GuiTextBoxProperty(IntEnum):
|
||||
"""TextBox/TextBoxMulti/ValueBox/Spinner."""
|
||||
TEXT_READONLY = 16
|
||||
|
||||
class GuiSpinnerProperty(IntEnum):
|
||||
"""Spinner."""
|
||||
SPIN_BUTTON_WIDTH = 16
|
||||
SPIN_BUTTON_SPACING = 17
|
||||
|
||||
class GuiListViewProperty(IntEnum):
|
||||
"""ListView."""
|
||||
LIST_ITEMS_HEIGHT = 16
|
||||
LIST_ITEMS_SPACING = 17
|
||||
SCROLLBAR_WIDTH = 18
|
||||
|
@ -453,6 +491,7 @@ class GuiListViewProperty(IntEnum):
|
|||
LIST_ITEMS_BORDER_WIDTH = 20
|
||||
|
||||
class GuiColorPickerProperty(IntEnum):
|
||||
"""ColorPicker."""
|
||||
COLOR_SELECTOR_SIZE = 16
|
||||
HUEBAR_WIDTH = 17
|
||||
HUEBAR_PADDING = 18
|
||||
|
@ -460,6 +499,7 @@ class GuiColorPickerProperty(IntEnum):
|
|||
HUEBAR_SELECTOR_OVERFLOW = 20
|
||||
|
||||
class GuiIconName(IntEnum):
|
||||
"""."""
|
||||
ICON_NONE = 0
|
||||
ICON_FOLDER_FILE_OPEN = 1
|
||||
ICON_FILE_SAVE_CLASSIC = 2
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
class ConfigFlags(int):
|
||||
"""System/Window config flags."""
|
||||
FLAG_VSYNC_HINT = 64
|
||||
FLAG_FULLSCREEN_MODE = 2
|
||||
FLAG_WINDOW_RESIZABLE = 4
|
||||
|
@ -17,6 +18,7 @@ class ConfigFlags(int):
|
|||
FLAG_INTERLACED_HINT = 65536
|
||||
|
||||
class TraceLogLevel(int):
|
||||
"""Trace log level."""
|
||||
LOG_ALL = 0
|
||||
LOG_TRACE = 1
|
||||
LOG_DEBUG = 2
|
||||
|
@ -27,6 +29,7 @@ class TraceLogLevel(int):
|
|||
LOG_NONE = 7
|
||||
|
||||
class KeyboardKey(int):
|
||||
"""Keyboard keys (US keyboard layout)."""
|
||||
KEY_NULL = 0
|
||||
KEY_APOSTROPHE = 39
|
||||
KEY_COMMA = 44
|
||||
|
@ -139,6 +142,7 @@ class KeyboardKey(int):
|
|||
KEY_VOLUME_DOWN = 25
|
||||
|
||||
class MouseButton(int):
|
||||
"""Mouse buttons."""
|
||||
MOUSE_BUTTON_LEFT = 0
|
||||
MOUSE_BUTTON_RIGHT = 1
|
||||
MOUSE_BUTTON_MIDDLE = 2
|
||||
|
@ -148,6 +152,7 @@ class MouseButton(int):
|
|||
MOUSE_BUTTON_BACK = 6
|
||||
|
||||
class MouseCursor(int):
|
||||
"""Mouse cursor."""
|
||||
MOUSE_CURSOR_DEFAULT = 0
|
||||
MOUSE_CURSOR_ARROW = 1
|
||||
MOUSE_CURSOR_IBEAM = 2
|
||||
|
@ -161,6 +166,7 @@ class MouseCursor(int):
|
|||
MOUSE_CURSOR_NOT_ALLOWED = 10
|
||||
|
||||
class GamepadButton(int):
|
||||
"""Gamepad buttons."""
|
||||
GAMEPAD_BUTTON_UNKNOWN = 0
|
||||
GAMEPAD_BUTTON_LEFT_FACE_UP = 1
|
||||
GAMEPAD_BUTTON_LEFT_FACE_RIGHT = 2
|
||||
|
@ -181,6 +187,7 @@ class GamepadButton(int):
|
|||
GAMEPAD_BUTTON_RIGHT_THUMB = 17
|
||||
|
||||
class GamepadAxis(int):
|
||||
"""Gamepad axis."""
|
||||
GAMEPAD_AXIS_LEFT_X = 0
|
||||
GAMEPAD_AXIS_LEFT_Y = 1
|
||||
GAMEPAD_AXIS_RIGHT_X = 2
|
||||
|
@ -189,6 +196,7 @@ class GamepadAxis(int):
|
|||
GAMEPAD_AXIS_RIGHT_TRIGGER = 5
|
||||
|
||||
class MaterialMapIndex(int):
|
||||
"""Material map index."""
|
||||
MATERIAL_MAP_ALBEDO = 0
|
||||
MATERIAL_MAP_METALNESS = 1
|
||||
MATERIAL_MAP_NORMAL = 2
|
||||
|
@ -202,6 +210,7 @@ class MaterialMapIndex(int):
|
|||
MATERIAL_MAP_BRDF = 10
|
||||
|
||||
class ShaderLocationIndex(int):
|
||||
"""Shader location index."""
|
||||
SHADER_LOC_VERTEX_POSITION = 0
|
||||
SHADER_LOC_VERTEX_TEXCOORD01 = 1
|
||||
SHADER_LOC_VERTEX_TEXCOORD02 = 2
|
||||
|
@ -233,6 +242,7 @@ class ShaderLocationIndex(int):
|
|||
SHADER_LOC_BONE_MATRICES = 28
|
||||
|
||||
class ShaderUniformDataType(int):
|
||||
"""Shader uniform data type."""
|
||||
SHADER_UNIFORM_FLOAT = 0
|
||||
SHADER_UNIFORM_VEC2 = 1
|
||||
SHADER_UNIFORM_VEC3 = 2
|
||||
|
@ -244,12 +254,14 @@ class ShaderUniformDataType(int):
|
|||
SHADER_UNIFORM_SAMPLER2D = 8
|
||||
|
||||
class ShaderAttributeDataType(int):
|
||||
"""Shader attribute data types."""
|
||||
SHADER_ATTRIB_FLOAT = 0
|
||||
SHADER_ATTRIB_VEC2 = 1
|
||||
SHADER_ATTRIB_VEC3 = 2
|
||||
SHADER_ATTRIB_VEC4 = 3
|
||||
|
||||
class PixelFormat(int):
|
||||
"""Pixel formats."""
|
||||
PIXELFORMAT_UNCOMPRESSED_GRAYSCALE = 1
|
||||
PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA = 2
|
||||
PIXELFORMAT_UNCOMPRESSED_R5G6B5 = 3
|
||||
|
@ -276,6 +288,7 @@ class PixelFormat(int):
|
|||
PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA = 24
|
||||
|
||||
class TextureFilter(int):
|
||||
"""Texture parameters: filter mode."""
|
||||
TEXTURE_FILTER_POINT = 0
|
||||
TEXTURE_FILTER_BILINEAR = 1
|
||||
TEXTURE_FILTER_TRILINEAR = 2
|
||||
|
@ -284,12 +297,14 @@ class TextureFilter(int):
|
|||
TEXTURE_FILTER_ANISOTROPIC_16X = 5
|
||||
|
||||
class TextureWrap(int):
|
||||
"""Texture parameters: wrap mode."""
|
||||
TEXTURE_WRAP_REPEAT = 0
|
||||
TEXTURE_WRAP_CLAMP = 1
|
||||
TEXTURE_WRAP_MIRROR_REPEAT = 2
|
||||
TEXTURE_WRAP_MIRROR_CLAMP = 3
|
||||
|
||||
class CubemapLayout(int):
|
||||
"""Cubemap layouts."""
|
||||
CUBEMAP_LAYOUT_AUTO_DETECT = 0
|
||||
CUBEMAP_LAYOUT_LINE_VERTICAL = 1
|
||||
CUBEMAP_LAYOUT_LINE_HORIZONTAL = 2
|
||||
|
@ -297,11 +312,13 @@ class CubemapLayout(int):
|
|||
CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE = 4
|
||||
|
||||
class FontType(int):
|
||||
"""Font type, defines generation method."""
|
||||
FONT_DEFAULT = 0
|
||||
FONT_BITMAP = 1
|
||||
FONT_SDF = 2
|
||||
|
||||
class BlendMode(int):
|
||||
"""Color blending modes (pre-defined)."""
|
||||
BLEND_ALPHA = 0
|
||||
BLEND_ADDITIVE = 1
|
||||
BLEND_MULTIPLIED = 2
|
||||
|
@ -312,6 +329,7 @@ class BlendMode(int):
|
|||
BLEND_CUSTOM_SEPARATE = 7
|
||||
|
||||
class Gesture(int):
|
||||
"""Gesture."""
|
||||
GESTURE_NONE = 0
|
||||
GESTURE_TAP = 1
|
||||
GESTURE_DOUBLETAP = 2
|
||||
|
@ -325,6 +343,7 @@ class Gesture(int):
|
|||
GESTURE_PINCH_OUT = 512
|
||||
|
||||
class CameraMode(int):
|
||||
"""Camera system modes."""
|
||||
CAMERA_CUSTOM = 0
|
||||
CAMERA_FREE = 1
|
||||
CAMERA_ORBITAL = 2
|
||||
|
@ -332,15 +351,18 @@ class CameraMode(int):
|
|||
CAMERA_THIRD_PERSON = 4
|
||||
|
||||
class CameraProjection(int):
|
||||
"""Camera projection."""
|
||||
CAMERA_PERSPECTIVE = 0
|
||||
CAMERA_ORTHOGRAPHIC = 1
|
||||
|
||||
class NPatchLayout(int):
|
||||
"""N-patch layout."""
|
||||
NPATCH_NINE_PATCH = 0
|
||||
NPATCH_THREE_PATCH_VERTICAL = 1
|
||||
NPATCH_THREE_PATCH_HORIZONTAL = 2
|
||||
|
||||
class rlGlVersion(int):
|
||||
"""OpenGL version."""
|
||||
RL_OPENGL_11 = 1
|
||||
RL_OPENGL_21 = 2
|
||||
RL_OPENGL_33 = 3
|
||||
|
@ -349,6 +371,7 @@ class rlGlVersion(int):
|
|||
RL_OPENGL_ES_30 = 6
|
||||
|
||||
class rlTraceLogLevel(int):
|
||||
"""Trace log level."""
|
||||
RL_LOG_ALL = 0
|
||||
RL_LOG_TRACE = 1
|
||||
RL_LOG_DEBUG = 2
|
||||
|
@ -359,6 +382,7 @@ class rlTraceLogLevel(int):
|
|||
RL_LOG_NONE = 7
|
||||
|
||||
class rlPixelFormat(int):
|
||||
"""Texture pixel formats."""
|
||||
RL_PIXELFORMAT_UNCOMPRESSED_GRAYSCALE = 1
|
||||
RL_PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA = 2
|
||||
RL_PIXELFORMAT_UNCOMPRESSED_R5G6B5 = 3
|
||||
|
@ -385,6 +409,7 @@ class rlPixelFormat(int):
|
|||
RL_PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA = 24
|
||||
|
||||
class rlTextureFilter(int):
|
||||
"""Texture parameters: filter mode."""
|
||||
RL_TEXTURE_FILTER_POINT = 0
|
||||
RL_TEXTURE_FILTER_BILINEAR = 1
|
||||
RL_TEXTURE_FILTER_TRILINEAR = 2
|
||||
|
@ -393,6 +418,7 @@ class rlTextureFilter(int):
|
|||
RL_TEXTURE_FILTER_ANISOTROPIC_16X = 5
|
||||
|
||||
class rlBlendMode(int):
|
||||
"""Color blending modes (pre-defined)."""
|
||||
RL_BLEND_ALPHA = 0
|
||||
RL_BLEND_ADDITIVE = 1
|
||||
RL_BLEND_MULTIPLIED = 2
|
||||
|
@ -403,6 +429,7 @@ class rlBlendMode(int):
|
|||
RL_BLEND_CUSTOM_SEPARATE = 7
|
||||
|
||||
class rlShaderLocationIndex(int):
|
||||
"""Shader location point type."""
|
||||
RL_SHADER_LOC_VERTEX_POSITION = 0
|
||||
RL_SHADER_LOC_VERTEX_TEXCOORD01 = 1
|
||||
RL_SHADER_LOC_VERTEX_TEXCOORD02 = 2
|
||||
|
@ -431,6 +458,7 @@ class rlShaderLocationIndex(int):
|
|||
RL_SHADER_LOC_MAP_BRDF = 25
|
||||
|
||||
class rlShaderUniformDataType(int):
|
||||
"""Shader uniform data type."""
|
||||
RL_SHADER_UNIFORM_FLOAT = 0
|
||||
RL_SHADER_UNIFORM_VEC2 = 1
|
||||
RL_SHADER_UNIFORM_VEC3 = 2
|
||||
|
@ -446,12 +474,14 @@ class rlShaderUniformDataType(int):
|
|||
RL_SHADER_UNIFORM_SAMPLER2D = 12
|
||||
|
||||
class rlShaderAttributeDataType(int):
|
||||
"""Shader attribute data types."""
|
||||
RL_SHADER_ATTRIB_FLOAT = 0
|
||||
RL_SHADER_ATTRIB_VEC2 = 1
|
||||
RL_SHADER_ATTRIB_VEC3 = 2
|
||||
RL_SHADER_ATTRIB_VEC4 = 3
|
||||
|
||||
class rlFramebufferAttachType(int):
|
||||
"""Framebuffer attachment type."""
|
||||
RL_ATTACHMENT_COLOR_CHANNEL0 = 0
|
||||
RL_ATTACHMENT_COLOR_CHANNEL1 = 1
|
||||
RL_ATTACHMENT_COLOR_CHANNEL2 = 2
|
||||
|
@ -464,6 +494,7 @@ class rlFramebufferAttachType(int):
|
|||
RL_ATTACHMENT_STENCIL = 200
|
||||
|
||||
class rlFramebufferAttachTextureType(int):
|
||||
"""Framebuffer texture attachment type."""
|
||||
RL_ATTACHMENT_CUBEMAP_POSITIVE_X = 0
|
||||
RL_ATTACHMENT_CUBEMAP_NEGATIVE_X = 1
|
||||
RL_ATTACHMENT_CUBEMAP_POSITIVE_Y = 2
|
||||
|
@ -474,31 +505,37 @@ class rlFramebufferAttachTextureType(int):
|
|||
RL_ATTACHMENT_RENDERBUFFER = 200
|
||||
|
||||
class rlCullMode(int):
|
||||
"""Face culling mode."""
|
||||
RL_CULL_FACE_FRONT = 0
|
||||
RL_CULL_FACE_BACK = 1
|
||||
|
||||
class GuiState(int):
|
||||
"""Gui control state."""
|
||||
STATE_NORMAL = 0
|
||||
STATE_FOCUSED = 1
|
||||
STATE_PRESSED = 2
|
||||
STATE_DISABLED = 3
|
||||
|
||||
class GuiTextAlignment(int):
|
||||
"""Gui control text alignment."""
|
||||
TEXT_ALIGN_LEFT = 0
|
||||
TEXT_ALIGN_CENTER = 1
|
||||
TEXT_ALIGN_RIGHT = 2
|
||||
|
||||
class GuiTextAlignmentVertical(int):
|
||||
"""Gui control text alignment vertical."""
|
||||
TEXT_ALIGN_TOP = 0
|
||||
TEXT_ALIGN_MIDDLE = 1
|
||||
TEXT_ALIGN_BOTTOM = 2
|
||||
|
||||
class GuiTextWrapMode(int):
|
||||
"""Gui control text wrap mode."""
|
||||
TEXT_WRAP_NONE = 0
|
||||
TEXT_WRAP_CHAR = 1
|
||||
TEXT_WRAP_WORD = 2
|
||||
|
||||
class GuiControl(int):
|
||||
"""Gui controls."""
|
||||
DEFAULT = 0
|
||||
LABEL = 1
|
||||
BUTTON = 2
|
||||
|
@ -517,6 +554,7 @@ class GuiControl(int):
|
|||
STATUSBAR = 15
|
||||
|
||||
class GuiControlProperty(int):
|
||||
"""Gui base properties for every control."""
|
||||
BORDER_COLOR_NORMAL = 0
|
||||
BASE_COLOR_NORMAL = 1
|
||||
TEXT_COLOR_NORMAL = 2
|
||||
|
@ -534,6 +572,7 @@ class GuiControlProperty(int):
|
|||
TEXT_ALIGNMENT = 14
|
||||
|
||||
class GuiDefaultProperty(int):
|
||||
"""DEFAULT extended properties."""
|
||||
TEXT_SIZE = 16
|
||||
TEXT_SPACING = 17
|
||||
LINE_COLOR = 18
|
||||
|
@ -543,16 +582,20 @@ class GuiDefaultProperty(int):
|
|||
TEXT_WRAP_MODE = 22
|
||||
|
||||
class GuiToggleProperty(int):
|
||||
"""Toggle/ToggleGroup."""
|
||||
GROUP_PADDING = 16
|
||||
|
||||
class GuiSliderProperty(int):
|
||||
"""Slider/SliderBar."""
|
||||
SLIDER_WIDTH = 16
|
||||
SLIDER_PADDING = 17
|
||||
|
||||
class GuiProgressBarProperty(int):
|
||||
"""ProgressBar."""
|
||||
PROGRESS_PADDING = 16
|
||||
|
||||
class GuiScrollBarProperty(int):
|
||||
"""ScrollBar."""
|
||||
ARROWS_SIZE = 16
|
||||
ARROWS_VISIBLE = 17
|
||||
SCROLL_SLIDER_PADDING = 18
|
||||
|
@ -561,26 +604,32 @@ class GuiScrollBarProperty(int):
|
|||
SCROLL_SPEED = 21
|
||||
|
||||
class GuiCheckBoxProperty(int):
|
||||
"""CheckBox."""
|
||||
CHECK_PADDING = 16
|
||||
|
||||
class GuiComboBoxProperty(int):
|
||||
"""ComboBox."""
|
||||
COMBO_BUTTON_WIDTH = 16
|
||||
COMBO_BUTTON_SPACING = 17
|
||||
|
||||
class GuiDropdownBoxProperty(int):
|
||||
"""DropdownBox."""
|
||||
ARROW_PADDING = 16
|
||||
DROPDOWN_ITEMS_SPACING = 17
|
||||
DROPDOWN_ARROW_HIDDEN = 18
|
||||
DROPDOWN_ROLL_UP = 19
|
||||
|
||||
class GuiTextBoxProperty(int):
|
||||
"""TextBox/TextBoxMulti/ValueBox/Spinner."""
|
||||
TEXT_READONLY = 16
|
||||
|
||||
class GuiSpinnerProperty(int):
|
||||
"""Spinner."""
|
||||
SPIN_BUTTON_WIDTH = 16
|
||||
SPIN_BUTTON_SPACING = 17
|
||||
|
||||
class GuiListViewProperty(int):
|
||||
"""ListView."""
|
||||
LIST_ITEMS_HEIGHT = 16
|
||||
LIST_ITEMS_SPACING = 17
|
||||
SCROLLBAR_WIDTH = 18
|
||||
|
@ -588,6 +637,7 @@ class GuiListViewProperty(int):
|
|||
LIST_ITEMS_BORDER_WIDTH = 20
|
||||
|
||||
class GuiColorPickerProperty(int):
|
||||
"""ColorPicker."""
|
||||
COLOR_SELECTOR_SIZE = 16
|
||||
HUEBAR_WIDTH = 17
|
||||
HUEBAR_PADDING = 18
|
||||
|
@ -595,6 +645,7 @@ class GuiColorPickerProperty(int):
|
|||
HUEBAR_SELECTOR_OVERFLOW = 20
|
||||
|
||||
class GuiIconName(int):
|
||||
"""."""
|
||||
ICON_NONE = 0
|
||||
ICON_FOLDER_FILE_OPEN = 1
|
||||
ICON_FILE_SAVE_CLASSIC = 2
|
||||
|
@ -4081,7 +4132,7 @@ def rlgl_init(width: int,height: int,) -> None:
|
|||
"""Initialize rlgl (buffers, shaders, textures, states)"""
|
||||
...
|
||||
class AudioStream:
|
||||
""" struct """
|
||||
"""AudioStream, custom audio stream."""
|
||||
def __init__(self, buffer: Any|None = None, processor: Any|None = None, sampleRate: int|None = None, sampleSize: int|None = None, channels: int|None = None):
|
||||
self.buffer:Any = buffer # type: ignore
|
||||
self.processor:Any = processor # type: ignore
|
||||
|
@ -4089,36 +4140,36 @@ class AudioStream:
|
|||
self.sampleSize:int = sampleSize # type: ignore
|
||||
self.channels:int = channels # type: ignore
|
||||
class AutomationEvent:
|
||||
""" struct """
|
||||
"""Automation event."""
|
||||
def __init__(self, frame: int|None = None, type: int|None = None, params: list|None = None):
|
||||
self.frame:int = frame # type: ignore
|
||||
self.type:int = type # type: ignore
|
||||
self.params:list = params # type: ignore
|
||||
class AutomationEventList:
|
||||
""" struct """
|
||||
"""Automation event list."""
|
||||
def __init__(self, capacity: int|None = None, count: int|None = None, events: Any|None = None):
|
||||
self.capacity:int = capacity # type: ignore
|
||||
self.count:int = count # type: ignore
|
||||
self.events:Any = events # type: ignore
|
||||
class BoneInfo:
|
||||
""" struct """
|
||||
"""Bone, skeletal animation bone."""
|
||||
def __init__(self, name: list|None = None, parent: int|None = None):
|
||||
self.name:list = name # type: ignore
|
||||
self.parent:int = parent # type: ignore
|
||||
class BoundingBox:
|
||||
""" struct """
|
||||
"""BoundingBox."""
|
||||
def __init__(self, min: Vector3|list|tuple|None = None, max: Vector3|list|tuple|None = None):
|
||||
self.min:Vector3 = min # type: ignore
|
||||
self.max:Vector3 = max # type: ignore
|
||||
class Camera2D:
|
||||
""" struct """
|
||||
"""Camera2D, defines position/orientation in 2d space."""
|
||||
def __init__(self, offset: Vector2|list|tuple|None = None, target: Vector2|list|tuple|None = None, rotation: float|None = None, zoom: float|None = None):
|
||||
self.offset:Vector2 = offset # type: ignore
|
||||
self.target:Vector2 = target # type: ignore
|
||||
self.rotation:float = rotation # type: ignore
|
||||
self.zoom:float = zoom # type: ignore
|
||||
class Camera3D:
|
||||
""" struct """
|
||||
"""Camera, defines position/orientation in 3d space."""
|
||||
def __init__(self, position: Vector3|list|tuple|None = None, target: Vector3|list|tuple|None = None, up: Vector3|list|tuple|None = None, fovy: float|None = None, projection: int|None = None):
|
||||
self.position:Vector3 = position # type: ignore
|
||||
self.target:Vector3 = target # type: ignore
|
||||
|
@ -4126,20 +4177,20 @@ class Camera3D:
|
|||
self.fovy:float = fovy # type: ignore
|
||||
self.projection:int = projection # type: ignore
|
||||
class Color:
|
||||
""" struct """
|
||||
"""Color, 4 components, R8G8B8A8 (32bit)."""
|
||||
def __init__(self, r: int|None = None, g: int|None = None, b: int|None = None, a: int|None = None):
|
||||
self.r:int = r # type: ignore
|
||||
self.g:int = g # type: ignore
|
||||
self.b:int = b # type: ignore
|
||||
self.a:int = a # type: ignore
|
||||
class FilePathList:
|
||||
""" struct """
|
||||
"""File path list."""
|
||||
def __init__(self, capacity: int|None = None, count: int|None = None, paths: list[str]|None = None):
|
||||
self.capacity:int = capacity # type: ignore
|
||||
self.count:int = count # type: ignore
|
||||
self.paths:list[str] = paths # type: ignore
|
||||
class Font:
|
||||
""" struct """
|
||||
"""Font, font texture and GlyphInfo array data."""
|
||||
def __init__(self, baseSize: int|None = None, glyphCount: int|None = None, glyphPadding: int|None = None, texture: Texture|list|tuple|None = None, recs: Any|None = None, glyphs: Any|None = None):
|
||||
self.baseSize:int = baseSize # type: ignore
|
||||
self.glyphCount:int = glyphCount # type: ignore
|
||||
|
@ -4148,7 +4199,7 @@ class Font:
|
|||
self.recs:Any = recs # type: ignore
|
||||
self.glyphs:Any = glyphs # type: ignore
|
||||
class GlyphInfo:
|
||||
""" struct """
|
||||
"""GlyphInfo, font characters glyphs info."""
|
||||
def __init__(self, value: int|None = None, offsetX: int|None = None, offsetY: int|None = None, advanceX: int|None = None, image: Image|list|tuple|None = None):
|
||||
self.value:int = value # type: ignore
|
||||
self.offsetX:int = offsetX # type: ignore
|
||||
|
@ -4156,13 +4207,13 @@ class GlyphInfo:
|
|||
self.advanceX:int = advanceX # type: ignore
|
||||
self.image:Image = image # type: ignore
|
||||
class GuiStyleProp:
|
||||
""" struct """
|
||||
"""NOTE: Used when exporting style as code for convenience."""
|
||||
def __init__(self, controlId: int|None = None, propertyId: int|None = None, propertyValue: int|None = None):
|
||||
self.controlId:int = controlId # type: ignore
|
||||
self.propertyId:int = propertyId # type: ignore
|
||||
self.propertyValue:int = propertyValue # type: ignore
|
||||
class Image:
|
||||
""" struct """
|
||||
"""Image, pixel data stored in CPU memory (RAM)."""
|
||||
def __init__(self, data: Any|None = None, width: int|None = None, height: int|None = None, mipmaps: int|None = None, format: int|None = None):
|
||||
self.data:Any = data # type: ignore
|
||||
self.width:int = width # type: ignore
|
||||
|
@ -4170,19 +4221,19 @@ class Image:
|
|||
self.mipmaps:int = mipmaps # type: ignore
|
||||
self.format:int = format # type: ignore
|
||||
class Material:
|
||||
""" struct """
|
||||
"""Material, includes shader and maps."""
|
||||
def __init__(self, shader: Shader|list|tuple|None = None, maps: Any|None = None, params: list|None = None):
|
||||
self.shader:Shader = shader # type: ignore
|
||||
self.maps:Any = maps # type: ignore
|
||||
self.params:list = params # type: ignore
|
||||
class MaterialMap:
|
||||
""" struct """
|
||||
"""MaterialMap."""
|
||||
def __init__(self, texture: Texture|list|tuple|None = None, color: Color|list|tuple|None = None, value: float|None = None):
|
||||
self.texture:Texture = texture # type: ignore
|
||||
self.color:Color = color # type: ignore
|
||||
self.value:float = value # type: ignore
|
||||
class Matrix:
|
||||
""" struct """
|
||||
"""Matrix, 4x4 components, column major, OpenGL style, right-handed."""
|
||||
def __init__(self, m0: float|None = None, m4: float|None = None, m8: float|None = None, m12: float|None = None, m1: float|None = None, m5: float|None = None, m9: float|None = None, m13: float|None = None, m2: float|None = None, m6: float|None = None, m10: float|None = None, m14: float|None = None, m3: float|None = None, m7: float|None = None, m11: float|None = None, m15: float|None = None):
|
||||
self.m0:float = m0 # type: ignore
|
||||
self.m4:float = m4 # type: ignore
|
||||
|
@ -4201,14 +4252,14 @@ class Matrix:
|
|||
self.m11:float = m11 # type: ignore
|
||||
self.m15:float = m15 # type: ignore
|
||||
class Matrix2x2:
|
||||
""" struct """
|
||||
"""Matrix2x2 type (used for polygon shape rotation matrix)."""
|
||||
def __init__(self, m00: float|None = None, m01: float|None = None, m10: float|None = None, m11: float|None = None):
|
||||
self.m00:float = m00 # type: ignore
|
||||
self.m01:float = m01 # type: ignore
|
||||
self.m10:float = m10 # type: ignore
|
||||
self.m11:float = m11 # type: ignore
|
||||
class Mesh:
|
||||
""" struct """
|
||||
"""Mesh, vertex data and vao/vbo."""
|
||||
def __init__(self, vertexCount: int|None = None, triangleCount: int|None = None, vertices: Any|None = None, texcoords: Any|None = None, texcoords2: Any|None = None, normals: Any|None = None, tangents: Any|None = None, colors: str|None = None, indices: Any|None = None, animVertices: Any|None = None, animNormals: Any|None = None, boneIds: str|None = None, boneWeights: Any|None = None, boneMatrices: Any|None = None, boneCount: int|None = None, vaoId: int|None = None, vboId: Any|None = None):
|
||||
self.vertexCount:int = vertexCount # type: ignore
|
||||
self.triangleCount:int = triangleCount # type: ignore
|
||||
|
@ -4228,7 +4279,7 @@ class Mesh:
|
|||
self.vaoId:int = vaoId # type: ignore
|
||||
self.vboId:Any = vboId # type: ignore
|
||||
class Model:
|
||||
""" struct """
|
||||
"""Model, meshes, materials and animation data."""
|
||||
def __init__(self, transform: Matrix|list|tuple|None = None, meshCount: int|None = None, materialCount: int|None = None, meshes: Any|None = None, materials: Any|None = None, meshMaterial: Any|None = None, boneCount: int|None = None, bones: Any|None = None, bindPose: Any|None = None):
|
||||
self.transform:Matrix = transform # type: ignore
|
||||
self.meshCount:int = meshCount # type: ignore
|
||||
|
@ -4240,7 +4291,7 @@ class Model:
|
|||
self.bones:Any = bones # type: ignore
|
||||
self.bindPose:Any = bindPose # type: ignore
|
||||
class ModelAnimation:
|
||||
""" struct """
|
||||
"""ModelAnimation."""
|
||||
def __init__(self, boneCount: int|None = None, frameCount: int|None = None, bones: Any|None = None, framePoses: Any|None = None, name: list|None = None):
|
||||
self.boneCount:int = boneCount # type: ignore
|
||||
self.frameCount:int = frameCount # type: ignore
|
||||
|
@ -4248,7 +4299,7 @@ class ModelAnimation:
|
|||
self.framePoses:Any = framePoses # type: ignore
|
||||
self.name:list = name # type: ignore
|
||||
class Music:
|
||||
""" struct """
|
||||
"""Music, audio stream, anything longer than ~10 seconds should be streamed."""
|
||||
def __init__(self, stream: AudioStream|list|tuple|None = None, frameCount: int|None = None, looping: bool|None = None, ctxType: int|None = None, ctxData: Any|None = None):
|
||||
self.stream:AudioStream = stream # type: ignore
|
||||
self.frameCount:int = frameCount # type: ignore
|
||||
|
@ -4256,7 +4307,7 @@ class Music:
|
|||
self.ctxType:int = ctxType # type: ignore
|
||||
self.ctxData:Any = ctxData # type: ignore
|
||||
class NPatchInfo:
|
||||
""" struct """
|
||||
"""NPatchInfo, n-patch layout info."""
|
||||
def __init__(self, source: Rectangle|list|tuple|None = None, left: int|None = None, top: int|None = None, right: int|None = None, bottom: int|None = None, layout: int|None = None):
|
||||
self.source:Rectangle = source # type: ignore
|
||||
self.left:int = left # type: ignore
|
||||
|
@ -4265,7 +4316,7 @@ class NPatchInfo:
|
|||
self.bottom:int = bottom # type: ignore
|
||||
self.layout:int = layout # type: ignore
|
||||
class PhysicsBodyData:
|
||||
""" struct """
|
||||
"""."""
|
||||
def __init__(self, id: int|None = None, enabled: bool|None = None, position: Vector2|list|tuple|None = None, velocity: Vector2|list|tuple|None = None, force: Vector2|list|tuple|None = None, angularVelocity: float|None = None, torque: float|None = None, orient: float|None = None, inertia: float|None = None, inverseInertia: float|None = None, mass: float|None = None, inverseMass: float|None = None, staticFriction: float|None = None, dynamicFriction: float|None = None, restitution: float|None = None, useGravity: bool|None = None, isGrounded: bool|None = None, freezeOrient: bool|None = None, shape: PhysicsShape|list|tuple|None = None):
|
||||
self.id:int = id # type: ignore
|
||||
self.enabled:bool = enabled # type: ignore
|
||||
|
@ -4287,7 +4338,7 @@ class PhysicsBodyData:
|
|||
self.freezeOrient:bool = freezeOrient # type: ignore
|
||||
self.shape:PhysicsShape = shape # type: ignore
|
||||
class PhysicsManifoldData:
|
||||
""" struct """
|
||||
"""."""
|
||||
def __init__(self, id: int|None = None, bodyA: Any|None = None, bodyB: Any|None = None, penetration: float|None = None, normal: Vector2|list|tuple|None = None, contacts: list|None = None, contactsCount: int|None = None, restitution: float|None = None, dynamicFriction: float|None = None, staticFriction: float|None = None):
|
||||
self.id:int = id # type: ignore
|
||||
self.bodyA:Any = bodyA # type: ignore
|
||||
|
@ -4300,7 +4351,7 @@ class PhysicsManifoldData:
|
|||
self.dynamicFriction:float = dynamicFriction # type: ignore
|
||||
self.staticFriction:float = staticFriction # type: ignore
|
||||
class PhysicsShape:
|
||||
""" struct """
|
||||
"""."""
|
||||
def __init__(self, type: PhysicsShapeType|None = None, body: Any|None = None, vertexData: PhysicsVertexData|list|tuple|None = None, radius: float|None = None, transform: Matrix2x2|list|tuple|None = None):
|
||||
self.type:PhysicsShapeType = type # type: ignore
|
||||
self.body:Any = body # type: ignore
|
||||
|
@ -4308,48 +4359,48 @@ class PhysicsShape:
|
|||
self.radius:float = radius # type: ignore
|
||||
self.transform:Matrix2x2 = transform # type: ignore
|
||||
class PhysicsVertexData:
|
||||
""" struct """
|
||||
"""."""
|
||||
def __init__(self, vertexCount: int|None = None, positions: list|None = None, normals: list|None = None):
|
||||
self.vertexCount:int = vertexCount # type: ignore
|
||||
self.positions:list = positions # type: ignore
|
||||
self.normals:list = normals # type: ignore
|
||||
class Ray:
|
||||
""" struct """
|
||||
"""Ray, ray for raycasting."""
|
||||
def __init__(self, position: Vector3|list|tuple|None = None, direction: Vector3|list|tuple|None = None):
|
||||
self.position:Vector3 = position # type: ignore
|
||||
self.direction:Vector3 = direction # type: ignore
|
||||
class RayCollision:
|
||||
""" struct """
|
||||
"""RayCollision, ray hit information."""
|
||||
def __init__(self, hit: bool|None = None, distance: float|None = None, point: Vector3|list|tuple|None = None, normal: Vector3|list|tuple|None = None):
|
||||
self.hit:bool = hit # type: ignore
|
||||
self.distance:float = distance # type: ignore
|
||||
self.point:Vector3 = point # type: ignore
|
||||
self.normal:Vector3 = normal # type: ignore
|
||||
class Rectangle:
|
||||
""" struct """
|
||||
"""Rectangle, 4 components."""
|
||||
def __init__(self, x: float|None = None, y: float|None = None, width: float|None = None, height: float|None = None):
|
||||
self.x:float = x # type: ignore
|
||||
self.y:float = y # type: ignore
|
||||
self.width:float = width # type: ignore
|
||||
self.height:float = height # type: ignore
|
||||
class RenderTexture:
|
||||
""" struct """
|
||||
"""RenderTexture, fbo for texture rendering."""
|
||||
def __init__(self, id: int|None = None, texture: Texture|list|tuple|None = None, depth: Texture|list|tuple|None = None):
|
||||
self.id:int = id # type: ignore
|
||||
self.texture:Texture = texture # type: ignore
|
||||
self.depth:Texture = depth # type: ignore
|
||||
class Shader:
|
||||
""" struct """
|
||||
"""Shader."""
|
||||
def __init__(self, id: int|None = None, locs: Any|None = None):
|
||||
self.id:int = id # type: ignore
|
||||
self.locs:Any = locs # type: ignore
|
||||
class Sound:
|
||||
""" struct """
|
||||
"""Sound."""
|
||||
def __init__(self, stream: AudioStream|list|tuple|None = None, frameCount: int|None = None):
|
||||
self.stream:AudioStream = stream # type: ignore
|
||||
self.frameCount:int = frameCount # type: ignore
|
||||
class Texture:
|
||||
""" struct """
|
||||
"""Texture, tex data stored in GPU memory (VRAM)."""
|
||||
def __init__(self, id: int|None = None, width: int|None = None, height: int|None = None, mipmaps: int|None = None, format: int|None = None):
|
||||
self.id:int = id # type: ignore
|
||||
self.width:int = width # type: ignore
|
||||
|
@ -4357,7 +4408,7 @@ class Texture:
|
|||
self.mipmaps:int = mipmaps # type: ignore
|
||||
self.format:int = format # type: ignore
|
||||
class Texture2D:
|
||||
""" struct """
|
||||
"""It should be redesigned to be provided by user."""
|
||||
def __init__(self, id: int|None = None, width: int|None = None, height: int|None = None, mipmaps: int|None = None, format: int|None = None):
|
||||
self.id:int = id # type: ignore
|
||||
self.width:int = width # type: ignore
|
||||
|
@ -4365,31 +4416,31 @@ class Texture2D:
|
|||
self.mipmaps:int = mipmaps # type: ignore
|
||||
self.format:int = format # type: ignore
|
||||
class Transform:
|
||||
""" struct """
|
||||
"""Transform, vertex transformation data."""
|
||||
def __init__(self, translation: Vector3|list|tuple|None = None, rotation: Vector4|list|tuple|None = None, scale: Vector3|list|tuple|None = None):
|
||||
self.translation:Vector3 = translation # type: ignore
|
||||
self.rotation:Vector4 = rotation # type: ignore
|
||||
self.scale:Vector3 = scale # type: ignore
|
||||
class Vector2:
|
||||
""" struct """
|
||||
"""Vector2, 2 components."""
|
||||
def __init__(self, x: float|None = None, y: float|None = None):
|
||||
self.x:float = x # type: ignore
|
||||
self.y:float = y # type: ignore
|
||||
class Vector3:
|
||||
""" struct """
|
||||
"""Vector3, 3 components."""
|
||||
def __init__(self, x: float|None = None, y: float|None = None, z: float|None = None):
|
||||
self.x:float = x # type: ignore
|
||||
self.y:float = y # type: ignore
|
||||
self.z:float = z # type: ignore
|
||||
class Vector4:
|
||||
""" struct """
|
||||
"""Vector4, 4 components."""
|
||||
def __init__(self, x: float|None = None, y: float|None = None, z: float|None = None, w: float|None = None):
|
||||
self.x:float = x # type: ignore
|
||||
self.y:float = y # type: ignore
|
||||
self.z:float = z # type: ignore
|
||||
self.w:float = w # type: ignore
|
||||
class VrDeviceInfo:
|
||||
""" struct """
|
||||
"""VrDeviceInfo, Head-Mounted-Display device parameters."""
|
||||
def __init__(self, hResolution: int|None = None, vResolution: int|None = None, hScreenSize: float|None = None, vScreenSize: float|None = None, eyeToScreenDistance: float|None = None, lensSeparationDistance: float|None = None, interpupillaryDistance: float|None = None, lensDistortionValues: list|None = None, chromaAbCorrection: list|None = None):
|
||||
self.hResolution:int = hResolution # type: ignore
|
||||
self.vResolution:int = vResolution # type: ignore
|
||||
|
@ -4401,7 +4452,7 @@ class VrDeviceInfo:
|
|||
self.lensDistortionValues:list = lensDistortionValues # type: ignore
|
||||
self.chromaAbCorrection:list = chromaAbCorrection # type: ignore
|
||||
class VrStereoConfig:
|
||||
""" struct """
|
||||
"""VrStereoConfig, VR stereo rendering configuration for simulator."""
|
||||
def __init__(self, projection: list|None = None, viewOffset: list|None = None, leftLensCenter: list|None = None, rightLensCenter: list|None = None, leftScreenCenter: list|None = None, rightScreenCenter: list|None = None, scale: list|None = None, scaleIn: list|None = None):
|
||||
self.projection:list = projection # type: ignore
|
||||
self.viewOffset:list = viewOffset # type: ignore
|
||||
|
@ -4412,7 +4463,7 @@ class VrStereoConfig:
|
|||
self.scale:list = scale # type: ignore
|
||||
self.scaleIn:list = scaleIn # type: ignore
|
||||
class Wave:
|
||||
""" struct """
|
||||
"""Wave, audio wave data."""
|
||||
def __init__(self, frameCount: int|None = None, sampleRate: int|None = None, sampleSize: int|None = None, channels: int|None = None, data: Any|None = None):
|
||||
self.frameCount:int = frameCount # type: ignore
|
||||
self.sampleRate:int = sampleRate # type: ignore
|
||||
|
@ -4420,22 +4471,22 @@ class Wave:
|
|||
self.channels:int = channels # type: ignore
|
||||
self.data:Any = data # type: ignore
|
||||
class float16:
|
||||
""" struct """
|
||||
"""."""
|
||||
def __init__(self, v: list|None = None):
|
||||
self.v:list = v # type: ignore
|
||||
class float3:
|
||||
""" struct """
|
||||
"""NOTE: Helper types to be used instead of array return types for *ToFloat functions."""
|
||||
def __init__(self, v: list|None = None):
|
||||
self.v:list = v # type: ignore
|
||||
class rlDrawCall:
|
||||
""" struct """
|
||||
"""of those state-change happens (this is done in core module)."""
|
||||
def __init__(self, mode: int|None = None, vertexCount: int|None = None, vertexAlignment: int|None = None, textureId: int|None = None):
|
||||
self.mode:int = mode # type: ignore
|
||||
self.vertexCount:int = vertexCount # type: ignore
|
||||
self.vertexAlignment:int = vertexAlignment # type: ignore
|
||||
self.textureId:int = textureId # type: ignore
|
||||
class rlRenderBatch:
|
||||
""" struct """
|
||||
"""rlRenderBatch type."""
|
||||
def __init__(self, bufferCount: int|None = None, currentBuffer: int|None = None, vertexBuffer: Any|None = None, draws: Any|None = None, drawCounter: int|None = None, currentDepth: float|None = None):
|
||||
self.bufferCount:int = bufferCount # type: ignore
|
||||
self.currentBuffer:int = currentBuffer # type: ignore
|
||||
|
@ -4444,7 +4495,7 @@ class rlRenderBatch:
|
|||
self.drawCounter:int = drawCounter # type: ignore
|
||||
self.currentDepth:float = currentDepth # type: ignore
|
||||
class rlVertexBuffer:
|
||||
""" struct """
|
||||
"""Dynamic vertex buffers (position + texcoords + colors + indices arrays)."""
|
||||
def __init__(self, elementCount: int|None = None, vertices: Any|None = None, texcoords: Any|None = None, normals: Any|None = None, colors: str|None = None, indices: Any|None = None, vaoId: int|None = None, vboId: list|None = None):
|
||||
self.elementCount:int = elementCount # type: ignore
|
||||
self.vertices:Any = vertices # type: ignore
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
from enum import IntEnum
|
||||
|
||||
class ConfigFlags(IntEnum):
|
||||
"""System/Window config flags."""
|
||||
FLAG_VSYNC_HINT = 64
|
||||
FLAG_FULLSCREEN_MODE = 2
|
||||
FLAG_WINDOW_RESIZABLE = 4
|
||||
|
@ -19,6 +20,7 @@ class ConfigFlags(IntEnum):
|
|||
FLAG_INTERLACED_HINT = 65536
|
||||
|
||||
class TraceLogLevel(IntEnum):
|
||||
"""Trace log level."""
|
||||
LOG_ALL = 0
|
||||
LOG_TRACE = 1
|
||||
LOG_DEBUG = 2
|
||||
|
@ -29,6 +31,7 @@ class TraceLogLevel(IntEnum):
|
|||
LOG_NONE = 7
|
||||
|
||||
class KeyboardKey(IntEnum):
|
||||
"""Keyboard keys (US keyboard layout)."""
|
||||
KEY_NULL = 0
|
||||
KEY_APOSTROPHE = 39
|
||||
KEY_COMMA = 44
|
||||
|
@ -141,6 +144,7 @@ class KeyboardKey(IntEnum):
|
|||
KEY_VOLUME_DOWN = 25
|
||||
|
||||
class MouseButton(IntEnum):
|
||||
"""Mouse buttons."""
|
||||
MOUSE_BUTTON_LEFT = 0
|
||||
MOUSE_BUTTON_RIGHT = 1
|
||||
MOUSE_BUTTON_MIDDLE = 2
|
||||
|
@ -150,6 +154,7 @@ class MouseButton(IntEnum):
|
|||
MOUSE_BUTTON_BACK = 6
|
||||
|
||||
class MouseCursor(IntEnum):
|
||||
"""Mouse cursor."""
|
||||
MOUSE_CURSOR_DEFAULT = 0
|
||||
MOUSE_CURSOR_ARROW = 1
|
||||
MOUSE_CURSOR_IBEAM = 2
|
||||
|
@ -163,6 +168,7 @@ class MouseCursor(IntEnum):
|
|||
MOUSE_CURSOR_NOT_ALLOWED = 10
|
||||
|
||||
class GamepadButton(IntEnum):
|
||||
"""Gamepad buttons."""
|
||||
GAMEPAD_BUTTON_UNKNOWN = 0
|
||||
GAMEPAD_BUTTON_LEFT_FACE_UP = 1
|
||||
GAMEPAD_BUTTON_LEFT_FACE_RIGHT = 2
|
||||
|
@ -183,6 +189,7 @@ class GamepadButton(IntEnum):
|
|||
GAMEPAD_BUTTON_RIGHT_THUMB = 17
|
||||
|
||||
class GamepadAxis(IntEnum):
|
||||
"""Gamepad axis."""
|
||||
GAMEPAD_AXIS_LEFT_X = 0
|
||||
GAMEPAD_AXIS_LEFT_Y = 1
|
||||
GAMEPAD_AXIS_RIGHT_X = 2
|
||||
|
@ -191,6 +198,7 @@ class GamepadAxis(IntEnum):
|
|||
GAMEPAD_AXIS_RIGHT_TRIGGER = 5
|
||||
|
||||
class MaterialMapIndex(IntEnum):
|
||||
"""Material map index."""
|
||||
MATERIAL_MAP_ALBEDO = 0
|
||||
MATERIAL_MAP_METALNESS = 1
|
||||
MATERIAL_MAP_NORMAL = 2
|
||||
|
@ -204,6 +212,7 @@ class MaterialMapIndex(IntEnum):
|
|||
MATERIAL_MAP_BRDF = 10
|
||||
|
||||
class ShaderLocationIndex(IntEnum):
|
||||
"""Shader location index."""
|
||||
SHADER_LOC_VERTEX_POSITION = 0
|
||||
SHADER_LOC_VERTEX_TEXCOORD01 = 1
|
||||
SHADER_LOC_VERTEX_TEXCOORD02 = 2
|
||||
|
@ -235,6 +244,7 @@ class ShaderLocationIndex(IntEnum):
|
|||
SHADER_LOC_BONE_MATRICES = 28
|
||||
|
||||
class ShaderUniformDataType(IntEnum):
|
||||
"""Shader uniform data type."""
|
||||
SHADER_UNIFORM_FLOAT = 0
|
||||
SHADER_UNIFORM_VEC2 = 1
|
||||
SHADER_UNIFORM_VEC3 = 2
|
||||
|
@ -246,12 +256,14 @@ class ShaderUniformDataType(IntEnum):
|
|||
SHADER_UNIFORM_SAMPLER2D = 8
|
||||
|
||||
class ShaderAttributeDataType(IntEnum):
|
||||
"""Shader attribute data types."""
|
||||
SHADER_ATTRIB_FLOAT = 0
|
||||
SHADER_ATTRIB_VEC2 = 1
|
||||
SHADER_ATTRIB_VEC3 = 2
|
||||
SHADER_ATTRIB_VEC4 = 3
|
||||
|
||||
class PixelFormat(IntEnum):
|
||||
"""Pixel formats."""
|
||||
PIXELFORMAT_UNCOMPRESSED_GRAYSCALE = 1
|
||||
PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA = 2
|
||||
PIXELFORMAT_UNCOMPRESSED_R5G6B5 = 3
|
||||
|
@ -278,6 +290,7 @@ class PixelFormat(IntEnum):
|
|||
PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA = 24
|
||||
|
||||
class TextureFilter(IntEnum):
|
||||
"""Texture parameters: filter mode."""
|
||||
TEXTURE_FILTER_POINT = 0
|
||||
TEXTURE_FILTER_BILINEAR = 1
|
||||
TEXTURE_FILTER_TRILINEAR = 2
|
||||
|
@ -286,12 +299,14 @@ class TextureFilter(IntEnum):
|
|||
TEXTURE_FILTER_ANISOTROPIC_16X = 5
|
||||
|
||||
class TextureWrap(IntEnum):
|
||||
"""Texture parameters: wrap mode."""
|
||||
TEXTURE_WRAP_REPEAT = 0
|
||||
TEXTURE_WRAP_CLAMP = 1
|
||||
TEXTURE_WRAP_MIRROR_REPEAT = 2
|
||||
TEXTURE_WRAP_MIRROR_CLAMP = 3
|
||||
|
||||
class CubemapLayout(IntEnum):
|
||||
"""Cubemap layouts."""
|
||||
CUBEMAP_LAYOUT_AUTO_DETECT = 0
|
||||
CUBEMAP_LAYOUT_LINE_VERTICAL = 1
|
||||
CUBEMAP_LAYOUT_LINE_HORIZONTAL = 2
|
||||
|
@ -299,11 +314,13 @@ class CubemapLayout(IntEnum):
|
|||
CUBEMAP_LAYOUT_CROSS_FOUR_BY_THREE = 4
|
||||
|
||||
class FontType(IntEnum):
|
||||
"""Font type, defines generation method."""
|
||||
FONT_DEFAULT = 0
|
||||
FONT_BITMAP = 1
|
||||
FONT_SDF = 2
|
||||
|
||||
class BlendMode(IntEnum):
|
||||
"""Color blending modes (pre-defined)."""
|
||||
BLEND_ALPHA = 0
|
||||
BLEND_ADDITIVE = 1
|
||||
BLEND_MULTIPLIED = 2
|
||||
|
@ -314,6 +331,7 @@ class BlendMode(IntEnum):
|
|||
BLEND_CUSTOM_SEPARATE = 7
|
||||
|
||||
class Gesture(IntEnum):
|
||||
"""Gesture."""
|
||||
GESTURE_NONE = 0
|
||||
GESTURE_TAP = 1
|
||||
GESTURE_DOUBLETAP = 2
|
||||
|
@ -327,6 +345,7 @@ class Gesture(IntEnum):
|
|||
GESTURE_PINCH_OUT = 512
|
||||
|
||||
class CameraMode(IntEnum):
|
||||
"""Camera system modes."""
|
||||
CAMERA_CUSTOM = 0
|
||||
CAMERA_FREE = 1
|
||||
CAMERA_ORBITAL = 2
|
||||
|
@ -334,36 +353,43 @@ class CameraMode(IntEnum):
|
|||
CAMERA_THIRD_PERSON = 4
|
||||
|
||||
class CameraProjection(IntEnum):
|
||||
"""Camera projection."""
|
||||
CAMERA_PERSPECTIVE = 0
|
||||
CAMERA_ORTHOGRAPHIC = 1
|
||||
|
||||
class NPatchLayout(IntEnum):
|
||||
"""N-patch layout."""
|
||||
NPATCH_NINE_PATCH = 0
|
||||
NPATCH_THREE_PATCH_VERTICAL = 1
|
||||
NPATCH_THREE_PATCH_HORIZONTAL = 2
|
||||
|
||||
class GuiState(IntEnum):
|
||||
"""Gui control state."""
|
||||
STATE_NORMAL = 0
|
||||
STATE_FOCUSED = 1
|
||||
STATE_PRESSED = 2
|
||||
STATE_DISABLED = 3
|
||||
|
||||
class GuiTextAlignment(IntEnum):
|
||||
"""Gui control text alignment."""
|
||||
TEXT_ALIGN_LEFT = 0
|
||||
TEXT_ALIGN_CENTER = 1
|
||||
TEXT_ALIGN_RIGHT = 2
|
||||
|
||||
class GuiTextAlignmentVertical(IntEnum):
|
||||
"""Gui control text alignment vertical."""
|
||||
TEXT_ALIGN_TOP = 0
|
||||
TEXT_ALIGN_MIDDLE = 1
|
||||
TEXT_ALIGN_BOTTOM = 2
|
||||
|
||||
class GuiTextWrapMode(IntEnum):
|
||||
"""Gui control text wrap mode."""
|
||||
TEXT_WRAP_NONE = 0
|
||||
TEXT_WRAP_CHAR = 1
|
||||
TEXT_WRAP_WORD = 2
|
||||
|
||||
class GuiControl(IntEnum):
|
||||
"""Gui controls."""
|
||||
DEFAULT = 0
|
||||
LABEL = 1
|
||||
BUTTON = 2
|
||||
|
@ -382,6 +408,7 @@ class GuiControl(IntEnum):
|
|||
STATUSBAR = 15
|
||||
|
||||
class GuiControlProperty(IntEnum):
|
||||
"""Gui base properties for every control."""
|
||||
BORDER_COLOR_NORMAL = 0
|
||||
BASE_COLOR_NORMAL = 1
|
||||
TEXT_COLOR_NORMAL = 2
|
||||
|
@ -399,6 +426,7 @@ class GuiControlProperty(IntEnum):
|
|||
TEXT_ALIGNMENT = 14
|
||||
|
||||
class GuiDefaultProperty(IntEnum):
|
||||
"""DEFAULT extended properties."""
|
||||
TEXT_SIZE = 16
|
||||
TEXT_SPACING = 17
|
||||
LINE_COLOR = 18
|
||||
|
@ -408,16 +436,20 @@ class GuiDefaultProperty(IntEnum):
|
|||
TEXT_WRAP_MODE = 22
|
||||
|
||||
class GuiToggleProperty(IntEnum):
|
||||
"""Toggle/ToggleGroup."""
|
||||
GROUP_PADDING = 16
|
||||
|
||||
class GuiSliderProperty(IntEnum):
|
||||
"""Slider/SliderBar."""
|
||||
SLIDER_WIDTH = 16
|
||||
SLIDER_PADDING = 17
|
||||
|
||||
class GuiProgressBarProperty(IntEnum):
|
||||
"""ProgressBar."""
|
||||
PROGRESS_PADDING = 16
|
||||
|
||||
class GuiScrollBarProperty(IntEnum):
|
||||
"""ScrollBar."""
|
||||
ARROWS_SIZE = 16
|
||||
ARROWS_VISIBLE = 17
|
||||
SCROLL_SLIDER_PADDING = 18
|
||||
|
@ -426,26 +458,32 @@ class GuiScrollBarProperty(IntEnum):
|
|||
SCROLL_SPEED = 21
|
||||
|
||||
class GuiCheckBoxProperty(IntEnum):
|
||||
"""CheckBox."""
|
||||
CHECK_PADDING = 16
|
||||
|
||||
class GuiComboBoxProperty(IntEnum):
|
||||
"""ComboBox."""
|
||||
COMBO_BUTTON_WIDTH = 16
|
||||
COMBO_BUTTON_SPACING = 17
|
||||
|
||||
class GuiDropdownBoxProperty(IntEnum):
|
||||
"""DropdownBox."""
|
||||
ARROW_PADDING = 16
|
||||
DROPDOWN_ITEMS_SPACING = 17
|
||||
DROPDOWN_ARROW_HIDDEN = 18
|
||||
DROPDOWN_ROLL_UP = 19
|
||||
|
||||
class GuiTextBoxProperty(IntEnum):
|
||||
"""TextBox/TextBoxMulti/ValueBox/Spinner."""
|
||||
TEXT_READONLY = 16
|
||||
|
||||
class GuiSpinnerProperty(IntEnum):
|
||||
"""Spinner."""
|
||||
SPIN_BUTTON_WIDTH = 16
|
||||
SPIN_BUTTON_SPACING = 17
|
||||
|
||||
class GuiListViewProperty(IntEnum):
|
||||
"""ListView."""
|
||||
LIST_ITEMS_HEIGHT = 16
|
||||
LIST_ITEMS_SPACING = 17
|
||||
SCROLLBAR_WIDTH = 18
|
||||
|
@ -453,6 +491,7 @@ class GuiListViewProperty(IntEnum):
|
|||
LIST_ITEMS_BORDER_WIDTH = 20
|
||||
|
||||
class GuiColorPickerProperty(IntEnum):
|
||||
"""ColorPicker."""
|
||||
COLOR_SELECTOR_SIZE = 16
|
||||
HUEBAR_WIDTH = 17
|
||||
HUEBAR_PADDING = 18
|
||||
|
@ -460,6 +499,7 @@ class GuiColorPickerProperty(IntEnum):
|
|||
HUEBAR_SELECTOR_OVERFLOW = 20
|
||||
|
||||
class GuiIconName(IntEnum):
|
||||
"""."""
|
||||
ICON_NONE = 0
|
||||
ICON_FOLDER_FILE_OPEN = 1
|
||||
ICON_FILE_SAVE_CLASSIC = 2
|
||||
|
|
Reference in a new issue