webgl2-fundamentals icon indicating copy to clipboard operation
webgl2-fundamentals copied to clipboard

Is there any way to get start using state-diagram with building?

Open Mirocos opened this issue 4 years ago • 2 comments

I try to use state-diagram mode to visual something,but I build failed at npm install. My node is v8.12.0

Mirocos avatar Apr 28 '20 10:04 Mirocos

The state-diagram is just a demo. It is not designed to be used with your own code. Sorry.

You could try to hack yourself. The problem is there is no way to debug JavaScript from JavaScript. In other words there is no way to pause after each line in JavaScript

I suppose you could try to turn it into a debugging extension

Also, it doesn't show all state, specially for WebGL2. For example it doesn't show uniform buffer objects, queries, sync objects, and I'm sure a few more. It doesn't show all the different texture formats either.

greggman avatar Apr 28 '20 16:04 greggman

The state-diagram is just a demo. It is not designed to be used with your own code. Sorry.

You could try to hack yourself. The problem is there is no way to debug JavaScript from JavaScript. In other words there is no way to pause after each line in JavaScript

I suppose you could try to turn it into a debugging extension

Also, it doesn't show all state, specially for WebGL2. For example it doesn't show uniform buffer objects, queries, sync objects, and I'm sure a few more. It doesn't show all the different texture formats either.

I have a idea to realize this kind of debug. All we need to do is to simulate a simple WebGL2 environment. Actually I do does some try on CPP.

JavaScript also have concept of class, I think is possible to do it.

Mirocos avatar Jul 20 '20 09:07 Mirocos