MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / unmanagedtype

Function unmanagedtype

codegen/api_shared.py:54–69  ·  view source on GitHub ↗
(thetype)

Source from the content-addressed store, hash-verified

52 return classname.replace('vr::', 'VR::').replace('::', '_') + '_' + methodname
53
54def unmanagedtype(thetype):
55 if(thetype == 'float'):
56 return 'R4'
57 if(thetype == 'double'):
58 return 'R8'
59 if(thetype == 'char'):
60 return 'I1'
61 if(thetype == 'byte'):
62 return 'U1'
63 if(thetype == 'ulong'):
64 return 'U8'
65 if(thetype == 'uint'):
66 return 'U4'
67 if(thetype == 'CSteamID'): # Special case for CSteamID which is a complex C def but is 64-bits.
68 return 'U8'
69 return 'Struct'
70
71def ctype(thetype):
72 thetype = thetype.replace('vr::','')

Callers 3

outputstructfieldsFunction · 0.85
outputstructsFunction · 0.85
OutputStructFieldsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected