|
Smalltalk/X WebserverDocumentation of class 'HalfFloatArray': |
|
|
Class: HalfFloatArrayInheritance:Object | +--Collection | +--SequenceableCollection | +--ArrayedCollection | +--UninterpretedBytes | +--AbstractNumberVector | +--HalfFloatArray
Description:
HalfFloatArrays store half precision (16bit) floats (and nothing else).
HalfFloats were traditionally seldom used, but seem to become more popular
these days, as some 3D graphics accelerators and game engines use them
for very dense and compact storage of texture and vertex data.
Notice, that HalfFloats are not supported as first class objects by the ST/X system;
i.e. outside of a HalfFloatArray, these values are represented as floats
or doubles. When accessing a HalfFloatArray's element via getters/setters,
shortFloat (i.e. single precision 32bit floats) are exchanged.
Be aware that the numeric range of a half-float is very very limited.
[memory requirements:]
OBJ-HEADER + (size * 2)
Related information:
FloatArray
DoubleArray
Array
http://www.opengl.org/wiki/Small_Float_Formats
Class protocol:queries
Instance protocol:accessing queries
|
|
|
ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Wed, 17 Dec 2025 10:12:59 GMT
|