6 #include "PackedRenderable.h"
9 #include "CullingVolume.h"
10 #include "VectorMathDecl.h"
12 #include "GLHelpers.h"
13 #include "IAsyncTexture.h"
25 LayerIds::Values layerId,
36 :
PackedRenderable(layerId, material, pMesh, pCullingVolumeTree, vertexBinding, ecefPosition, positionBoundsMin, positionBoundsMax, uvBoundsMin, uvBoundsMax)
37 , m_pAsyncTexture(pAsyncTexture)
39 if (m_pAsyncTexture != NULL)
41 m_pAsyncTexture->IncrementReferenceCount();
47 if (m_pAsyncTexture != NULL)
49 m_pAsyncTexture->DecrementReferenceCount();
53 TTextureId GetLightmapTextureId()
const
55 return m_pAsyncTexture->GetTextureInfo().textureId;
60 if (m_pAsyncTexture != NULL)
62 m_pAsyncTexture->DecrementReferenceCount();
64 m_pAsyncTexture = pAsyncTexture;
65 m_pAsyncTexture->IncrementReferenceCount();