Tweaks to lowlevel.[ch]xx from Norman.

This commit is contained in:
curt 2001-04-06 18:08:07 +00:00
parent cebcf6a4fc
commit 2294283506
3 changed files with 52 additions and 291 deletions

View File

@ -1101,6 +1101,25 @@ SOURCE=.\simgear\sky\stars.cxx
!ENDIF
# End Source File
# End Group
# Begin Group "Lib_sgthreads"
# PROP Default_Filter ""
# Begin Source File
SOURCE=.\simgear\threads\SGThread.cxx
!IF "$(CFG)" == "SimGear - Win32 Release"
# PROP Intermediate_Dir "Release\Lib_sgthreads"
!ELSEIF "$(CFG)" == "SimGear - Win32 Debug"
# PROP Intermediate_Dir "Debug\Lib_sgthreads"
!ENDIF
# End Source File
# End Group
# Begin Group "Lib_sgtiming"
@ -1165,261 +1184,6 @@ SOURCE=.\simgear\timing\timezone.cxx
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\simgear\timing\#
!IF "$(CFG)" == "SimGear - Win32 Release"
# PROP Intermediate_Dir "Release\Lib_sgtiming"
!ELSEIF "$(CFG)" == "SimGear - Win32 Debug"
# PROP Intermediate_Dir "Debug\Lib_sgtiming"
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\simgear\timing\event.cxx
!IF "$(CFG)" == "SimGear - Win32 Release"
# PROP Intermediate_Dir "Release\Lib_sgtiming"
!ELSEIF "$(CFG)" == "SimGear - Win32 Debug"
# PROP Intermediate_Dir "Debug\Lib_sgtiming"
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\simgear\timing\event.hxx
!IF "$(CFG)" == "SimGear - Win32 Release"
# PROP Intermediate_Dir "Release\Lib_sgtiming"
!ELSEIF "$(CFG)" == "SimGear - Win32 Debug"
# PROP Intermediate_Dir "Debug\Lib_sgtiming"
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\simgear\timing\#
!IF "$(CFG)" == "SimGear - Win32 Release"
# PROP Intermediate_Dir "Release\Lib_sgtiming"
!ELSEIF "$(CFG)" == "SimGear - Win32 Debug"
# PROP Intermediate_Dir "Debug\Lib_sgtiming"
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\simgear\timing\fg_timer.cxx
!IF "$(CFG)" == "SimGear - Win32 Release"
# PROP Intermediate_Dir "Release\Lib_sgtiming"
!ELSEIF "$(CFG)" == "SimGear - Win32 Debug"
# PROP Intermediate_Dir "Debug\Lib_sgtiming"
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\simgear\timing\fg_timer.hxx
!IF "$(CFG)" == "SimGear - Win32 Release"
# PROP Intermediate_Dir "Release\Lib_sgtiming"
!ELSEIF "$(CFG)" == "SimGear - Win32 Debug"
# PROP Intermediate_Dir "Debug\Lib_sgtiming"
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\simgear\timing\#
!IF "$(CFG)" == "SimGear - Win32 Release"
# PROP Intermediate_Dir "Release\Lib_sgtiming"
!ELSEIF "$(CFG)" == "SimGear - Win32 Debug"
# PROP Intermediate_Dir "Debug\Lib_sgtiming"
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\simgear\timing\light.cxx
!IF "$(CFG)" == "SimGear - Win32 Release"
# PROP Intermediate_Dir "Release\Lib_sgtiming"
!ELSEIF "$(CFG)" == "SimGear - Win32 Debug"
# PROP Intermediate_Dir "Debug\Lib_sgtiming"
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\simgear\timing\light.hxx
!IF "$(CFG)" == "SimGear - Win32 Release"
# PROP Intermediate_Dir "Release\Lib_sgtiming"
!ELSEIF "$(CFG)" == "SimGear - Win32 Debug"
# PROP Intermediate_Dir "Debug\Lib_sgtiming"
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\simgear\timing\#
!IF "$(CFG)" == "SimGear - Win32 Release"
# PROP Intermediate_Dir "Release\Lib_sgtiming"
!ELSEIF "$(CFG)" == "SimGear - Win32 Debug"
# PROP Intermediate_Dir "Debug\Lib_sgtiming"
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\simgear\timing\moonpos.cxx
!IF "$(CFG)" == "SimGear - Win32 Release"
# PROP Intermediate_Dir "Release\Lib_sgtiming"
!ELSEIF "$(CFG)" == "SimGear - Win32 Debug"
# PROP Intermediate_Dir "Debug\Lib_sgtiming"
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\simgear\timing\moonpos.hxx
!IF "$(CFG)" == "SimGear - Win32 Release"
# PROP Intermediate_Dir "Release\Lib_sgtiming"
!ELSEIF "$(CFG)" == "SimGear - Win32 Debug"
# PROP Intermediate_Dir "Debug\Lib_sgtiming"
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\simgear\timing\#
!IF "$(CFG)" == "SimGear - Win32 Release"
# PROP Intermediate_Dir "Release\Lib_sgtiming"
!ELSEIF "$(CFG)" == "SimGear - Win32 Debug"
# PROP Intermediate_Dir "Debug\Lib_sgtiming"
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\simgear\timing\sunpos.cxx
!IF "$(CFG)" == "SimGear - Win32 Release"
# PROP Intermediate_Dir "Release\Lib_sgtiming"
!ELSEIF "$(CFG)" == "SimGear - Win32 Debug"
# PROP Intermediate_Dir "Debug\Lib_sgtiming"
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\simgear\timing\sunpos.hxx
!IF "$(CFG)" == "SimGear - Win32 Release"
# PROP Intermediate_Dir "Release\Lib_sgtiming"
!ELSEIF "$(CFG)" == "SimGear - Win32 Debug"
# PROP Intermediate_Dir "Debug\Lib_sgtiming"
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\simgear\timing\#
!IF "$(CFG)" == "SimGear - Win32 Release"
# PROP Intermediate_Dir "Release\Lib_sgtiming"
!ELSEIF "$(CFG)" == "SimGear - Win32 Debug"
# PROP Intermediate_Dir "Debug\Lib_sgtiming"
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\simgear\timing\timestamp.hxx
!IF "$(CFG)" == "SimGear - Win32 Release"
# PROP Intermediate_Dir "Release\Lib_sgtiming"
!ELSEIF "$(CFG)" == "SimGear - Win32 Debug"
# PROP Intermediate_Dir "Debug\Lib_sgtiming"
!ENDIF
# End Source File
# End Group
# Begin Group "Lib_sgxgl"

