|
@@ -1134,7 +1134,7 @@ export class ThinEngine {
|
|
|
|
|
|
/**
|
|
|
* Gets an object containing information about the current webGL context
|
|
|
- * @returns an object containing the vender, the renderer and the version of the current webGL context
|
|
|
+ * @returns an object containing the vendor, the renderer and the version of the current webGL context
|
|
|
*/
|
|
|
public getGlInfo() {
|
|
|
return {
|
|
@@ -1961,7 +1961,7 @@ export class ThinEngine {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Update the content of a webGL buffer used with instanciation and bind it to the webGL context
|
|
|
+ * Update the content of a webGL buffer used with instantiation and bind it to the webGL context
|
|
|
* @param instancesBuffer defines the webGL buffer to update and bind
|
|
|
* @param data defines the data to store in the buffer
|
|
|
* @param offsetLocations defines the offsets or attributes information used to determine where data must be stored in the buffer
|
|
@@ -2079,7 +2079,7 @@ export class ThinEngine {
|
|
|
* @param useTriangles defines if triangles must be used to draw (else wireframe will be used)
|
|
|
* @param indexStart defines the starting index
|
|
|
* @param indexCount defines the number of index to draw
|
|
|
- * @param instancesCount defines the number of instances to draw (if instanciation is enabled)
|
|
|
+ * @param instancesCount defines the number of instances to draw (if instantiation is enabled)
|
|
|
*/
|
|
|
public draw(useTriangles: boolean, indexStart: number, indexCount: number, instancesCount?: number): void {
|
|
|
this.drawElementsType(useTriangles ? Constants.MATERIAL_TriangleFillMode : Constants.MATERIAL_WireFrameFillMode, indexStart, indexCount, instancesCount);
|
|
@@ -2089,7 +2089,7 @@ export class ThinEngine {
|
|
|
* Draw a list of points
|
|
|
* @param verticesStart defines the index of first vertex to draw
|
|
|
* @param verticesCount defines the count of vertices to draw
|
|
|
- * @param instancesCount defines the number of instances to draw (if instanciation is enabled)
|
|
|
+ * @param instancesCount defines the number of instances to draw (if instantiation is enabled)
|
|
|
*/
|
|
|
public drawPointClouds(verticesStart: number, verticesCount: number, instancesCount?: number): void {
|
|
|
this.drawArraysType(Constants.MATERIAL_PointFillMode, verticesStart, verticesCount, instancesCount);
|
|
@@ -2100,7 +2100,7 @@ export class ThinEngine {
|
|
|
* @param useTriangles defines if triangles must be used to draw (else wireframe will be used)
|
|
|
* @param verticesStart defines the index of first vertex to draw
|
|
|
* @param verticesCount defines the count of vertices to draw
|
|
|
- * @param instancesCount defines the number of instances to draw (if instanciation is enabled)
|
|
|
+ * @param instancesCount defines the number of instances to draw (if instantiation is enabled)
|
|
|
*/
|
|
|
public drawUnIndexed(useTriangles: boolean, verticesStart: number, verticesCount: number, instancesCount?: number): void {
|
|
|
this.drawArraysType(useTriangles ? Constants.MATERIAL_TriangleFillMode : Constants.MATERIAL_WireFrameFillMode, verticesStart, verticesCount, instancesCount);
|
|
@@ -2111,7 +2111,7 @@ export class ThinEngine {
|
|
|
* @param fillMode defines the primitive to use
|
|
|
* @param indexStart defines the starting index
|
|
|
* @param indexCount defines the number of index to draw
|
|
|
- * @param instancesCount defines the number of instances to draw (if instanciation is enabled)
|
|
|
+ * @param instancesCount defines the number of instances to draw (if instantiation is enabled)
|
|
|
*/
|
|
|
public drawElementsType(fillMode: number, indexStart: number, indexCount: number, instancesCount?: number): void {
|
|
|
// Apply states
|
|
@@ -2136,7 +2136,7 @@ export class ThinEngine {
|
|
|
* @param fillMode defines the primitive to use
|
|
|
* @param verticesStart defines the index of first vertex to draw
|
|
|
* @param verticesCount defines the count of vertices to draw
|
|
|
- * @param instancesCount defines the number of instances to draw (if instanciation is enabled)
|
|
|
+ * @param instancesCount defines the number of instances to draw (if instantiation is enabled)
|
|
|
*/
|
|
|
public drawArraysType(fillMode: number, verticesStart: number, verticesCount: number, instancesCount?: number): void {
|
|
|
// Apply states
|
|
@@ -2212,7 +2212,7 @@ export class ThinEngine {
|
|
|
* @param uniformsNamesOrEngine defines either a list of uniform names or the engine to use
|
|
|
* @param samplers defines an array of string used to represent textures
|
|
|
* @param defines defines the string containing the defines to use to compile the shaders
|
|
|
- * @param fallbacks defines the list of potential fallbacks to use if shader conmpilation fails
|
|
|
+ * @param fallbacks defines the list of potential fallbacks to use if shader compilation fails
|
|
|
* @param onCompiled defines a function to call when the effect creation is successful
|
|
|
* @param onError defines a function to call when the effect creation has failed
|
|
|
* @param indexParameters defines an object containing the index values to use to compile shaders (like the maximum number of simultaneous lights)
|
|
@@ -2493,7 +2493,7 @@ export class ThinEngine {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Activates an effect, mkaing it the current one (ie. the one used for rendering)
|
|
|
+ * Activates an effect, making it the current one (ie. the one used for rendering)
|
|
|
* @param effect defines the effect to activate
|
|
|
*/
|
|
|
public enableEffect(effect: Nullable<Effect>): void {
|
|
@@ -2754,7 +2754,7 @@ export class ThinEngine {
|
|
|
* Set the value of an uniform to a number (float)
|
|
|
* @param uniform defines the webGL uniform location where to store the value
|
|
|
* @param value defines the float number to store
|
|
|
- * @returns true if the value was transfered
|
|
|
+ * @returns true if the value was transferred
|
|
|
*/
|
|
|
public setFloat(uniform: Nullable<WebGLUniformLocation>, value: number): boolean {
|
|
|
if (!uniform) {
|
|
@@ -4558,14 +4558,14 @@ export class ThinEngine {
|
|
|
private static _HasMajorPerformanceCaveat : Nullable<boolean> = null;
|
|
|
|
|
|
/**
|
|
|
- * Gets a boolean indicating if the engine can be instanciated (ie. if a webGL context can be found)
|
|
|
+ * Gets a boolean indicating if the engine can be instantiated (ie. if a webGL context can be found)
|
|
|
*/
|
|
|
public static get IsSupported(): boolean {
|
|
|
return this.isSupported(); // Backward compat
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Gets a boolean indicating if the engine can be instanciated (ie. if a webGL context can be found)
|
|
|
+ * Gets a boolean indicating if the engine can be instantiated (ie. if a webGL context can be found)
|
|
|
* @returns true if the engine can be created
|
|
|
* @ignorenaming
|
|
|
*/
|
|
@@ -4589,7 +4589,7 @@ export class ThinEngine {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Gets a boolean indicating if the engine can be instanciated on a performant device (ie. if a webGL context can be found and it does not use a slow implementation)
|
|
|
+ * Gets a boolean indicating if the engine can be instantiated on a performant device (ie. if a webGL context can be found and it does not use a slow implementation)
|
|
|
*/
|
|
|
public static get HasMajorPerformanceCaveat(): boolean {
|
|
|
if (this._HasMajorPerformanceCaveat === null) {
|