tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

rrDefs.js (1730B)


      1 /*-------------------------------------------------------------------------
      2 * drawElements Quality Program OpenGL ES Utilities
      3 * ------------------------------------------------
      4 *
      5 * Copyright 2014 The Android Open Source Project
      6 *
      7 * Licensed under the Apache License, Version 2.0 (the "License");
      8 * you may not use this file except in compliance with the License.
      9 * You may obtain a copy of the License at
     10 *
     11 *      http://www.apache.org/licenses/LICENSE-2.0
     12 *
     13 * Unless required by applicable law or agreed to in writing, software
     14 * distributed under the License is distributed on an "AS IS" BASIS,
     15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     16 * See the License for the specific language governing permissions and
     17 * limitations under the License.
     18 *
     19 */
     20 
     21 'use strict';
     22 goog.provide('framework.referencerenderer.rrDefs');
     23 
     24 goog.scope(function() {
     25 
     26 var rrDefs = framework.referencerenderer.rrDefs;
     27 
     28 /**
     29 * @enum
     30 */
     31 rrDefs.FaceType = {
     32    FACETYPE_FRONT: 0,
     33    FACETYPE_BACK: 1
     34 };
     35 
     36 /**
     37 * @enum
     38 */
     39 rrDefs.IndexType = {
     40    INDEXTYPE_UINT8: 0,
     41    INDEXTYPE_UINT16: 1,
     42    INDEXTYPE_UINT32: 2
     43 };
     44 
     45 /**
     46 * @enum
     47 */
     48 rrDefs.ProvokingVertex = {
     49    PROVOKINGVERTEX_FIRST: 1,
     50    PROVOKINGVERTEX_LAST: 2 // \note valid value, "last vertex", not last of enum
     51 };
     52 
     53 /**
     54 * @interface
     55 */
     56 rrDefs.Sampler = function() {};
     57 
     58 /**
     59 * @param {Array<number>} pos
     60 * @param {number=} lod
     61 * @return {Array<number>}
     62 */
     63 rrDefs.Sampler.prototype.sample = function(pos, lod) {};
     64 
     65 /**
     66 * @param {Array<Array<number>>} packetTexcoords 4 coordinates
     67 * @param {number} lodBias
     68 * @return {Array<Array<number>>} 4 vec4 samples
     69 */
     70 rrDefs.Sampler.prototype.sample4 = function(packetTexcoords, lodBias) {};
     71 
     72 });