Add half precision floating point support to StreamPeer
Closes godotengine/godot-proposals#5983 Adds put/get methods to `StreamPeer` that handles half precision floating point values. Adds endode/decode half precision floating point to `marshalls`. Adds `get_half` and `store_half` to `FileAccess` Co-Authored-By: "Alfonso J. Ramos" <theraot@gmail.com>
This commit is contained in:
committed by
Pablo Andres Fuente
parent
ec6a1c0e79
commit
eb86670f94
@ -59,6 +59,12 @@
|
||||
Gets a single-precision float from the stream.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_half">
|
||||
<return type="float" />
|
||||
<description>
|
||||
Gets a half-precision float from the stream.
|
||||
</description>
|
||||
</method>
|
||||
<method name="get_partial_data">
|
||||
<return type="Array" />
|
||||
<param index="0" name="bytes" type="int" />
|
||||
@ -162,6 +168,13 @@
|
||||
Puts a single-precision float into the stream.
|
||||
</description>
|
||||
</method>
|
||||
<method name="put_half">
|
||||
<return type="void" />
|
||||
<param index="0" name="value" type="float" />
|
||||
<description>
|
||||
Puts a half-precision float into the stream.
|
||||
</description>
|
||||
</method>
|
||||
<method name="put_partial_data">
|
||||
<return type="Array" />
|
||||
<param index="0" name="data" type="PackedByteArray" />
|
||||
|
||||
Reference in New Issue
Block a user