예제 #1
0
CString & CDriveViewer::GetDriveInfoStr(const TCHAR *path)
{
	CDriveArray drArray;
	::GetDrives(drArray);
			
	static CString info;
	info.Empty ();

	if (drArray.size() == 0)
		MarkForUpdate();

	for (int i = 0; i < static_cast<int>(drArray.size()); i++ )
	{
	  if (drArray[i].m_nType == DRIVE_FIXED)
		  if (PathIsSameRoot (path, drArray[i].m_Path))
		  {
			  //info += m_Array[i].as_text(0);
			  //info += m_Array[i].m_Path;
			  //info += "  ";
			  TCHAR buf[128];
			  StrFormatByteSize64 (drArray[i].m_FreeSpace, buf, 127);
			  //info += m_Array[i].as_text(0);
			  if (*path && path[0] > 0) {
			     info += path[0];
				 info += TEXT(": ");
			  }
			 
			  info += buf;
			  info += " free ";
		  }
	}
	return info;
}
예제 #2
0
		// Called by Rocket when it wants to render application-compiled geometry.		
		void RocketDocument3D::RenderCompiledGeometry(::Rocket::Core::CompiledGeometryHandle geometry, const ::Rocket::Core::Vector2f& translation)
		{
			Urho3D::Graphics* graphics = GetSubsystem<Urho3D::Graphics>();

			RocketBatchInfo* batchInfo = (RocketBatchInfo*)geometry;

			if (batchInfo->position.x_ != translation.x || batchInfo->position.y_ != translation.y)
			{
				batchInfo->position = Urho3D::Vector3(translation.x, translation.y, zorder);

				RecalculateBatch(*batchInfo);
				MarkForUpdate();

			}
			
			batches_.Push(*batchInfo->batch);
		}
예제 #3
0
		// Called by Rocket when it wants to render geometry that it does not wish to optimise.
		void RocketDocument3D::RenderGeometry(::Rocket::Core::Vertex* vertices, int num_vertices, int* indices, int num_indices, const ::Rocket::Core::TextureHandle texture, const ::Rocket::Core::Vector2f& translation)
		{
			MarkForUpdate();
		}