View File

@ -521,29 +521,3 @@ void sgWriteString ( gzFile fd, const char *var )
}
void sgReadVec2 ( gzFile fd, sgVec2 var ) { sgReadFloat ( fd, 2, var ) ; }
void sgWriteVec2 ( gzFile fd, const sgVec2 var ) {
sgWriteFloat ( fd, 2, var ) ;
}
void sgReadVec3 ( gzFile fd, sgVec3 var ) { sgReadFloat ( fd, 3, var ) ; }
void sgWriteVec3 ( gzFile fd, const sgVec3 var ) {
sgWriteFloat ( fd, 3, var ) ;
}
void sgReaddVec3 ( gzFile fd, sgdVec3 var ) { sgReadDouble ( fd, 3, var ) ; }
void sgWritedVec3 ( gzFile fd, const sgdVec3 var ) {
sgWriteDouble ( fd, 3, var ) ;
}
void sgReadVec4 ( gzFile fd, sgVec4 var ) { sgReadFloat ( fd, 4, var ) ; }
void sgWriteVec4 ( gzFile fd, const sgVec4 var ) {
sgWriteFloat ( fd, 4, var ) ;
}
void sgReadMat4 ( gzFile fd, sgMat4 var ) {
sgReadFloat ( fd, 16, (float *)var ) ;
}
void sgWriteMat4 ( gzFile fd, const sgMat4 var ) {
sgWriteFloat ( fd, 16, (float *)var ) ;
}

View File

@ -79,17 +79,40 @@ void sgWriteBytes ( gzFile fd, const unsigned int n, const void *var ) ;
void sgReadString ( gzFile fd, char **var ) ;
void sgWriteString ( gzFile fd, const char *var ) ;
void sgReadVec2 ( gzFile fd, sgVec2 var ) ;
void sgWriteVec2 ( gzFile fd, const sgVec2 var ) ;
void sgReadVec3 ( gzFile fd, sgVec3 var ) ;
void sgWriteVec3 ( gzFile fd, const sgVec3 var ) ;
void sgReaddVec3 ( gzFile fd, sgdVec3 var ) ;
void sgWritedVec3 ( gzFile fd, const sgdVec3 var ) ;
void sgReadVec4 ( gzFile fd, sgVec4 var ) ;
void sgWriteVec4 ( gzFile fd, const sgVec4 var ) ;
inline void sgReadVec2 ( gzFile fd, sgVec2 var ) {
sgReadFloat ( fd, 2, var ) ;
}
inline void sgWriteVec2 ( gzFile fd, const sgVec2 var ) {
sgWriteFloat ( fd, 2, var ) ;
}
void sgReadMat4 ( gzFile fd, sgMat4 var ) ;
void sgWriteMat4 ( gzFile fd, const sgMat4 var ) ;
inline void sgReadVec3 ( gzFile fd, sgVec3 var ) {
sgReadFloat ( fd, 3, var ) ;
}
inline void sgWriteVec3 ( gzFile fd, const sgVec3 var ) {
sgWriteFloat ( fd, 3, var ) ;
}
inline void sgReaddVec3 ( gzFile fd, sgdVec3 var ) {
sgReadDouble ( fd, 3, var ) ;
}
inline void sgWritedVec3 ( gzFile fd, const sgdVec3 var ) {
sgWriteDouble ( fd, 3, var ) ;
}
inline void sgReadVec4 ( gzFile fd, sgVec4 var ) {
sgReadFloat ( fd, 4, var ) ;
}
inline void sgWriteVec4 ( gzFile fd, const sgVec4 var ) {
sgWriteFloat ( fd, 4, var ) ;
}
inline void sgReadMat4 ( gzFile fd, sgMat4 var ) {
sgReadFloat ( fd, 16, (float *)var ) ;
}
inline void sgWriteMat4 ( gzFile fd, const sgMat4 var ) {
sgWriteFloat ( fd, 16, (float *)var ) ;
}
void sgClearReadError();
void sgClearWriteError();