type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
MethodDeclaration |
onDeleteReview(id: string, index: number) {
const message = `Are you sure you want to do this?`;
const dialogData = new ConfirmDialogModel('Confirm Action', message);
const dialogRef = this.dialog.open(ConfirmDialogComponent, {
maxWidth: '500px',
data: dialogData
... | ntnhan2266/helper_admin_web | src/app/reviews/reviews.component.ts | TypeScript |
ArrowFunction |
(mock) => mock.name === mockName | LauravanVught/core | src/core/middleware/handlers/api/update-mocks.handler.ts | TypeScript |
ArrowFunction |
(_scenario) => _scenario === scenario | LauravanVught/core | src/core/middleware/handlers/api/update-mocks.handler.ts | TypeScript |
ClassDeclaration | /** Update mocks handler. */
@injectable()
export class UpdateMocksHandler implements ApplicableHandler {
private PASS_THROUGH = 'passThrough';
/**
* Constructor.
* @param {string} baseUrl The base url.
* @param {State} state The state.
*/
constructor(@inject('BaseUrl') private baseUrl... | LauravanVught/core | src/core/middleware/handlers/api/update-mocks.handler.ts | TypeScript |
MethodDeclaration | /** {@inheritDoc}.*/
handle(request: http.IncomingMessage, response: http.ServerResponse, next: Function, params: {
id: string, body: { name: string, scenario?: string, echo?: boolean, delay?: number }
}): void {
const state = this.state.getMatchingState(params.id);
const body = params.body;... | LauravanVught/core | src/core/middleware/handlers/api/update-mocks.handler.ts | TypeScript |
MethodDeclaration | /** {@inheritDoc}.*/
isApplicable(request: http.IncomingMessage): boolean {
const methodMatches = request.method === HttpMethods.PUT;
const urlMatches = request.url.startsWith(`${this.baseUrl}/mocks`);
return urlMatches && methodMatches;
} | LauravanVught/core | src/core/middleware/handlers/api/update-mocks.handler.ts | TypeScript |
FunctionDeclaration |
export default function FieldSelector(props: FieldSelectorProps) {
return (
<Selector
className='field'
value=''
valueKey=''
labelKey=''
options={[]}
defaultOption={{
value: '',
label: props.defaultLabel
}} | AWolan/febs | client/components/filter/FieldSelector.tsx | TypeScript |
InterfaceDeclaration |
export interface FieldSelectorProps {
defaultLabel?: string;
} | AWolan/febs | client/components/filter/FieldSelector.tsx | TypeScript |
FunctionDeclaration |
export function declareReference(): Declaration<Reference | undefined> {
return {
parse(raw: string) {
assertString(raw);
if (raw === 'None') return;
const match = /^([^'"]+)'"?(.+?)"?'$/.exec(raw);
if (match) return new Reference(match[2], match[1]);
if (raw.startsWith('/')) ret... | Vilsol/ficsit.info | game/declare/reference.ts | TypeScript |
MethodDeclaration |
parse(raw: string) {
assertString(raw);
if (raw === 'None') return;
const match = /^([^'"]+)'"?(.+?)"?'$/.exec(raw);
if (match) return new Reference(match[2], match[1]);
if (raw.startsWith('/')) return new Reference(raw);
throw new TypeAssertionError(raw, `to match a known refer... | Vilsol/ficsit.info | game/declare/reference.ts | TypeScript |
ArrowFunction |
(err) => {
throw "error in getting API data. Details: " + err;
} | FirstCoder1/pean-full-stack-api-display | client/src/app/services/github.service.ts | TypeScript |
ClassDeclaration |
@Injectable({
providedIn: "root",
})
export class GithubService {
constructor(private http: HttpClient) {}
getUser(user: string): Observable<User> {
const userSearchUrl = `${baseUrl + user}`;
return this.http.get<User>(userSearchUrl, { params }).pipe(
take(1),
catchError((err) => {
t... | FirstCoder1/pean-full-stack-api-display | client/src/app/services/github.service.ts | TypeScript |
MethodDeclaration |
getUser(user: string): Observable<User> {
const userSearchUrl = `${baseUrl + user}`;
return this.http.get<User>(userSearchUrl, { params }).pipe(
take(1),
catchError((err) => {
throw "error in getting API data. Details: " + err;
})
);
} | FirstCoder1/pean-full-stack-api-display | client/src/app/services/github.service.ts | TypeScript |
MethodDeclaration |
getRepos(user: string): Observable<Repo> {
const repoSearchUrl = `${
baseUrl + user + "/repos?order=updated&sort=desc?per_page=100&page=1"
}`;
return this.http.get<Repo>(repoSearchUrl, { params }).pipe(
take(1),
catchError((err) => {
throw "error in getting API data. Details: " +... | FirstCoder1/pean-full-stack-api-display | client/src/app/services/github.service.ts | TypeScript |
FunctionDeclaration | /**
* Returns _native only after it has been defined by BabylonNative.
* @hidden
*/
export function AcquireNativeObjectAsync(): Promise<INative> {
return new Promise((resolve) => {
if (typeof _native === "undefined") {
onNativeObjectInitialized.addOnce((nativeObject) => resolve(nativeOb... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
FunctionDeclaration | /**
* Registers a constructor on the _native object. See NativeXRFrame for an example.
* @param typeName
* @param constructor
* @hidden
*/
export async function RegisterNativeTypeAsync<Type>(typeName: string, constructor: Type) {
((await AcquireNativeObjectAsync()) as any)[typeName] = constructor;
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ArrowFunction |
() => __native | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ArrowFunction |
(value: INative) => {
__native = value;
if (__native) {
onNativeObjectInitialized.notifyObservers(__native);
}
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ArrowFunction |
(resolve) => {
if (typeof _native === "undefined") {
onNativeObjectInitialized.addOnce((nativeObject) => resolve(nativeObject));
} else {
resolve(_native);
}
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ArrowFunction |
(nativeObject) => resolve(nativeObject) | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ArrowFunction |
(uniform, index) => {
uniforms[uniformsNames[index]] = uniform;
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ArrowFunction |
(name, index) => {
samplers[name] = index;
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ArrowFunction |
(data) => {
Function(data as string).apply(null);
if (onSuccess) {
onSuccess();
}
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ArrowFunction |
(request, exception) => {
if (onError) {
onError("LoadScript Error", exception);
}
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ArrowFunction |
(scene) => {
const originalRender = scene.render;
scene.render = (...args: Parameters<typeof originalRender>) => {
this._commandBufferEncoder.beginCommandScope();
originalRender.apply(scene, args);
this._commandBufferEncoder.endCommandScope()... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ArrowFunction |
(...args: Parameters<typeof originalRender>) => {
this._commandBufferEncoder.beginCommandScope();
originalRender.apply(scene, args);
this._commandBufferEncoder.endCommandScope();
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ArrowFunction |
(message?: string, exception?: any) => {
if (scene) {
scene._removePendingData(texture);
}
if (url === originalUrl) {
if (onLoadObserver) {
texture.onLoadedObservable.remove(onLoadObserver);
}
... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ArrowFunction |
(data: ArrayBufferView) => {
if (!texture._hardwareTexture) {
if (scene) {
scene._removePendingData(texture);
}
return;
}
const underlyingResource = texture._hardwareTexture.un... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ArrowFunction |
() => {
texture.baseWidth = this._engine.getTextureWidth(underlyingResource);
texture.baseHeight = this._engine.getTextureHeight(underlyingResource);
texture.width = texture.baseWidth;
texture.height = texture.baseHeigh... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ArrowFunction |
() => {
throw new Error("Could not load a native texture.");
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ArrowFunction |
(data) => onload(new Uint8Array(data as ArrayBuffer)) | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ArrowFunction |
(request?: IWebRequest, exception?: any) => {
onInternalError("Unable to load " + (request ? request.responseURL : url, exception));
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ArrowFunction |
(resolve, reject) => {
const image = this.createCanvasImage();
image.onload = () => {
const imageBitmap = this._engine.createImageBitmap(image);
if (imageBitmap) {
resolve(imageBitmap);
return;
} else... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ArrowFunction |
() => {
const imageBitmap = this._engine.createImageBitmap(image);
if (imageBitmap) {
resolve(imageBitmap);
return;
} else {
reject(`Error loading image ${image.src}`);
}
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ArrowFunction |
() => {
reject(`Error loading image ${image.src}`);
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ArrowFunction |
(resolve, reject) => {
if (Array.isArray(image)) {
const arr = <Array<ArrayBufferView>>image;
if (arr.length) {
const image = this._engine.createImageBitmap(arr[0]);
if (image) {
resolve(image);
... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ArrowFunction |
(data: ArrayBufferView) => {
const info = GetEnvInfo(data)!;
texture.width = info.width;
texture.height = info.width;
UploadEnvSpherical(texture, info);
const specularInfo = info.specular as EnvironmentTextureSpecularInfoV1;
... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ArrowFunction |
() => {
texture.isReady = true;
if (onLoad) {
onLoad();
}
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ArrowFunction |
() => {
throw new Error("Could not load a native cube texture.");
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ArrowFunction |
(request?: IWebRequest, exception?: any) => {
if (onError && request) {
onError(request.status + " " + request.statusText, exception);
}
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ArrowFunction |
(data) => onloaddata(new Uint8Array(data as ArrayBuffer)) | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ArrowFunction |
(file) => Tools.LoadFileAsync(file).then((data) => new Uint8Array(data as ArrayBuffer)) | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ArrowFunction |
(data) => new Uint8Array(data as ArrayBuffer) | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ArrowFunction |
(data) => {
return new Promise<void>((resolve, reject) => {
this._engine.loadCubeTexture(texture._hardwareTexture!.underlyingResource, data, !noMipmap, true, useSRGBBuffer, resolve, reject);
});
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ArrowFunction |
(resolve, reject) => {
this._engine.loadCubeTexture(texture._hardwareTexture!.underlyingResource, data, !noMipmap, true, useSRGBBuffer, resolve, reject);
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ArrowFunction |
(error) => {
if (onError) {
onError(`Failed to load cubemap: ${error.message}`, error);
}
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ClassDeclaration |
class NativeRenderTargetWrapper extends RenderTargetWrapper {
public override readonly _engine: NativeEngine;
private __framebuffer: Nullable<WebGLFramebuffer> = null;
private __framebufferDepthStencil: Nullable<WebGLFramebuffer> = null;
public get _framebuffer(): Nullable<WebGLFramebuffer> {
... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ClassDeclaration | /**
* Container for accessors for natively-stored mesh data buffers.
*/
class NativeDataBuffer extends DataBuffer {
/**
* Accessor value used to identify/retrieve a natively-stored index buffer.
*/
public nativeIndexBuffer?: NativeData;
/**
* Accessor value used to identify/retrie... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
ClassDeclaration | /** @hidden */
class CommandBufferEncoder {
private readonly _commandStream: NativeDataStream;
private readonly _pending = new Array<NativeData>();
private _isCommandBufferScopeActive = false;
public constructor(private readonly _engine: INativeEngine) {
this._commandStream = NativeEngine... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
InterfaceDeclaration | /**
* Options to create the Native engine
*/
export interface NativeEngineOptions {
/**
* defines whether to adapt to the device's viewport characteristics (default: false)
*/
adaptToDeviceRatio?: boolean;
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration |
public _getVertexShaderCode(): string | null {
return null;
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration |
public _getFragmentShaderCode(): string | null {
return null;
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | // TODO: what should this do?
public _handlesSpectorRebuildCallback(onCompiled: (compiledObject: any) => void): void {
throw new Error("Not implemented");
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration |
public _fillEffectInformation(
effect: Effect,
uniformBuffersNames: { [key: string]: number },
uniformsNames: string[],
uniforms: { [key: string]: Nullable<WebGLUniformLocation> },
samplerList: string[],
samplers: { [key: string]: number },
attributesNames... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Release all associated resources.
**/
public dispose() {
this._uniforms = {};
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* @param uniformName
* @param matrix
* @hidden
*/
public _cacheMatrix(uniformName: string, matrix: IMatrixLike): boolean {
const cache = this._valueCache[uniformName];
const flag = matrix.updateFlag;
if (cache !== undefined && cache === flag) {
return ... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* @param uniformName
* @param x
* @param y
* @hidden
*/
public _cacheFloat2(uniformName: string, x: number, y: number): boolean {
let cache = this._valueCache[uniformName];
if (!cache) {
cache = [x, y];
this._valueCache[uniformName] = cache;
... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* @param uniformName
* @param x
* @param y
* @param z
* @hidden
*/
public _cacheFloat3(uniformName: string, x: number, y: number, z: number): boolean {
let cache = this._valueCache[uniformName];
if (!cache) {
cache = [x, y, z];
this._va... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* @param uniformName
* @param x
* @param y
* @param z
* @param w
* @hidden
*/
public _cacheFloat4(uniformName: string, x: number, y: number, z: number, w: number): boolean {
let cache = this._valueCache[uniformName];
if (!cache) {
cache = [x, ... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets an integer value on a uniform variable.
* @param uniformName Name of the variable.
* @param value Value to be set.
*/
public setInt(uniformName: string, value: number): void {
const cache = this._valueCache[uniformName];
if (cache !== undefined && cache === value) {
... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets a int2 on a uniform variable.
* @param uniformName Name of the variable.
* @param x First int in int2.
* @param y Second int in int2.
*/
public setInt2(uniformName: string, x: number, y: number): void {
if (this._cacheFloat2(uniformName, x, y)) {
if (!this.... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets a int3 on a uniform variable.
* @param uniformName Name of the variable.
* @param x First int in int3.
* @param y Second int in int3.
* @param z Third int in int3.
*/
public setInt3(uniformName: string, x: number, y: number, z: number): void {
if (this._cacheFloat... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets a int4 on a uniform variable.
* @param uniformName Name of the variable.
* @param x First int in int4.
* @param y Second int in int4.
* @param z Third int in int4.
* @param w Fourth int in int4.
*/
public setInt4(uniformName: string, x: number, y: number, z: number, ... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets an int array on a uniform variable.
* @param uniformName Name of the variable.
* @param array array to be set.
*/
public setIntArray(uniformName: string, array: Int32Array): void {
this._valueCache[uniformName] = null;
this.engine.setIntArray(this._uniforms[uniformNa... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets an int array 2 on a uniform variable. (Array is specified as single array eg. [1,2,3,4] will result in [[1,2],[3,4]] in the shader)
* @param uniformName Name of the variable.
* @param array array to be set.
*/
public setIntArray2(uniformName: string, array: Int32Array): void {
... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets an int array 3 on a uniform variable. (Array is specified as single array eg. [1,2,3,4,5,6] will result in [[1,2,3],[4,5,6]] in the shader)
* @param uniformName Name of the variable.
* @param array array to be set.
*/
public setIntArray3(uniformName: string, array: Int32Array): void {... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets an int array 4 on a uniform variable. (Array is specified as single array eg. [1,2,3,4,5,6,7,8] will result in [[1,2,3,4],[5,6,7,8]] in the shader)
* @param uniformName Name of the variable.
* @param array array to be set.
*/
public setIntArray4(uniformName: string, array: Int32Array)... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets an float array on a uniform variable.
* @param uniformName Name of the variable.
* @param array array to be set.
*/
public setFloatArray(uniformName: string, array: Float32Array): void {
this._valueCache[uniformName] = null;
this.engine.setFloatArray(this._uniforms[u... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets an float array 2 on a uniform variable. (Array is specified as single array eg. [1,2,3,4] will result in [[1,2],[3,4]] in the shader)
* @param uniformName Name of the variable.
* @param array array to be set.
*/
public setFloatArray2(uniformName: string, array: Float32Array): void {
... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets an float array 3 on a uniform variable. (Array is specified as single array eg. [1,2,3,4,5,6] will result in [[1,2,3],[4,5,6]] in the shader)
* @param uniformName Name of the variable.
* @param array array to be set.
*/
public setFloatArray3(uniformName: string, array: Float32Array): ... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets an float array 4 on a uniform variable. (Array is specified as single array eg. [1,2,3,4,5,6,7,8] will result in [[1,2,3,4],[5,6,7,8]] in the shader)
* @param uniformName Name of the variable.
* @param array array to be set.
*/
public setFloatArray4(uniformName: string, array: Float32... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets an array on a uniform variable.
* @param uniformName Name of the variable.
* @param array array to be set.
*/
public setArray(uniformName: string, array: number[]): void {
this._valueCache[uniformName] = null;
this.engine.setArray(this._uniforms[uniformName]!, array)... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets an array 2 on a uniform variable. (Array is specified as single array eg. [1,2,3,4] will result in [[1,2],[3,4]] in the shader)
* @param uniformName Name of the variable.
* @param array array to be set.
*/
public setArray2(uniformName: string, array: number[]): void {
this._v... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets an array 3 on a uniform variable. (Array is specified as single array eg. [1,2,3,4,5,6] will result in [[1,2,3],[4,5,6]] in the shader)
* @param uniformName Name of the variable.
* @param array array to be set.
* @returns this effect.
*/
public setArray3(uniformName: string, arr... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets an array 4 on a uniform variable. (Array is specified as single array eg. [1,2,3,4,5,6,7,8] will result in [[1,2,3,4],[5,6,7,8]] in the shader)
* @param uniformName Name of the variable.
* @param array array to be set.
*/
public setArray4(uniformName: string, array: number[]): void {
... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets matrices on a uniform variable.
* @param uniformName Name of the variable.
* @param matrices matrices to be set.
*/
public setMatrices(uniformName: string, matrices: Float32Array): void {
if (!matrices) {
return;
}
this._valueCache[uniformName... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets matrix on a uniform variable.
* @param uniformName Name of the variable.
* @param matrix matrix to be set.
*/
public setMatrix(uniformName: string, matrix: IMatrixLike): void {
if (this._cacheMatrix(uniformName, matrix)) {
if (!this.engine.setMatrices(this._unifo... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets a 3x3 matrix on a uniform variable. (Specified as [1,2,3,4,5,6,7,8,9] will result in [1,2,3][4,5,6][7,8,9] matrix)
* @param uniformName Name of the variable.
* @param matrix matrix to be set.
*/
public setMatrix3x3(uniformName: string, matrix: Float32Array): void {
this._valu... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets a 2x2 matrix on a uniform variable. (Specified as [1,2,3,4] will result in [1,2][3,4] matrix)
* @param uniformName Name of the variable.
* @param matrix matrix to be set.
*/
public setMatrix2x2(uniformName: string, matrix: Float32Array): void {
this._valueCache[uniformName] =... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets a float on a uniform variable.
* @param uniformName Name of the variable.
* @param value value to be set.
* @returns this effect.
*/
public setFloat(uniformName: string, value: number): void {
const cache = this._valueCache[uniformName];
if (cache !== undefined... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets a boolean on a uniform variable.
* @param uniformName Name of the variable.
* @param bool value to be set.
*/
public setBool(uniformName: string, bool: boolean): void {
const cache = this._valueCache[uniformName];
if (cache !== undefined && cache === bool) {
... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets a Vector2 on a uniform variable.
* @param uniformName Name of the variable.
* @param vector2 vector2 to be set.
*/
public setVector2(uniformName: string, vector2: IVector2Like): void {
if (this._cacheFloat2(uniformName, vector2.x, vector2.y)) {
if (!this.engine.s... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets a float2 on a uniform variable.
* @param uniformName Name of the variable.
* @param x First float in float2.
* @param y Second float in float2.
*/
public setFloat2(uniformName: string, x: number, y: number): void {
if (this._cacheFloat2(uniformName, x, y)) {
... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets a Vector3 on a uniform variable.
* @param uniformName Name of the variable.
* @param vector3 Value to be set.
*/
public setVector3(uniformName: string, vector3: IVector3Like): void {
if (this._cacheFloat3(uniformName, vector3.x, vector3.y, vector3.z)) {
if (!this... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets a float3 on a uniform variable.
* @param uniformName Name of the variable.
* @param x First float in float3.
* @param y Second float in float3.
* @param z Third float in float3.
*/
public setFloat3(uniformName: string, x: number, y: number, z: number): void {
if (... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets a Vector4 on a uniform variable.
* @param uniformName Name of the variable.
* @param vector4 Value to be set.
*/
public setVector4(uniformName: string, vector4: IVector4Like): void {
if (this._cacheFloat4(uniformName, vector4.x, vector4.y, vector4.z, vector4.w)) {
... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets a float4 on a uniform variable.
* @param uniformName Name of the variable.
* @param x First float in float4.
* @param y Second float in float4.
* @param z Third float in float4.
* @param w Fourth float in float4.
* @returns this effect.
*/
public setFloat4(unif... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets a Color3 on a uniform variable.
* @param uniformName Name of the variable.
* @param color3 Value to be set.
*/
public setColor3(uniformName: string, color3: IColor3Like): void {
if (this._cacheFloat3(uniformName, color3.r, color3.g, color3.b)) {
if (!this.engine.... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets a Color4 on a uniform variable.
* @param uniformName Name of the variable.
* @param color3 Value to be set.
* @param alpha Alpha value to be set.
*/
public setColor4(uniformName: string, color3: IColor3Like, alpha: number): void {
if (this._cacheFloat4(uniformName, colo... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration | /**
* Sets a Color4 on a uniform variable
* @param uniformName defines the name of the variable
* @param color4 defines the value to be set
*/
public setDirectColor4(uniformName: string, color4: IColor4Like): void {
if (this._cacheFloat4(uniformName, color4.r, color4.g, color4.b, color4... | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration |
public dispose(disposeOnlyFramebuffers = false): void {
this._framebuffer = null;
this._framebufferDepthStencil = null;
super.dispose(disposeOnlyFramebuffers);
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration |
public beginCommandScope() {
if (this._isCommandBufferScopeActive) {
throw new Error("Command scope already active.");
}
this._isCommandBufferScopeActive = true;
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration |
public endCommandScope() {
if (!this._isCommandBufferScopeActive) {
throw new Error("Command scope is not active.");
}
this._isCommandBufferScopeActive = false;
this._submit();
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration |
public startEncodingCommand(command: NativeData) {
this._commandStream.writeNativeData(command);
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration |
public encodeCommandArgAsUInt32(commandArg: number) {
this._commandStream.writeUint32(commandArg);
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration |
public encodeCommandArgAsUInt32s(commandArg: Uint32Array) {
this._commandStream.writeUint32Array(commandArg);
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration |
public encodeCommandArgAsInt32(commandArg: number) {
this._commandStream.writeInt32(commandArg);
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration |
public encodeCommandArgAsInt32s(commandArg: Int32Array) {
this._commandStream.writeInt32Array(commandArg);
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration |
public encodeCommandArgAsFloat32(commandArg: number) {
this._commandStream.writeFloat32(commandArg);
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
MethodDeclaration |
public encodeCommandArgAsFloat32s(commandArg: Float32Array) {
this._commandStream.writeFloat32Array(commandArg);
} | m1911star/Babylon.js | packages/dev/core/src/Engines/nativeEngine.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.