-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[p5.js 2.0] State machines and renderer refactoring #7270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
6ef1afc
Concentrate DOM creation of renderer in the createCanvas method
limzykenneth 2f7f824
Indentation
limzykenneth 9c47a4c
Fix p5.Graphics creation
limzykenneth c39cfa6
p5.Graphics acts as wrapper of p5.Renderer
limzykenneth 263ae57
Fix p5.Graphics.remove and simplify it
limzykenneth 8427978
Fix webgl canvas creation
limzykenneth 5c68e24
Minor adjustment to p5.Renderer and p5.Graphics remove
limzykenneth e3c3683
Make resizeCanvas() independent of DOM
limzykenneth f1d8735
Remove renderer createCanvas() method as it is redundant with constru…
limzykenneth 7a91e53
Global width/height read directly from renderer
limzykenneth b07b438
Move ownership of pixel density to renderer
limzykenneth 55c45ed
Fix a few tests
limzykenneth beb432f
Fix a few more tests
limzykenneth 8a60cf3
Include p5 instance methods on p5.Graphics
limzykenneth 40b621d
Refactor some WebGL sections to try to fix tests
limzykenneth 418251b
Visual test use constants from direct import
limzykenneth eff9ac4
Refactor shape out into its own module
limzykenneth db6e599
Use new module API to attach methods to p5.Graphics
limzykenneth 7cd3fb3
Attach more functions to p5.Graphics
limzykenneth 104bd32
Move blendMode() to color/setting module
limzykenneth 5c70636
Merge branch 'dev-2.0' into 2.0-modules
limzykenneth 27326fe
Convert renderers to use new syntax modules
limzykenneth 0c71618
Change how all classes are defined to be more exportable
limzykenneth cfa67aa
Use class imports wherever possible
limzykenneth 5cc1555
Fix enableLighting state name inconsistency
limzykenneth 7b59c31
Inline webgl nostroke call
limzykenneth beb947a
Convert a few more class usage, fix a few more tests
limzykenneth 1ea4e25
Fix for before refactors
limzykenneth 90bcbc0
Duplicate pixels implementation in p5.Image from p5.Renderer2D
limzykenneth 59e5cb1
Unindent to try to reduce merge conflicts
davepagurek c34a511
Merge branch 'dev-2.0' into 2.0-modules
davepagurek a68e4c3
Put indentation back
davepagurek ae12ade
Move 3D primitives implementation into RendererGL
limzykenneth be38743
Move some lights implementation to RendererGL
limzykenneth 1941150
Move material implementation to RendererGL
limzykenneth b249cb5
Fix incorrect reference to renderer
limzykenneth 0021fa4
Move camera implementation to RendererGL
limzykenneth f69ad65
Fix vertexProperty
limzykenneth 9642ee5
Fix direct call to change renderer imagemode
limzykenneth 545621f
Fix incorrect reference to state
limzykenneth 1f811b9
Remove some references to pInst in RendererGL
limzykenneth da70a0e
Fix p5.Graphics overwriting default drawing context
limzykenneth 4314ec0
Fix text rendering
limzykenneth c402baa
Remove more references to pInst in RendererGL
limzykenneth 8a3f364
Make sure ensureCompiledOnContext is called for internal shader() calls
davepagurek 6fc9e8d
Fix createFilterShader context
davepagurek fd02fe4
Load images before creating canvas
davepagurek 0f44413
Clear cached maxTextureSize for tests with stubbed value
davepagurek bea4d02
Make internal stroke and fill also enable stroke and fill
davepagurek 9ae00f4
Make sure default attributes are loaded before initializing WebGL con…
davepagurek c0ec064
Make p5 also expose properties from the renderer like graphics do
davepagurek 3130090
Just expose pixels on the main instance, actually
davepagurek fe0d85a
Refactor out need for pInst in p5.Color
limzykenneth 24525f9
Remove console.log
limzykenneth d85876c
Move rest of light implementation to Renderer3D
limzykenneth 7fd3c4f
Fix updatePixels incorrect on WebGL mode
davepagurek 468ab53
Fix constant usage on graphic that should be on the main instance
davepagurek 2641218
Merge branch 'dev-2.0' into 2.0-modules
limzykenneth File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.