diff options
| author | julieng <julien.gattelier@gmail.com> | 2021-10-02 17:20:14 +0200 |
|---|---|---|
| committer | SphinxKnight <SphinxKnight@users.noreply.github.com> | 2021-10-02 17:30:20 +0200 |
| commit | c05efa8d7ae464235cf83d7c0956e42dc6974103 (patch) | |
| tree | 6ea911b2f2010f63a026de6bb7a1a51e7690a7e1 /files/fr/web/api/webglrenderingcontext/geterror/index.html | |
| parent | 13a5e017558b248ee1647d4a5825f183b51f09ad (diff) | |
| download | translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.tar.gz translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.tar.bz2 translated-content-c05efa8d7ae464235cf83d7c0956e42dc6974103.zip | |
move *.html to *.md
Diffstat (limited to 'files/fr/web/api/webglrenderingcontext/geterror/index.html')
| -rw-r--r-- | files/fr/web/api/webglrenderingcontext/geterror/index.html | 105 |
1 files changed, 0 insertions, 105 deletions
diff --git a/files/fr/web/api/webglrenderingcontext/geterror/index.html b/files/fr/web/api/webglrenderingcontext/geterror/index.html deleted file mode 100644 index 1e3d624e40..0000000000 --- a/files/fr/web/api/webglrenderingcontext/geterror/index.html +++ /dev/null @@ -1,105 +0,0 @@ ---- -title: WebGLRenderingContext.getError() -slug: Web/API/WebGLRenderingContext/getError -tags: - - API - - Méthode - - Reference - - WebGL - - WebGLRenderingContext -translation_of: Web/API/WebGLRenderingContext/getError ---- -<div>{{APIRef("WebGL")}}</div> - -<p>La méthode <strong><code>WebGLRenderingContext.getError()</code></strong> de l'<a href="/fr-Fr/docs/Web/API/WebGL_API">API WebGL</a> retourne des informations d'erreur.</p> - -<h2 id="Syntaxe">Syntaxe</h2> - -<pre class="syntaxbox">GLenum <var>gl</var>.getError(); -</pre> - -<h3 id="Paramètres">Paramètres</h3> - -<p>Aucun.</p> - -<h3 id="Valeur_retournée">Valeur retournée</h3> - -<table class="standard-table"> - <thead> - <tr> - <th scope="col">Constante</th> - <th scope="col">Description</th> - </tr> - </thead> - <tbody> - <tr> - <td><code>gl.NO_ERROR</code></td> - <td>Aucune erreur n'a été enregistrée. La valeur de cette constante est 0.</td> - </tr> - <tr> - <td><code>gl.INVALID_ENUM</code></td> - <td>Une valeur non acceptable a été spécifiée pour un argument énuméré. La commande est ignorée et l'indicateur d'erreur est positionné.</td> - </tr> - <tr> - <td><code>gl.INVALID_VALUE</code></td> - <td>Un argument numérique est hors de sa plage. La commande est ignorée et l'indicateur d'erreur est positionné.</td> - </tr> - <tr> - <td><code>gl.INVALID_OPERATION</code></td> - <td>La commande indiquée n'est pas permise dans l'état courant. La commande est ignorée et l'indicateur d'erreur est positionné.</td> - </tr> - <tr> - <td><code>gl.INVALID_FRAMEBUFFER_OPERATION</code></td> - <td>Le tampon d'images actuellement lié n'est pas complet lors d'une tentative de rendu ou de relecture.</td> - </tr> - <tr> - <td><code>gl.OUT_OF_MEMORY</code></td> - <td>Plus assez de mémoire restante pour exécuter la commande.</td> - </tr> - <tr> - <td><code>gl.CONTEXT_LOST_WEBGL</code></td> - <td>Si le contexte WebGL est perdu, cette erreur est retournée lors du premier appel à <code>getError</code>. Après cela et jusqu'à ce que le contexte soit restauré, elle retourne <code>gl.NO_ERROR</code>.</td> - </tr> - </tbody> -</table> - -<h2 id="Exemples">Exemples</h2> - -<pre class="brush: js">gl.getError(); // gl.NO_ERROR (0) - -gl.enable(gl.MACHINTRUC); -gl.getError(); // gl.INVALID_ENUM; -</pre> - -<h2 id="Spécifications">Spécifications</h2> - -<table class="standard-table"> - <tbody> - <tr> - <th scope="col">Spécification</th> - <th scope="col">Statut</th> - <th scope="col">Commentaire</th> - </tr> - <tr> - <td>{{SpecName('WebGL', "#5.14.3", "getError")}}</td> - <td>{{Spec2('WebGL')}}</td> - <td>Définition initiale.</td> - </tr> - <tr> - <td>{{SpecName('OpenGL ES 2.0', "glGetError.xml", "glGetError")}}</td> - <td>{{Spec2('OpenGL ES 2.0')}}</td> - <td>Page man de l'API OpenGL.</td> - </tr> - </tbody> -</table> - -<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2> - -<p>{{Compat("api.WebGLRenderingContext.getError")}}</p> - -<h2 id="Voir_aussi">Voir aussi</h2> - -<ul> - <li>{{domxref("WebGLRenderingContext")}}</li> - <li>{{domxref("WebGLContextEvent")}}</li> -</ul> |
