mirror of https://github.com/mode777/rayjs.git
Update bindings
This commit is contained in:
parent
7e0c04020e
commit
c410b28f83
|
@ -544,17 +544,41 @@ function main(){
|
||||||
setOutParam(getFunction(api.functions, "GuiSpinner")!, 2)
|
setOutParam(getFunction(api.functions, "GuiSpinner")!, 2)
|
||||||
setOutParam(getFunction(api.functions, "GuiValueBox")!, 2)
|
setOutParam(getFunction(api.functions, "GuiValueBox")!, 2)
|
||||||
setOutParam(getFunction(api.functions, "GuiListView")!, 2)
|
setOutParam(getFunction(api.functions, "GuiListView")!, 2)
|
||||||
ignore("GuiListViewEx")
|
|
||||||
|
// const setStringListParam = (fun: RayLibFunction, index: number, indexLen: number) => {
|
||||||
|
// const lenParam = fun!.params![indexLen]
|
||||||
|
// lenParam.binding = { ignore: true }
|
||||||
|
// const param = fun!.params![index]
|
||||||
|
// fun.binding = { customizeCall: "int returnVal = GuiListViewEx(bounds, text, count, focus, scrollIndex, active);" }
|
||||||
|
// param.binding = {
|
||||||
|
// jsType: `{ ${param.name}: string[] }`,
|
||||||
|
// customConverter: (gen,src) => {
|
||||||
|
// gen.line("// TODO: Read string values")
|
||||||
|
// },
|
||||||
|
// customCleanup: (gen, src) => {
|
||||||
|
// gen.line("// TODO: Dispose strings")
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
|
//const glve = getFunction(api.functions, "GuiListViewEx")!
|
||||||
|
//setStringListParam(glve, 1,2)
|
||||||
|
//setOutParam(glve, 3)
|
||||||
|
//setOutParam(glve, 4)
|
||||||
|
ignore("GuiListViewEx");
|
||||||
|
|
||||||
setOutParamString(getFunction(api.functions, "GuiTextBox")!, 1,2)
|
setOutParamString(getFunction(api.functions, "GuiTextBox")!, 1,2)
|
||||||
//ignore("GuiTextBox")
|
|
||||||
const gtib = getFunction(api.functions, "GuiTextInputBox")!
|
const gtib = getFunction(api.functions, "GuiTextInputBox")!
|
||||||
setOutParamString(gtib,4,5)
|
setOutParamString(gtib,4,5)
|
||||||
setOutParam(gtib, 6)
|
setOutParam(gtib, 6)
|
||||||
|
|
||||||
//setOutParam(getFunction(api.functions, "GuiTextInputBox")!, 6)
|
// needs string array
|
||||||
ignore("GuiTabBar")
|
ignore("GuiTabBar")
|
||||||
ignore("GuiGetIcons")
|
ignore("GuiGetIcons")
|
||||||
ignore("GuiLoadIcons")
|
ignore("GuiLoadIcons")
|
||||||
|
|
||||||
// TODO: Parse and support light struct
|
// TODO: Parse and support light struct
|
||||||
ignore("CreateLight")
|
ignore("CreateLight")
|
||||||
ignore("UpdateLightValues")
|
ignore("UpdateLightValues")
|
||||||
|
|
|
@ -1427,13 +1427,31 @@ function main() {
|
||||||
setOutParam(getFunction(api.functions, "GuiSpinner"), 2);
|
setOutParam(getFunction(api.functions, "GuiSpinner"), 2);
|
||||||
setOutParam(getFunction(api.functions, "GuiValueBox"), 2);
|
setOutParam(getFunction(api.functions, "GuiValueBox"), 2);
|
||||||
setOutParam(getFunction(api.functions, "GuiListView"), 2);
|
setOutParam(getFunction(api.functions, "GuiListView"), 2);
|
||||||
|
// const setStringListParam = (fun: RayLibFunction, index: number, indexLen: number) => {
|
||||||
|
// const lenParam = fun!.params![indexLen]
|
||||||
|
// lenParam.binding = { ignore: true }
|
||||||
|
// const param = fun!.params![index]
|
||||||
|
// fun.binding = { customizeCall: "int returnVal = GuiListViewEx(bounds, text, count, focus, scrollIndex, active);" }
|
||||||
|
// param.binding = {
|
||||||
|
// jsType: `{ ${param.name}: string[] }`,
|
||||||
|
// customConverter: (gen,src) => {
|
||||||
|
// gen.line("// TODO: Read string values")
|
||||||
|
// },
|
||||||
|
// customCleanup: (gen, src) => {
|
||||||
|
// gen.line("// TODO: Dispose strings")
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
//const glve = getFunction(api.functions, "GuiListViewEx")!
|
||||||
|
//setStringListParam(glve, 1,2)
|
||||||
|
//setOutParam(glve, 3)
|
||||||
|
//setOutParam(glve, 4)
|
||||||
ignore("GuiListViewEx");
|
ignore("GuiListViewEx");
|
||||||
setOutParamString(getFunction(api.functions, "GuiTextBox"), 1, 2);
|
setOutParamString(getFunction(api.functions, "GuiTextBox"), 1, 2);
|
||||||
//ignore("GuiTextBox")
|
|
||||||
const gtib = getFunction(api.functions, "GuiTextInputBox");
|
const gtib = getFunction(api.functions, "GuiTextInputBox");
|
||||||
setOutParamString(gtib, 4, 5);
|
setOutParamString(gtib, 4, 5);
|
||||||
setOutParam(gtib, 6);
|
setOutParam(gtib, 6);
|
||||||
//setOutParam(getFunction(api.functions, "GuiTextInputBox")!, 6)
|
// needs string array
|
||||||
ignore("GuiTabBar");
|
ignore("GuiTabBar");
|
||||||
ignore("GuiGetIcons");
|
ignore("GuiGetIcons");
|
||||||
ignore("GuiLoadIcons");
|
ignore("GuiLoadIcons");
|
||||||
|
|
Loading…
Reference in New Issue