Skip to content
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

setGenericArray is not documented. #284

Closed
bugcaptor opened this issue Nov 1, 2016 · 2 comments
Closed

setGenericArray is not documented. #284

bugcaptor opened this issue Nov 1, 2016 · 2 comments

Comments

@bugcaptor
Copy link
Contributor

I found GMesh::setGenericArray method and its lua binding also. But has no documentation and any forum article. May I use it?

Made spec based on the code.

Mesh:setGenericArray(index: int, type: int, mult: int, count: int, arrayTable: {})

type(int enum): DBYTE(0), DUBYTE, DSHORT, DUSHORT, DINT, DFLOAT
index: [3, 7] (0~2 already occupied by base elements)
mult: maybe logical item's element count
count: maybe logical item count
arrayTable size must be eqaul to mult * count.

@hgy29
Copy link
Contributor

hgy29 commented Nov 1, 2016

Yes, you can use it, and I shall document it :)
Your spec is correct, and you can find DBYTE, DUBUYTE, ... values in Shader binder: Shader.DUBYTE, Shader.DFLOAT, ...
mult is typically the vector size (think shader) and count the number of item to send. Should be equal to vertex count.

@dungeonkim
Copy link

It does not seem to work in HTML5 export.

@hgy29 hgy29 closed this as completed in 1429770 Jun 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants