![]() |
Smalltalk/X WebserverDocumentation of class 'HalfFloatArray': |
|
|
Class: HalfFloatArrayInheritance:Object | +--Collection | +--SequenceableCollection | +--ArrayedCollection | +--UninterpretedBytes | +--AbstractNumberVector | +--UnboxedFloatArray | +--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 [ttps] Class protocol:queries
Instance protocol:accessing
|
|
|
ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Sun, 04 Jun 2023 17:16:30 GMT
|