You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You've noted in your video that you couldn't figure out how to omit the C wrapper.
Doesn't the following work?
77 SDL-RWops-Pointer usagepointer.
call'SDL_RWFromConstMem'usingby reference ground-asset-data
by value ground-asset-data-size
returning SDL-RWops-Pointer
end-callcall'IMG_LoadTexture_RW'usingby value renderer SDL-RWops-Pointer 1returning ground-texture
end-call
Note: obviously it is quite longer so a wrapper makes sense in any case - the nearest you'd get to that in COBOL would be writing a user-defined-function; the result would be a wrapper invoked as:
movefunction loadTextureData (ground-asset-data, renderer)
to ground-texture
To pass variable lengths you'd use 01 texture-data pic x any length. for the data on the function's LINKAGE, then pass by value function length (texture-data) in the CALL.
The text was updated successfully, but these errors were encountered:
RE e315799
You've noted in your video that you couldn't figure out how to omit the C wrapper.
Doesn't the following work?
Note: obviously it is quite longer so a wrapper makes sense in any case - the nearest you'd get to that in COBOL would be writing a user-defined-function; the result would be a wrapper invoked as:
To pass variable lengths you'd use
01 texture-data pic x any length.
for the data on the function'sLINKAGE
, then passby value function length (texture-data)
in theCALL
.The text was updated successfully, but these errors were encountered: