30 lines
537 B
C++
30 lines
537 B
C++
#ifndef I_DATA_BUFFER_H__
|
|
#define I_DATA_BUFFER_H__
|
|
|
|
#include "IDataStream.h"
|
|
#include "IResource.h"
|
|
namespace LifeGraphics
|
|
{
|
|
enum IBufferLockFlags
|
|
{
|
|
LF_None = 0,
|
|
LF_DoNotCopyData = 1,
|
|
LF_ReadOnly = 16,
|
|
LF_NoSystemLock = 2048,
|
|
LF_NoOverwrite = 4096,
|
|
LF_Discard = 8192,
|
|
LF_DoNotWait = 16384,
|
|
LF_NoDirtyUpdate = 32768,
|
|
};
|
|
|
|
class IDataBuffer : public IResource
|
|
{
|
|
public:
|
|
virtual ~IDataBuffer(){}
|
|
virtual LifeCore::IDataStream* Map(int offset, int flags) = 0;
|
|
virtual void Unmap() = 0;
|
|
int length;
|
|
};
|
|
}
|
|
|
|
#endif |