mirror of https://github.com/mode777/rayjs.git
Add vr support bindings
This commit is contained in:
parent
66ac427292
commit
8b29693b74
|
@ -301,6 +301,14 @@ function main(){
|
||||||
//destructor: "UnloadMaterial"
|
//destructor: "UnloadMaterial"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getStruct(api.structs, "VrDeviceInfo")!.binding = {
|
||||||
|
createEmptyConstructor: true,
|
||||||
|
properties: {
|
||||||
|
hResolution: { set: true, get: true },
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
getFunction(api.functions, "EndDrawing")!.binding = { after: gen => gen.call("app_update_quickjs", []) }
|
getFunction(api.functions, "EndDrawing")!.binding = { after: gen => gen.call("app_update_quickjs", []) }
|
||||||
ignore("SetWindowIcons")
|
ignore("SetWindowIcons")
|
||||||
ignore("GetWindowHandle")
|
ignore("GetWindowHandle")
|
||||||
|
@ -311,10 +319,10 @@ function main(){
|
||||||
ignore("PollInputEvents")
|
ignore("PollInputEvents")
|
||||||
ignore("WaitTime")
|
ignore("WaitTime")
|
||||||
|
|
||||||
ignore("BeginVrStereoMode")
|
//ignore("BeginVrStereoMode")
|
||||||
ignore("EndVrStereoMode")
|
//ignore("EndVrStereoMode")
|
||||||
ignore("LoadVrStereoConfig")
|
//ignore("LoadVrStereoConfig")
|
||||||
ignore("UnloadVrStereoConfig")
|
//ignore("UnloadVrStereoConfig")
|
||||||
|
|
||||||
getFunction(api.functions, "SetShaderValue")!.binding = { body: (gen) => {
|
getFunction(api.functions, "SetShaderValue")!.binding = { body: (gen) => {
|
||||||
gen.jsToC("Shader","shader","argv[0]", core.structLookup)
|
gen.jsToC("Shader","shader","argv[0]", core.structLookup)
|
||||||
|
|
Loading…
Reference in New Issue