//////////////////////////////////////////////////////////////// // // CEffectTemplateImpl::PostConstruct // // // //////////////////////////////////////////////////////////////// void CEffectTemplateImpl::PostConstruct ( CRenderItemManager* pManager, const SString& strFilename, const SString& strRootPath, SString& strOutStatus, bool bDebug ) { Super::PostConstruct ( pManager ); // Initial creation of d3d data CreateUnderlyingData ( strFilename, strRootPath, strOutStatus, bDebug ); }
//////////////////////////////////////////////////////////////// // // CShaderInstance::PostConstruct // // // //////////////////////////////////////////////////////////////// void CShaderInstance::PostConstruct ( CRenderItemManager* pManager, CShaderItem* pShaderItem ) { Super::PostConstruct ( pManager ); m_uiTessellationX = 1; m_uiTessellationY = 1; // Initial creation of d3d data CreateUnderlyingData ( pShaderItem ); }
//////////////////////////////////////////////////////////////// // // CFileTextureItem::PostConstruct // // // //////////////////////////////////////////////////////////////// void CFileTextureItem::PostConstruct(CRenderItemManager* pManager, const SString& strFilename, const CPixels* pPixels, bool bMipMaps, uint uiSizeX, uint uiSizeY, ERenderFormat format, ETextureAddress textureAddress, ETextureType textureType, uint uiVolumeDepth) { Super::PostConstruct(pManager); m_uiVolumeDepth = uiVolumeDepth; m_TextureType = textureType; m_TextureAddress = textureAddress; // Initial creation of d3d data if (pPixels) CreateUnderlyingData(pPixels, bMipMaps, format); else if (!strFilename.empty()) CreateUnderlyingData(strFilename, bMipMaps, uiSizeX, uiSizeY, format); else CreateUnderlyingData(bMipMaps, uiSizeX, uiSizeY, format, textureType, uiVolumeDepth); }
void CWebBrowserItem::Resize(const CVector2D& size) { // Update size m_uiSizeX = static_cast<uint>(size.fX); m_uiSizeY = static_cast<uint>(size.fY); // Recreate texture ReleaseUnderlyingData(); CreateUnderlyingData(); }
//////////////////////////////////////////////////////////////// // // CWebBrowserItem::PostConstruct // // // //////////////////////////////////////////////////////////////// void CWebBrowserItem::PostConstruct(CRenderItemManager* pRenderItemManager, uint uiSizeX, uint uiSizeY) { Super::PostConstruct(pRenderItemManager); m_uiSizeX = uiSizeX; m_uiSizeY = uiSizeY; m_uiSurfaceSizeX = uiSizeX; m_uiSurfaceSizeY = uiSizeY; // Initial creation of d3d data CreateUnderlyingData(); }
//////////////////////////////////////////////////////////////// // // CShaderItem::PostConstruct // // // //////////////////////////////////////////////////////////////// void CShaderItem::PostConstruct ( CRenderItemManager* pManager, const SString& strFilename, const SString& strRootPath, SString& strOutStatus, float fPriority, float fMaxDistance, bool bLayered, bool bDebug, int iTypeMask ) { m_fPriority = fPriority; m_uiCreateTime = ms_uiCreateTimeCounter++; // Priority tie breaker m_fMaxDistanceSq = fMaxDistance * fMaxDistance; m_bLayered = bLayered; m_iTypeMask = iTypeMask; Super::PostConstruct ( pManager ); // Initial creation of d3d data CreateUnderlyingData ( strFilename, strRootPath, strOutStatus, bDebug ); }