: 내가 할 수 있기 때문에 제대로 기입하지 않습니다 있지만 문제 야 작은 표면을 렌더링하기 위해 노력하고있다 지금 여기스케일링 진행 막대 값
void CProgressBar::add(int ammount)
{
mProgress += ammount;
}
float CProgressBar::get()
{
float pr = (float)mProgress * 100.0f/(float)mMax;
return pr;
}
을 그리고 당신은 선형의 폭 보간해야 ...
/*
Progress bar box has size of 128x16
|-----------|
|-----------|
*/
float progress = progressBar->get();
float scale = 4.0f; //Here i have it hardcoded although i have to make this generic
progress *= scale;
graphics->color(prgColor);
graphics->renderQd(CRect(x,y,progress,height));
그래서 메신저 친절 문제에 도움을 요청
이것은 C++ 질문이며 C, C# 또는 다른 질문이 아닙니다. 친절하게 관련 태그를 선택하십시오 – Shai