MCPcopy Index your code
hub / github.com/gre/gl-react / _syncNextDrawProps

Method _syncNextDrawProps

packages/gl-react/src/Node.tsx:336–349  ·  view source on GitHub ↗
(nextProps: Props, nextContext: any)

Source from the content-addressed store, hash-verified

334 }
335
336 _syncNextDrawProps(nextProps: Props, nextContext: any) {
337 const nextWidthHeight = nodeWidthHeight(nextProps, nextContext);
338 if (this.framebuffer) {
339 this.framebuffer.syncSize(...nextWidthHeight);
340 }
341 if (this.backbuffer) {
342 this.backbuffer.syncSize(...nextWidthHeight);
343 }
344 invariant(
345 nextProps.backbuffering === this.drawProps.backbuffering,
346 "Node backbuffering prop must not changed. (not yet supported)"
347 );
348 this.drawProps = nextProps;
349 }
350
351 _resolveElement = (
352 uniform: string,

Callers 2

componentDidUpdateMethod · 0.95
setDrawPropsMethod · 0.95

Calls 1

nodeWidthHeightFunction · 0.85

Tested by

no test coverage detected