mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-26 04:05:53 +01:00
56 lines
1.2 KiB
C
56 lines
1.2 KiB
C
|
/* Copyright (c) 2002-2012 Croteam Ltd. All rights reserved. */
|
||
|
|
||
|
#ifndef SE_INCL_PRECACHING_H
|
||
|
#define SE_INCL_PRECACHING_H
|
||
|
#ifdef PRAGMA_ONCE
|
||
|
#pragma once
|
||
|
#endif
|
||
|
|
||
|
#define PRECACHE_NONE 0
|
||
|
#define PRECACHE_SMART 1
|
||
|
#define PRECACHE_ALL 2
|
||
|
#define PRECACHE_PARANOIA 3
|
||
|
|
||
|
extern ENGINE_API INDEX gam_iPrecachePolicy;
|
||
|
extern ENGINE_API INDEX _precache_bNowPrecaching;
|
||
|
|
||
|
class CTmpPrecachingNow {
|
||
|
public:
|
||
|
BOOL m_bOldPrecaching;
|
||
|
|
||
|
inline CTmpPrecachingNow(void) {
|
||
|
m_bOldPrecaching = _precache_bNowPrecaching;
|
||
|
_precache_bNowPrecaching = TRUE;
|
||
|
}
|
||
|
~CTmpPrecachingNow(void)
|
||
|
{
|
||
|
_precache_bNowPrecaching = m_bOldPrecaching;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
class ENGINE_API CAutoPrecacheSound {
|
||
|
public:
|
||
|
CSoundData *apc_psd;
|
||
|
CAutoPrecacheSound();
|
||
|
~CAutoPrecacheSound();
|
||
|
void Precache(const CTFileName &fnm);
|
||
|
};
|
||
|
class ENGINE_API CAutoPrecacheModel {
|
||
|
public:
|
||
|
CModelData *apc_pmd;
|
||
|
CAutoPrecacheModel();
|
||
|
~CAutoPrecacheModel();
|
||
|
void Precache(const CTFileName &fnm);
|
||
|
};
|
||
|
class ENGINE_API CAutoPrecacheTexture {
|
||
|
public:
|
||
|
CTextureData *apc_ptd;
|
||
|
CAutoPrecacheTexture();
|
||
|
~CAutoPrecacheTexture();
|
||
|
void Precache(const CTFileName &fnm);
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif /* include-once check. */
|
||
|
|