mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-07-15 10:36:44 -04:00
* Updated libpng and zlib
* Added SPR# parsing to the iff library * iff2html now displays BMP_/FBMP, PALT, and SPR# chunks
This commit is contained in:
parent
78f1ca1d6f
commit
1f7061d98a
10 changed files with 219 additions and 41 deletions
|
@ -70,11 +70,10 @@ class VBFile_t {
|
|||
}
|
||||
|
||||
inline float readfloat(){
|
||||
//Obviously a platform-dependent implementation
|
||||
float value;
|
||||
memcpy(&value, Position, 4);
|
||||
union { uint32_t i; float f; } value;
|
||||
value.i = (uint32_t)((Position[0]<<(8*0)) | (Position[1]<<(8*1)) | (Position[2]<<(8*2)) | (Position[3]<<(8*3)));
|
||||
Position += 4;
|
||||
return value;
|
||||
return value.f;
|
||||
}
|
||||
|
||||
inline void readbytes(void* Destination, unsigned length){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue