mirror of
https://github.com/isledecomp/isle.git
synced 2024-11-23 16:18:31 -05:00
5f413165cc
* cmake: use imported targets for 3rd party libs * Fix casing of skateboard.h include * cmake: tglrl realtime viewmanager mxgeometry * cmake: spin off some source in static libraries * dx5 for everyone * ci: bump actions/checkout to v4 * move LEGO1/realtime/realtimeview.cpp to lego1 because it exports symbols * add misc library * Add omni library * Return of the .def's * Remove COMPAT_CONST in MxVideoParam::MxVideoParam * Run clang-format * move LEGO1/realtime/realtimeview.cpp to realtime lib * Add 3dmanager library * Rename .def files * Remove incorrect deps to Omni * Remove DLL expor decls * Remove unnecessary library dep from ROI * Remove COMPAT_CONST * Move 3dmanager lib before Omni * Remove mxgeometry lib (`geom` is actually `lego/sources/geom`, which we don't have in our decomp yet) * viewmanager has a dependency on realtime + fix mingw's def * Remove Smacker::Smacker from lego1 link libraries --------- Co-authored-by: Christian Semmler <mail@csemmler.com>
31 lines
660 B
C++
31 lines
660 B
C++
#ifndef MXIOINFO_H
|
|
#define MXIOINFO_H
|
|
|
|
#include "mxtypes.h"
|
|
|
|
// mmsystem.h requires inclusion of windows.h before
|
|
// clang-format off
|
|
#include <windows.h>
|
|
#include <mmsystem.h>
|
|
// clang-format on
|
|
|
|
class MXIOINFO {
|
|
public:
|
|
MXIOINFO();
|
|
~MXIOINFO();
|
|
|
|
MxU16 Open(const char*, MxULong);
|
|
MxU16 Close(MxLong);
|
|
MxLong Read(void*, MxLong);
|
|
MxLong Seek(MxLong, MxLong);
|
|
MxU16 SetBuffer(char*, MxLong, MxLong);
|
|
MxU16 Flush(MxU16);
|
|
MxU16 Advance(MxU16);
|
|
MxU16 Descend(MMCKINFO*, const MMCKINFO*, MxU16);
|
|
|
|
// NOTE: In MXIOINFO, the `hmmio` member of MMIOINFO is used like
|
|
// an HFILE (int) instead of an HMMIO (WORD).
|
|
MMIOINFO m_info;
|
|
};
|
|
|
|
#endif // MXIOINFO_H
|