|
@@ -363,9 +363,7 @@ int CDisplay::ReplaceCurrentTexture(const char* szPath)
|
|
|
*tex = piTexture;
|
|
|
m_pcCurrentTexture->piTexture = tex;
|
|
|
|
|
|
- //if (!pcMesh->bSharedFX){
|
|
|
- pcMesh->piEffect->SetTexture(tex_string,piTexture);
|
|
|
- //}
|
|
|
+ pcMesh->piEffect->SetTexture(tex_string,piTexture);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -563,7 +561,6 @@ int CDisplay::AddMaterialToDisplayList(HTREEITEM hRoot,
|
|
|
tvi.iImage = m_aiImageList[AI_VIEW_IMGLIST_MATERIAL];
|
|
|
tvi.iSelectedImage = m_aiImageList[AI_VIEW_IMGLIST_MATERIAL];
|
|
|
tvi.lParam = (LPARAM)10;
|
|
|
- //tvi.state = TVIS_EXPANDED | TVIS_EXPANDEDONCE ;
|
|
|
|
|
|
sNew.itemex = tvi;
|
|
|
sNew.hInsertAfter = TVI_LAST;
|
|
@@ -630,7 +627,7 @@ int CDisplay::AddMaterialToDisplayList(HTREEITEM hRoot,
|
|
|
return 1;
|
|
|
}
|
|
|
//-------------------------------------------------------------------------------
|
|
|
-// Expand all elements in the treeview
|
|
|
+// Expand all elements in the tree-view
|
|
|
int CDisplay::ExpandTree()
|
|
|
{
|
|
|
// expand all materials
|
|
@@ -780,7 +777,7 @@ int CDisplay::OnRender()
|
|
|
// Now render the log display in the upper right corner of the window
|
|
|
CLogDisplay::Instance().OnRender();
|
|
|
|
|
|
- // present the backbuffer
|
|
|
+ // present the back-buffer
|
|
|
g_piDevice->EndScene();
|
|
|
g_piDevice->Present(NULL,NULL,NULL,NULL);
|
|
|
|
|
@@ -1601,7 +1598,7 @@ int CDisplay::HandleInput()
|
|
|
return 1;
|
|
|
}
|
|
|
//-------------------------------------------------------------------------------
|
|
|
-// Process input for an empty scen view to allow for skybox rotations
|
|
|
+// Process input for an empty scene view to allow for sky-box rotations
|
|
|
int CDisplay::HandleInputEmptyScene()
|
|
|
{
|
|
|
if(CBackgroundPainter::TEXTURE_CUBE == CBackgroundPainter::Instance().GetMode())
|
|
@@ -2043,7 +2040,7 @@ int CDisplay::RenderNode (aiNode* piNode,const aiMatrix4x4& piMatrix,
|
|
|
g_piDevice->SetVertexDeclaration( gDefaultVertexDecl);
|
|
|
|
|
|
if (g_sOptions.bNoAlphaBlending) {
|
|
|
- // manually disable alphablending
|
|
|
+ // manually disable alpha-blending
|
|
|
g_piDevice->SetRenderState(D3DRS_ALPHABLENDENABLE,FALSE);
|
|
|
}
|
|
|
|
|
@@ -2207,9 +2204,6 @@ int CDisplay::RenderTextureView()
|
|
|
// it might be that there is no texture ...
|
|
|
if (!m_pcCurrentTexture->piTexture)
|
|
|
{
|
|
|
- // FIX: no such log message. it would be repeated to often
|
|
|
- //CLogDisplay::Instance().AddEntry("Unable to display texture. Image is unreachable.",
|
|
|
- // D3DCOLOR_ARGB(0xFF,0xFF,0,0));
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
@@ -2304,5 +2298,6 @@ int CDisplay::RenderTextureView()
|
|
|
// do we need to draw UV coordinates?
|
|
|
return 1;
|
|
|
}
|
|
|
-};
|
|
|
+
|
|
|
+}
|
|
|
|